Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008699/0.0008699, allocations: 100.9 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003459/0.0003457, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2731, allocations: 50.41 MB / 401.6 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3598/0.6329, allocations: 114.2 MB / 0.5037 GB, free: 48.78 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/0.6332, allocations: 94.22 kB / 0.5038 GB, free: 48.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2015/0.8348, allocations: 83.15 MB / 0.585 GB, free: 18.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.8348, allocations: 0 / 0.585 GB, free: 18.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002707/0.8351, allocations: 67.94 kB / 0.585 GB, free: 18.35 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.008088/0.8432, allocations: 2.997 MB / 0.588 GB, free: 15.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.8433, allocations: 8.031 kB / 0.588 GB, free: 15.28 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001236/0.8445, allocations: 366.7 kB / 0.5883 GB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001989/0.8465, allocations: 427.9 kB / 0.5887 GB, free: 14.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004331/0.8509, allocations: 1.858 MB / 0.5905 GB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/0.851, allocations: 189 kB / 0.5907 GB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006692/0.8517, allocations: 255.9 kB / 0.591 GB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006469/0.8582, allocations: 3.226 MB / 0.5941 GB, free: 8.766 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001097/0.8583, allocations: 7.906 kB / 0.5941 GB, free: 8.758 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004837/0.8588, allocations: 104 kB / 0.5942 GB, free: 8.656 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001155/0.859, allocations: 112.9 kB / 0.5943 GB, free: 8.543 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005258/0.8642, allocations: 2.592 MB / 0.5969 GB, free: 5.938 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01872/0.883, allocations: 10.45 MB / 0.6071 GB, free: 11.14 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002725/0.8858, allocations: 1.834 MB / 0.6089 GB, free: 9.191 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004167/0.8862, allocations: 223.1 kB / 0.6091 GB, free: 8.938 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.8863, allocations: 43.56 kB / 0.6091 GB, free: 8.887 MB / 394.7 MB Notification: Performance of pre-optimization done (n=118): time 3.587e-06/0.8863, allocations: 0 / 0.6091 GB, free: 8.887 MB / 394.7 MB Notification: Performance of matching and sorting (n=143): time 0.02428/0.9106, allocations: 8.924 MB / 0.6178 GB, free: 15.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/0.9107, allocations: 72.66 kB / 0.6179 GB, free: 15.74 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003261/0.9139, allocations: 1.641 MB / 0.6195 GB, free: 14.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003279/0.9143, allocations: 49.7 kB / 0.6195 GB, free: 14.05 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00107/0.9154, allocations: 1.245 MB / 0.6208 GB, free: 12.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005752/0.9159, allocations: 0.489 MB / 0.6212 GB, free: 12.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.9161, allocations: 36 kB / 0.6213 GB, free: 12.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.9163, allocations: 373.9 kB / 0.6216 GB, free: 11.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001597/0.9179, allocations: 0.8823 MB / 0.6225 GB, free: 11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001757/0.9196, allocations: 1.361 MB / 0.6238 GB, free: 9.434 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001676/0.9213, allocations: 1.088 MB / 0.6249 GB, free: 8.344 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.9213, allocations: 4 kB / 0.6249 GB, free: 8.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005354/0.9267, allocations: 2.995 MB / 0.6278 GB, free: 5.328 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.123e-05/0.9268, allocations: 16 kB / 0.6278 GB, free: 5.312 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.229e-05/0.9268, allocations: 16 kB / 0.6278 GB, free: 5.297 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/0.9283, allocations: 0.5961 MB / 0.6284 GB, free: 4.695 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/0.9298, allocations: 411.4 kB / 0.6288 GB, free: 4.293 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007527/0.9374, allocations: 5.658 MB / 0.6343 GB, free: 14.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002009/0.9394, allocations: 143.8 kB / 0.6345 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001695/0.9396, allocations: 72 kB / 0.6345 GB, free: 14.29 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001674/0.9413, allocations: 0.79 MB / 0.6353 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004648/0.9418, allocations: 205.5 kB / 0.6355 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004924/0.9467, allocations: 2.666 MB / 0.6381 GB, free: 10.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.9467, allocations: 15.94 kB / 0.6381 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.9467, allocations: 4 kB / 0.6381 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.9468, allocations: 11.97 kB / 0.6381 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009727/0.9565, allocations: 5.52 MB / 0.6435 GB, free: 4.938 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.765e-05/0.9565, allocations: 4 kB / 0.6435 GB, free: 4.934 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.9577, allocations: 256 kB / 0.6438 GB, free: 4.684 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001801/0.9595, allocations: 0.6537 MB / 0.6444 GB, free: 4.023 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/0.9596, allocations: 35.98 kB / 0.6445 GB, free: 3.988 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009341/0.9689, allocations: 7.401 MB / 0.6517 GB, free: 12.31 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/0.969, allocations: 7.938 kB / 0.6517 GB, free: 12.3 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007097/0.9761, allocations: 4.093 MB / 0.6557 GB, free: 8.051 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/0.9775, allocations: 462.5 kB / 0.6561 GB, free: 7.578 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002827/0.9778, allocations: 39.98 kB / 0.6562 GB, free: 7.539 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/0.979, allocations: 119.9 kB / 0.6563 GB, free: 7.422 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003157/0.9793, allocations: 117 kB / 0.6564 GB, free: 7.309 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.9794, allocations: 44 kB / 0.6564 GB, free: 7.266 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001981/0.9814, allocations: 1.267 MB / 0.6577 GB, free: 6.008 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.9814, allocations: 0 / 0.6577 GB, free: 6.008 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002241/0.9837, allocations: 0.6366 MB / 0.6583 GB, free: 5.371 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2198/1.203, allocations: 5.638 MB / 0.6638 GB, free: 104 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004559/1.208, allocations: 2.631 MB / 0.6664 GB, free: 103.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/1.208, allocations: 0 / 0.6664 GB, free: 103.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002378/1.21, allocations: 1.647 MB / 0.668 GB, free: 103.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00205/1.213, allocations: 414.5 kB / 0.6684 GB, free: 103.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02745/1.24, allocations: 26.7 MB / 0.6944 GB, free: 87.68 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001553/1.242, allocations: 2.075 MB / 0.6965 GB, free: 86.94 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001525/1.243, allocations: 418.7 kB / 0.6969 GB, free: 86.92 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001041/1.244, allocations: 1.011 MB / 0.6979 GB, free: 86.92 MB / 442.7 MB Notification: Performance of SimCode: time 9.52e-07/1.244, allocations: 0 / 0.6979 GB, free: 86.92 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07137/1.316, allocations: 51.42 MB / 0.7481 GB, free: 69.42 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001519/1.316, allocations: 224.2 kB / 0.7483 GB, free: 69.19 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.342/4.658, allocations: 4 kB / 0.7483 GB, free: 69.18 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat