Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_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.001148/0.001148, allocations: 180.1 kB / 16.38 MB, free: 5.762 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.32/1.32, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.0009303/0.0009304, allocations: 97.86 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002589/0.0002587, allocations: 4 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2271, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1024/0.3295, allocations: 94.43 MB / 496 MB, free: 2.012 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.3298, allocations: 87.88 kB / 496.1 MB, free: 1.926 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2526/0.5824, allocations: 23.07 MB / 0.507 GB, free: 92.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.5825, allocations: 1.5 kB / 0.507 GB, free: 92.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.83e-05/0.5826, allocations: 15.44 kB / 0.507 GB, free: 92.02 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.00315/0.5858, allocations: 1.093 MB / 0.5081 GB, free: 91.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.889e-05/0.5858, allocations: 16.94 kB / 0.5081 GB, free: 91.36 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003702/0.5862, allocations: 125.5 kB / 0.5082 GB, free: 91.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008409/0.5871, allocations: 144.3 kB / 0.5084 GB, free: 91.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001745/0.5888, allocations: 0.6872 MB / 0.509 GB, free: 90.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.892e-05/0.5889, allocations: 59.64 kB / 0.5091 GB, free: 90.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001855/0.5891, allocations: 85.84 kB / 0.5092 GB, free: 90.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001906/0.591, allocations: 0.776 MB / 0.5099 GB, free: 90.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.615e-05/0.5911, allocations: 7.734 kB / 0.5099 GB, free: 90.85 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-05/0.5912, allocations: 29.41 kB / 0.51 GB, free: 90.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/0.5912, allocations: 23.16 kB / 0.51 GB, free: 90.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.5926, allocations: 0.529 MB / 0.5105 GB, free: 90.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004385/0.597, allocations: 3.461 MB / 0.5139 GB, free: 89.17 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004306/0.5974, allocations: 230.4 kB / 0.5141 GB, free: 89.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.7e-05/0.5975, allocations: 9.531 kB / 0.5141 GB, free: 89.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.5975, allocations: 38.56 kB / 0.5141 GB, free: 89.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 2.185e-06/0.5975, allocations: 0 / 0.5141 GB, free: 89.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.001901/0.5994, allocations: 1.078 MB / 0.5152 GB, free: 88.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.5995, allocations: 81.28 kB / 0.5153 GB, free: 88.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006822/0.6002, allocations: 0.6159 MB / 0.5159 GB, free: 87.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.6002, allocations: 32.75 kB / 0.5159 GB, free: 87.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002204/0.6004, allocations: 0.4908 MB / 0.5164 GB, free: 87.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.108e-05/0.6005, allocations: 111.7 kB / 0.5165 GB, free: 87.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.76e-05/0.6005, allocations: 19.12 kB / 0.5165 GB, free: 87.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.375e-05/0.6006, allocations: 379.4 kB / 0.5169 GB, free: 87.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002422/0.6009, allocations: 131.6 kB / 0.517 GB, free: 87.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003273/0.6012, allocations: 424.6 kB / 0.5174 GB, free: 86.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/0.6015, allocations: 206.9 kB / 0.5176 GB, free: 86.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.6015, allocations: 3.281 kB / 0.5176 GB, free: 86.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009586/0.6025, allocations: 0.6313 MB / 0.5182 GB, free: 86.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.6025, allocations: 7.344 kB / 0.5182 GB, free: 86.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/0.6026, allocations: 8.344 kB / 0.5182 GB, free: 86.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001474/0.6027, allocations: 37.08 kB / 0.5183 GB, free: 86.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004058/0.6031, allocations: 142.3 kB / 0.5184 GB, free: 86.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007139/0.6039, allocations: 1.293 MB / 0.5197 GB, free: 84.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004805/0.6044, allocations: 46.98 kB / 0.5197 GB, free: 84.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-05/0.6044, allocations: 32.66 kB / 0.5197 GB, free: 84.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (74): * Single equations (assignments): 73 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003028/0.6047, allocations: 240.5 kB / 0.52 GB, free: 84.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.102e-05/0.6048, allocations: 71.44 kB / 0.52 GB, free: 84.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005692/0.6054, allocations: 341.2 kB / 0.5204 GB, free: 84.53 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.6054, allocations: 6.406 kB / 0.5204 GB, free: 84.53 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.6054, allocations: 0 / 0.5204 GB, free: 84.53 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.6054, allocations: 0 / 0.5204 GB, free: 84.53 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.6069, allocations: 1.103 MB / 0.5215 GB, free: 83.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.6069, allocations: 3.062 kB / 0.5215 GB, free: 83.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002561/0.6071, allocations: 63.25 kB / 0.5215 GB, free: 83.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.1e-05/0.6072, allocations: 27.11 kB / 0.5215 GB, free: 83.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.04e-05/0.6073, allocations: 7.812 kB / 0.5216 GB, free: 83.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005788/0.6078, allocations: 1.275 MB / 0.5228 GB, free: 82.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.6079, allocations: 3.938 kB / 0.5228 GB, free: 82.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007396/0.6086, allocations: 0.6555 MB / 0.5234 GB, free: 82.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002027/0.6088, allocations: 173.6 kB / 0.5236 GB, free: 81.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.463e-05/0.6089, allocations: 6.875 kB / 0.5236 GB, free: 81.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000313/0.6092, allocations: 21.61 kB / 0.5236 GB, free: 81.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.504e-05/0.6093, allocations: 31.19 kB / 0.5237 GB, free: 81.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.6093, allocations: 11.16 kB / 0.5237 GB, free: 81.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005195/0.6098, allocations: 488.5 kB / 0.5241 GB, free: 81.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.6099, allocations: 0 / 0.5241 GB, free: 81.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001182/0.611, allocations: 198.1 kB / 0.5243 GB, free: 81.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * 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 (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001919/0.613, allocations: 1.869 MB / 0.5262 GB, free: 80.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.6143, allocations: 470 kB / 0.5266 GB, free: 79.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.6143, allocations: 0 / 0.5266 GB, free: 79.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000519/0.6148, allocations: 250.3 kB / 0.5268 GB, free: 79.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.6161, allocations: 168.3 kB / 0.527 GB, free: 79.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.6267, allocations: 10.78 MB / 0.5375 GB, free: 70.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004849/0.6273, allocations: 0.9654 MB / 0.5385 GB, free: 69.69 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006386/0.6279, allocations: 90.72 kB / 0.5386 GB, free: 69.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004372/0.6284, allocations: 302.8 kB / 0.5388 GB, free: 69.36 MB / 378.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6284, allocations: 0 / 0.5388 GB, free: 69.36 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04492/0.6733, allocations: 16.75 MB / 0.5552 GB, free: 54.86 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002001/0.6736, allocations: 215.7 kB / 0.5554 GB, free: 54.62 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.411/3.084, allocations: 0 / 0.5554 GB, free: 54.62 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat