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.0009265/0.0009265, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 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.5 MB / 230.3 MB, free: 7.582 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.0008604/0.0008602, allocations: 92.08 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.501e-05/1.504e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.112, allocations: 50.41 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3899/0.502, allocations: 98.83 MB / 486.4 MB, free: 11.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/0.5023, allocations: 80.98 kB / 486.5 MB, free: 11.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07394/0.5762, allocations: 28.38 MB / 0.5028 GB, free: 15.2 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5763, allocations: 3.938 kB / 0.5028 GB, free: 15.19 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.342e-05/0.5763, allocations: 27.94 kB / 0.5028 GB, free: 15.16 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.001788/0.5781, allocations: 1.134 MB / 0.5039 GB, free: 13.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.5782, allocations: 12.02 kB / 0.5039 GB, free: 13.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006169/0.5788, allocations: 194.3 kB / 0.5041 GB, free: 13.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001359/0.5802, allocations: 0.8049 MB / 0.5049 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.624e-05/0.5802, allocations: 32 kB / 0.5049 GB, free: 12.9 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.5804, allocations: 56 kB / 0.505 GB, free: 12.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001005/0.5814, allocations: 0.5429 MB / 0.5055 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.5827, allocations: 0.7591 MB / 0.5063 GB, free: 11.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.431e-05/0.5828, allocations: 11.84 kB / 0.5063 GB, free: 11.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.105e-05/0.5828, allocations: 4 kB / 0.5063 GB, free: 11.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.913e-05/0.5829, allocations: 24.44 kB / 0.5063 GB, free: 11.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004776/0.5877, allocations: 3.756 MB / 0.51 GB, free: 7.516 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005979/0.5883, allocations: 428 kB / 0.5104 GB, free: 7.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004551/0.5887, allocations: 236.8 kB / 0.5106 GB, free: 6.836 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.733e-05/0.5888, allocations: 7.984 kB / 0.5106 GB, free: 6.828 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.5888, allocations: 46.52 kB / 0.5106 GB, free: 6.773 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 2.314e-06/0.5889, allocations: 0 / 0.5106 GB, free: 6.773 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.001991/0.5909, allocations: 1.12 MB / 0.5117 GB, free: 5.594 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.5909, allocations: 89.48 kB / 0.5118 GB, free: 5.488 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007405/0.5917, allocations: 0.5938 MB / 0.5124 GB, free: 4.887 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.984e-05/0.5917, allocations: 25.7 kB / 0.5124 GB, free: 4.855 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003822/0.5921, allocations: 0.5719 MB / 0.513 GB, free: 4.273 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.5922, allocations: 173.5 kB / 0.5132 GB, free: 4.102 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.061e-05/0.5922, allocations: 0 / 0.5132 GB, free: 4.102 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.5924, allocations: 382.8 kB / 0.5135 GB, free: 3.719 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002339/0.5927, allocations: 145.6 kB / 0.5137 GB, free: 3.578 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004897/0.5932, allocations: 428.4 kB / 0.5141 GB, free: 3.023 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003429/0.5935, allocations: 224.6 kB / 0.5143 GB, free: 2.805 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.5935, allocations: 4 kB / 0.5143 GB, free: 2.801 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001064/0.5946, allocations: 0.665 MB / 0.5149 GB, free: 2.121 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.5946, allocations: 15.94 kB / 0.5149 GB, free: 2.105 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.5947, allocations: 12 kB / 0.515 GB, free: 2.094 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002853/0.5949, allocations: 97.89 kB / 0.5151 GB, free: 1.992 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005204/0.5955, allocations: 159.7 kB / 0.5152 GB, free: 1.836 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002328/0.5978, allocations: 2.876 MB / 0.518 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005578/0.5984, allocations: 23.98 kB / 0.518 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.544e-05/0.5984, allocations: 40 kB / 0.5181 GB, free: 14.67 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.0001455/0.5986, allocations: 130.4 kB / 0.5182 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007055/0.5993, allocations: 452.5 kB / 0.5186 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.5994, allocations: 82.97 kB / 0.5187 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007873/0.6002, allocations: 450.1 kB / 0.5191 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.6002, allocations: 11.98 kB / 0.5191 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.6003, allocations: 0 / 0.5191 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.6003, allocations: 7.984 kB / 0.5192 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001888/0.6022, allocations: 1.287 MB / 0.5204 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.6022, allocations: 4 kB / 0.5204 GB, free: 12.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003356/0.6025, allocations: 71.91 kB / 0.5205 GB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002225/0.6028, allocations: 85.89 kB / 0.5206 GB, free: 11.99 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.658e-05/0.6028, allocations: 7.984 kB / 0.5206 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00216/0.605, allocations: 2.864 MB / 0.5234 GB, free: 8.895 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/0.605, allocations: 3.938 kB / 0.5234 GB, free: 8.891 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.6061, allocations: 0.8291 MB / 0.5242 GB, free: 7.969 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000319/0.6064, allocations: 192.1 kB / 0.5244 GB, free: 7.762 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.377e-05/0.6065, allocations: 7.938 kB / 0.5244 GB, free: 7.754 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004156/0.607, allocations: 27.97 kB / 0.5244 GB, free: 7.727 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.53e-05/0.607, allocations: 39.73 kB / 0.5244 GB, free: 7.688 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.82e-05/0.6071, allocations: 19.95 kB / 0.5245 GB, free: 7.668 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005839/0.6077, allocations: 455.2 kB / 0.5249 GB, free: 7.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.6077, allocations: 0 / 0.5249 GB, free: 7.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009065/0.6086, allocations: 196 kB / 0.5251 GB, free: 7.039 MB / 410.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.001762/0.6104, allocations: 2.013 MB / 0.527 GB, free: 4.949 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.6114, allocations: 0.6465 MB / 0.5277 GB, free: 4.281 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.6114, allocations: 4.062 kB / 0.5277 GB, free: 4.277 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005253/0.612, allocations: 423.1 kB / 0.5281 GB, free: 3.844 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008802/0.6129, allocations: 174.9 kB / 0.5283 GB, free: 3.672 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002797/0.6157, allocations: 1.379 MB / 0.5296 GB, free: 2.227 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006097/0.6163, allocations: 1.036 MB / 0.5306 GB, free: 1.16 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004261/0.6167, allocations: 106.8 kB / 0.5307 GB, free: 1.051 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004629/0.6172, allocations: 379.3 kB / 0.5311 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of SimCode: time 3.61e-07/0.6172, allocations: 0 / 0.5311 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04076/0.658, allocations: 16.63 MB / 0.5473 GB, free: 164 kB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.2314/0.8894, allocations: 162.4 kB / 0.5475 GB, free: 129.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.491/3.38, allocations: 0 / 0.5475 GB, free: 129.1 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