Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.001146/0.001146, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.394/1.394, allocations: 221.3 MB / 235.5 MB, free: 2.875 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007819/0.0007817, allocations: 93.09 kB / 286.5 MB, free: 160 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.174e-05/2.176e-05, allocations: 4 kB / 343.9 MB, free: 4.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 50.41 MB / 394.3 MB, free: 1.73 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3486/0.4526, allocations: 99.5 MB / 493.8 MB, free: 3.875 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/0.4529, allocations: 79.95 kB / 493.9 MB, free: 3.797 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07498/0.5279, allocations: 28.76 MB / 0.5104 GB, free: 6.852 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.5279, allocations: 0 / 0.5104 GB, free: 6.852 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.673e-05/0.528, allocations: 35.92 kB / 0.5105 GB, free: 6.816 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001834/0.5298, allocations: 1.134 MB / 0.5116 GB, free: 5.637 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.5299, allocations: 12.03 kB / 0.5116 GB, free: 5.625 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001717/0.5301, allocations: 148.2 kB / 0.5117 GB, free: 5.473 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006211/0.5307, allocations: 194.3 kB / 0.5119 GB, free: 5.281 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001463/0.5322, allocations: 0.8049 MB / 0.5127 GB, free: 4.434 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.383e-05/0.5322, allocations: 74 kB / 0.5128 GB, free: 4.359 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.5324, allocations: 96 kB / 0.5129 GB, free: 4.266 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.5338, allocations: 0.8997 MB / 0.5137 GB, free: 3.34 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/0.5339, allocations: 7.906 kB / 0.5138 GB, free: 3.332 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.873e-05/0.534, allocations: 43.95 kB / 0.5138 GB, free: 3.289 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.076e-05/0.534, allocations: 24 kB / 0.5138 GB, free: 3.266 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001115/0.5351, allocations: 0.5936 MB / 0.5144 GB, free: 2.668 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005092/0.5402, allocations: 3.951 MB / 0.5183 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007494/0.541, allocations: 441.2 kB / 0.5187 GB, free: 14.04 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004952/0.5415, allocations: 253.6 kB / 0.5189 GB, free: 13.79 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.057e-05/0.5415, allocations: 11.98 kB / 0.5189 GB, free: 13.78 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.5416, allocations: 38.56 kB / 0.519 GB, free: 13.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=43): time 1.934e-06/0.5416, allocations: 0 / 0.519 GB, free: 13.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=48): time 0.002142/0.5437, allocations: 1.216 MB / 0.5202 GB, free: 12.45 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.34e-05/0.5438, allocations: 85.55 kB / 0.5202 GB, free: 12.35 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009243/0.5448, allocations: 0.7036 MB / 0.5209 GB, free: 11.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.5448, allocations: 29.7 kB / 0.521 GB, free: 11.61 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003908/0.5452, allocations: 0.5682 MB / 0.5215 GB, free: 11.03 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.5453, allocations: 165.6 kB / 0.5217 GB, free: 10.87 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.78e-05/0.5454, allocations: 16 kB / 0.5217 GB, free: 10.85 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.5455, allocations: 338 kB / 0.522 GB, free: 10.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000267/0.5458, allocations: 153.6 kB / 0.5221 GB, free: 10.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004671/0.5463, allocations: 450 kB / 0.5226 GB, free: 9.789 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003749/0.5466, allocations: 237.5 kB / 0.5228 GB, free: 9.559 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.271e-06/0.5467, allocations: 7.953 kB / 0.5228 GB, free: 9.551 MB / 410.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001223/0.5479, allocations: 0.774 MB / 0.5236 GB, free: 8.762 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.5479, allocations: 12 kB / 0.5236 GB, free: 8.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.5479, allocations: 8 kB / 0.5236 GB, free: 8.742 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002879/0.5482, allocations: 97.95 kB / 0.5237 GB, free: 8.641 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005191/0.5488, allocations: 159.7 kB / 0.5238 GB, free: 8.484 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002495/0.5513, allocations: 2.997 MB / 0.5268 GB, free: 5.223 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005789/0.5519, allocations: 35.98 kB / 0.5268 GB, free: 5.188 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.465e-05/0.5519, allocations: 40 kB / 0.5268 GB, free: 5.148 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001557/0.5521, allocations: 156.7 kB / 0.527 GB, free: 4.988 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.5522, allocations: 94.81 kB / 0.5271 GB, free: 4.895 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009245/0.5531, allocations: 0.4908 MB / 0.5276 GB, free: 4.387 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.5532, allocations: 8 kB / 0.5276 GB, free: 4.379 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.165e-06/0.5532, allocations: 0 / 0.5276 GB, free: 4.379 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.5532, allocations: 8.016 kB / 0.5276 GB, free: 4.371 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002079/0.5553, allocations: 1.454 MB / 0.529 GB, free: 2.828 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.5553, allocations: 8.172 kB / 0.529 GB, free: 2.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003365/0.5556, allocations: 79.97 kB / 0.5291 GB, free: 2.742 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002565/0.5559, allocations: 85.67 kB / 0.5292 GB, free: 2.652 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.892e-05/0.5559, allocations: 15.98 kB / 0.5292 GB, free: 2.637 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002366/0.5583, allocations: 2.968 MB / 0.5321 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5583, allocations: 0 / 0.5321 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.5595, allocations: 0.8755 MB / 0.5329 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002861/0.5598, allocations: 200 kB / 0.5331 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.5599, allocations: 12 kB / 0.5331 GB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004163/0.5603, allocations: 35.97 kB / 0.5332 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.937e-05/0.5604, allocations: 47.62 kB / 0.5332 GB, free: 14.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-05/0.5605, allocations: 16 kB / 0.5332 GB, free: 14.11 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007113/0.5612, allocations: 0.5304 MB / 0.5337 GB, free: 13.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5612, allocations: 0 / 0.5337 GB, free: 13.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009404/0.5621, allocations: 247.9 kB / 0.534 GB, free: 13.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001994/0.5641, allocations: 2.101 MB / 0.536 GB, free: 11.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.5652, allocations: 0.6841 MB / 0.5367 GB, free: 10.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.5652, allocations: 0 / 0.5367 GB, free: 10.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005805/0.5658, allocations: 449.5 kB / 0.5371 GB, free: 9.988 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009146/0.5667, allocations: 215.5 kB / 0.5373 GB, free: 9.781 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002715/0.5695, allocations: 1.437 MB / 0.5387 GB, free: 8.285 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005856/0.5701, allocations: 1.036 MB / 0.5397 GB, free: 7.223 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004243/0.5705, allocations: 107.4 kB / 0.5398 GB, free: 7.113 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004608/0.571, allocations: 383.3 kB / 0.5402 GB, free: 6.738 MB / 426.7 MB Notification: Performance of SimCode: time 4.3e-07/0.571, allocations: 0 / 0.5402 GB, free: 6.738 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2362/0.8072, allocations: 20.94 MB / 0.5607 GB, free: 117 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001652/0.8074, allocations: 188.6 kB / 0.5608 GB, free: 116.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.436/3.244, allocations: 4 kB / 0.5608 GB, free: 116.8 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat