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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 185.8 kB / 8.137 MB, free: 0.8594 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.132/1.132, allocations: 221.4 MB / 229.9 MB, free: 13.6 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008724/0.0008724, allocations: 95.28 kB / 280.8 MB, free: 10.51 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.09156/0.09246, allocations: 55.82 MB / 336.6 MB, free: 2.695 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07718/0.1697, allocations: 50.42 MB / 387 MB, free: 228 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2129/0.3826, allocations: 97.84 MB / 484.9 MB, free: 15.73 MB / 370.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002003/0.3829, allocations: 84.66 kB / 485 MB, free: 15.65 MB / 370.8 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.0755/0.4584, allocations: 28.89 MB / 0.5018 GB, free: 2.84 MB / 386.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.4584, allocations: 8 kB / 0.5018 GB, free: 2.832 MB / 386.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007712/0.4592, allocations: 190.4 kB / 0.502 GB, free: 2.645 MB / 386.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.4608, allocations: 0.804 MB / 0.5028 GB, free: 1.801 MB / 386.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.471e-05/0.4608, allocations: 32 kB / 0.5028 GB, free: 1.77 MB / 386.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.461, allocations: 67.89 kB / 0.5029 GB, free: 1.703 MB / 386.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00109/0.4621, allocations: 0.5273 MB / 0.5034 GB, free: 1.176 MB / 386.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.4634, allocations: 0.7522 MB / 0.5041 GB, free: 408 kB / 386.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.768e-05/0.4635, allocations: 7.984 kB / 0.5041 GB, free: 400 kB / 386.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.877e-05/0.4635, allocations: 0 / 0.5041 GB, free: 400 kB / 386.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.291e-05/0.4636, allocations: 24 kB / 0.5042 GB, free: 376 kB / 386.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004964/0.4685, allocations: 3.726 MB / 0.5078 GB, free: 12.44 MB / 402.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002956/0.4689, allocations: 197.6 kB / 0.508 GB, free: 12.24 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004816/0.4693, allocations: 254.1 kB / 0.5082 GB, free: 11.99 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-05/0.4694, allocations: 4 kB / 0.5082 GB, free: 11.99 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.4694, allocations: 44.56 kB / 0.5083 GB, free: 11.94 MB / 402.8 MB Notification: Performance of pre-optimization done (n=42): time 1.624e-06/0.4694, allocations: 0 / 0.5083 GB, free: 11.94 MB / 402.8 MB Notification: Performance of matching and sorting (n=47): time 0.001919/0.4714, allocations: 1.101 MB / 0.5093 GB, free: 10.78 MB / 402.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4e-05/0.4714, allocations: 85.48 kB / 0.5094 GB, free: 10.68 MB / 402.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007442/0.4722, allocations: 0.5818 MB / 0.51 GB, free: 10.09 MB / 402.8 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.4722, allocations: 25.7 kB / 0.51 GB, free: 10.06 MB / 402.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002361/0.4725, allocations: 477.6 kB / 0.5105 GB, free: 9.582 MB / 402.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.4726, allocations: 165.6 kB / 0.5106 GB, free: 9.418 MB / 402.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.102e-05/0.4726, allocations: 0 / 0.5106 GB, free: 9.418 MB / 402.8 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.4727, allocations: 382.8 kB / 0.511 GB, free: 9.035 MB / 402.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002385/0.473, allocations: 137.6 kB / 0.5111 GB, free: 8.902 MB / 402.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003833/0.4734, allocations: 423.3 kB / 0.5115 GB, free: 8.359 MB / 402.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003563/0.4737, allocations: 220.6 kB / 0.5117 GB, free: 8.148 MB / 402.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.4738, allocations: 8 kB / 0.5117 GB, free: 8.141 MB / 402.8 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001141/0.4749, allocations: 0.6602 MB / 0.5124 GB, free: 7.465 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.4749, allocations: 7.984 kB / 0.5124 GB, free: 7.457 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.946e-05/0.475, allocations: 15.94 kB / 0.5124 GB, free: 7.441 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003098/0.4753, allocations: 102.5 kB / 0.5125 GB, free: 7.336 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005583/0.4758, allocations: 155.7 kB / 0.5127 GB, free: 7.184 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00262/0.4785, allocations: 2.899 MB / 0.5155 GB, free: 4.059 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005933/0.4791, allocations: 23.98 kB / 0.5155 GB, free: 4.035 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.098e-05/0.4791, allocations: 36 kB / 0.5156 GB, free: 4 MB / 402.8 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 (84): * Single equations (assignments): 82 * 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%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001305/0.4793, allocations: 134.9 kB / 0.5157 GB, free: 3.863 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.4794, allocations: 79.06 kB / 0.5158 GB, free: 3.785 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008236/0.4802, allocations: 452.8 kB / 0.5162 GB, free: 3.324 MB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.4803, allocations: 8 kB / 0.5162 GB, free: 3.316 MB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.902e-06/0.4803, allocations: 4 kB / 0.5162 GB, free: 3.312 MB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.4803, allocations: 3.906 kB / 0.5162 GB, free: 3.309 MB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001988/0.4823, allocations: 1.26 MB / 0.5174 GB, free: 1.977 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4823, allocations: 0 / 0.5174 GB, free: 1.977 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003454/0.4827, allocations: 76.12 kB / 0.5175 GB, free: 1.902 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002881/0.483, allocations: 93.52 kB / 0.5176 GB, free: 1.805 MB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.795e-05/0.483, allocations: 7.922 kB / 0.5176 GB, free: 1.797 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002341/0.4853, allocations: 2.889 MB / 0.5204 GB, free: 14.68 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/0.4854, allocations: 7.906 kB / 0.5204 GB, free: 14.68 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001004/0.4864, allocations: 0.8006 MB / 0.5212 GB, free: 13.79 MB / 418.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001352/0.4877, allocations: 1.359 MB / 0.5225 GB, free: 12.34 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003/0.4881, allocations: 184.1 kB / 0.5227 GB, free: 12.14 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.4882, allocations: 4 kB / 0.5227 GB, free: 12.13 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004397/0.4886, allocations: 23.98 kB / 0.5227 GB, free: 12.11 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.991e-05/0.4887, allocations: 39.8 kB / 0.5228 GB, free: 12.07 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-05/0.4888, allocations: 12 kB / 0.5228 GB, free: 12.06 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.0005677/0.4893, allocations: 439.2 kB / 0.5232 GB, free: 11.64 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.001451/0.4908, allocations: 204 kB / 0.5234 GB, free: 11.44 MB / 418.8 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 (38): * Single equations (assignments): 36 * 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%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004437/0.4913, allocations: 266.5 kB / 0.5237 GB, free: 11.18 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.4923, allocations: 0.6204 MB / 0.5243 GB, free: 10.54 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4923, allocations: 0.75 kB / 0.5243 GB, free: 10.54 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0005727/0.4929, allocations: 401.5 kB / 0.5246 GB, free: 10.13 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008505/0.4938, allocations: 171 kB / 0.5248 GB, free: 9.969 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00259/0.4964, allocations: 1.241 MB / 0.526 GB, free: 8.684 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007455/0.4971, allocations: 1.091 MB / 0.5271 GB, free: 7.57 MB / 418.8 MB Notification: Performance of SimCode: time 2.71e-07/0.4972, allocations: 0 / 0.5271 GB, free: 7.57 MB / 418.8 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