Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",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.001083/0.001083, allocations: 174.8 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.367/1.367, allocations: 221.3 MB / 235.5 MB, free: 2.953 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.0008167/0.0008165, allocations: 91.55 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.937e-05/2.941e-05, allocations: 0 / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1029, allocations: 50.42 MB / 394.4 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3478/0.4507, allocations: 98.59 MB / 492.9 MB, free: 4.863 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002632/0.451, allocations: 79.95 kB / 493 MB, free: 4.785 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07481/0.5258, allocations: 28.24 MB / 0.509 GB, free: 8.367 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.5258, allocations: 0 / 0.509 GB, free: 8.367 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.456e-05/0.5259, allocations: 28 kB / 0.5091 GB, free: 8.34 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001678/0.5276, allocations: 1.115 MB / 0.5102 GB, free: 7.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.5276, allocations: 8.031 kB / 0.5102 GB, free: 7.172 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001776/0.5278, allocations: 156.2 kB / 0.5103 GB, free: 7.012 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006027/0.5284, allocations: 186.4 kB / 0.5105 GB, free: 6.828 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001377/0.5298, allocations: 0.7886 MB / 0.5113 GB, free: 5.996 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.772e-05/0.5299, allocations: 74 kB / 0.5113 GB, free: 5.926 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.53, allocations: 99.91 kB / 0.5114 GB, free: 5.828 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/0.5315, allocations: 0.8997 MB / 0.5123 GB, free: 4.898 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.924e-05/0.5316, allocations: 0 / 0.5123 GB, free: 4.898 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.078e-05/0.5316, allocations: 43.95 kB / 0.5123 GB, free: 4.855 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.964e-05/0.5317, allocations: 28 kB / 0.5124 GB, free: 4.828 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.5327, allocations: 0.5858 MB / 0.5129 GB, free: 4.242 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005019/0.5377, allocations: 3.923 MB / 0.5168 GB, free: 96 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006157/0.5384, allocations: 431.3 kB / 0.5172 GB, free: 15.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004719/0.5389, allocations: 244.8 kB / 0.5174 GB, free: 15.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.568e-05/0.5389, allocations: 11.94 kB / 0.5174 GB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.539, allocations: 38.56 kB / 0.5175 GB, free: 15.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=42): time 2.705e-06/0.539, allocations: 0 / 0.5175 GB, free: 15.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=47): time 0.002107/0.5411, allocations: 1.197 MB / 0.5186 GB, free: 14.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/0.5411, allocations: 89.48 kB / 0.5187 GB, free: 13.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009448/0.5421, allocations: 0.6879 MB / 0.5194 GB, free: 13.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.5421, allocations: 37.7 kB / 0.5194 GB, free: 13.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003912/0.5425, allocations: 0.5449 MB / 0.52 GB, free: 12.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.5427, allocations: 169.6 kB / 0.5201 GB, free: 12.53 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.536e-05/0.5427, allocations: 16 kB / 0.5201 GB, free: 12.51 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.5429, allocations: 338 kB / 0.5205 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002716/0.5431, allocations: 153.6 kB / 0.5206 GB, free: 12.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004567/0.5436, allocations: 442 kB / 0.521 GB, free: 11.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003815/0.544, allocations: 233.5 kB / 0.5213 GB, free: 11.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.544, allocations: 0 / 0.5213 GB, free: 11.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001198/0.5452, allocations: 0.7661 MB / 0.522 GB, free: 10.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.5452, allocations: 12.94 kB / 0.522 GB, free: 10.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.5453, allocations: 8.047 kB / 0.522 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003251/0.5456, allocations: 101.9 kB / 0.5221 GB, free: 10.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005069/0.5461, allocations: 159.7 kB / 0.5223 GB, free: 10.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002675/0.5488, allocations: 2.982 MB / 0.5252 GB, free: 6.922 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006618/0.5495, allocations: 35.95 kB / 0.5252 GB, free: 6.887 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.948e-05/0.5495, allocations: 32 kB / 0.5253 GB, free: 6.855 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 (85): * Single equations (assignments): 83 * 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.0001744/0.5497, allocations: 152.8 kB / 0.5254 GB, free: 6.699 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.5499, allocations: 94.91 kB / 0.5255 GB, free: 6.605 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009418/0.5508, allocations: 498.5 kB / 0.526 GB, free: 6.105 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.5508, allocations: 4 kB / 0.526 GB, free: 6.102 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.5508, allocations: 4 kB / 0.526 GB, free: 6.098 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.5508, allocations: 3.984 kB / 0.526 GB, free: 6.094 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002023/0.5529, allocations: 1.431 MB / 0.5274 GB, free: 4.578 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.5529, allocations: 4.062 kB / 0.5274 GB, free: 4.574 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003283/0.5532, allocations: 92 kB / 0.5275 GB, free: 4.484 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002606/0.5535, allocations: 77.67 kB / 0.5275 GB, free: 4.402 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.855e-05/0.5535, allocations: 8 kB / 0.5275 GB, free: 4.395 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002381/0.5559, allocations: 2.97 MB / 0.5304 GB, free: 1.152 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.5559, allocations: 8.094 kB / 0.5305 GB, free: 1.145 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.5571, allocations: 0.8439 MB / 0.5313 GB, free: 220 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000332/0.5574, allocations: 200 kB / 0.5315 GB, free: 0 / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.5575, allocations: 12.16 kB / 0.5315 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004007/0.5579, allocations: 31.98 kB / 0.5315 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.793e-05/0.558, allocations: 43.84 kB / 0.5316 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.6e-05/0.5581, allocations: 12.06 kB / 0.5316 GB, free: 15.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007002/0.5588, allocations: 0.5226 MB / 0.5321 GB, free: 15.38 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5588, allocations: 0 / 0.5321 GB, free: 15.38 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009376/0.5597, allocations: 240 kB / 0.5323 GB, free: 15.14 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 (39): * Single equations (assignments): 37 * 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.001869/0.5616, allocations: 2.079 MB / 0.5343 GB, free: 12.99 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001062/0.5627, allocations: 0.671 MB / 0.535 GB, free: 12.29 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.5627, allocations: 0 / 0.535 GB, free: 12.29 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000552/0.5632, allocations: 455 kB / 0.5354 GB, free: 11.82 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009024/0.5642, allocations: 201.7 kB / 0.5356 GB, free: 11.63 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00274/0.5669, allocations: 1.414 MB / 0.537 GB, free: 10.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000554/0.5675, allocations: 1.036 MB / 0.538 GB, free: 9.094 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004332/0.5679, allocations: 103.3 kB / 0.5381 GB, free: 8.988 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004266/0.5684, allocations: 375.3 kB / 0.5385 GB, free: 8.621 MB / 426.7 MB Notification: Performance of SimCode: time 8.21e-07/0.5684, allocations: 0 / 0.5385 GB, free: 8.621 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2592/0.8276, allocations: 20.63 MB / 0.5586 GB, free: 116.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001479/0.8277, allocations: 189.2 kB / 0.5588 GB, free: 115.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.401/3.228, allocations: 0.75 kB / 0.5588 GB, free: 115.9 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat