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"}) [: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.001023/0.001023, allocations: 183.4 kB / 8.135 MB, free: 2.223 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.113/1.113, allocations: 221.4 MB / 229.9 MB, free: 3 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.000913/0.0009131, allocations: 101.6 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08672/0.08766, allocations: 55.82 MB / 336.6 MB, free: 9.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.2635, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09222/0.3558, allocations: 98.76 MB / 485.8 MB, free: 3.965 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000199/0.356, allocations: 85.73 kB / 485.9 MB, free: 3.883 MB / 362.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.1953/0.5513, allocations: 29.43 MB / 0.5032 GB, free: 94.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.5514, allocations: 13.59 kB / 0.5032 GB, free: 94.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007133/0.5521, allocations: 193.1 kB / 0.5034 GB, free: 94.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001348/0.5534, allocations: 0.8114 MB / 0.5042 GB, free: 94.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.5535, allocations: 35.78 kB / 0.5042 GB, free: 94.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.5536, allocations: 65.38 kB / 0.5043 GB, free: 94.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009024/0.5545, allocations: 0.5364 MB / 0.5048 GB, free: 94.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.5556, allocations: 0.7602 MB / 0.5056 GB, free: 93.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.06e-05/0.5557, allocations: 1.406 kB / 0.5056 GB, free: 93.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.931e-05/0.5557, allocations: 3.25 kB / 0.5056 GB, free: 93.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.632e-05/0.5557, allocations: 31.11 kB / 0.5056 GB, free: 93.94 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003863/0.5596, allocations: 3.767 MB / 0.5093 GB, free: 91.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002422/0.5599, allocations: 190.3 kB / 0.5095 GB, free: 91.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004354/0.5603, allocations: 263.2 kB / 0.5097 GB, free: 91.81 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.29e-05/0.5604, allocations: 6.812 kB / 0.5097 GB, free: 91.81 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.5604, allocations: 41.25 kB / 0.5098 GB, free: 91.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 1.613e-06/0.5604, allocations: 0 / 0.5098 GB, free: 91.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.001612/0.562, allocations: 1.129 MB / 0.5109 GB, free: 91.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.24e-05/0.562, allocations: 89.08 kB / 0.5109 GB, free: 90.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000587/0.5626, allocations: 0.5945 MB / 0.5115 GB, free: 90.67 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.445e-05/0.5627, allocations: 25.7 kB / 0.5115 GB, free: 90.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.5628, allocations: 474.3 kB / 0.512 GB, free: 90.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.566e-05/0.5629, allocations: 171.2 kB / 0.5122 GB, free: 90.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.092e-05/0.5629, allocations: 3 kB / 0.5122 GB, free: 90.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.998e-05/0.563, allocations: 382.3 kB / 0.5125 GB, free: 89.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.5632, allocations: 140.3 kB / 0.5127 GB, free: 89.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.5635, allocations: 433.5 kB / 0.5131 GB, free: 89.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/0.5638, allocations: 216.7 kB / 0.5133 GB, free: 89.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.5638, allocations: 7.906 kB / 0.5133 GB, free: 89.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0009148/0.5647, allocations: 0.6714 MB / 0.5139 GB, free: 88.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.5647, allocations: 7.875 kB / 0.514 GB, free: 88.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.5647, allocations: 11.88 kB / 0.514 GB, free: 88.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002534/0.565, allocations: 104.2 kB / 0.5141 GB, free: 88.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005073/0.5655, allocations: 162.9 kB / 0.5142 GB, free: 88.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/0.5673, allocations: 2.904 MB / 0.5171 GB, free: 86.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004894/0.5678, allocations: 22.83 kB / 0.5171 GB, free: 86.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.981e-05/0.5678, allocations: 38.69 kB / 0.5171 GB, free: 86.12 MB / 378.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%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.599e-05/0.5679, allocations: 132.6 kB / 0.5172 GB, free: 85.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.293e-05/0.568, allocations: 81.16 kB / 0.5173 GB, free: 85.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006878/0.5687, allocations: 464.5 kB / 0.5178 GB, free: 85.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.5687, allocations: 7.688 kB / 0.5178 GB, free: 85.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.5687, allocations: 0 / 0.5178 GB, free: 85.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.5688, allocations: 3.797 kB / 0.5178 GB, free: 85.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001704/0.5705, allocations: 1.281 MB / 0.519 GB, free: 85.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.5705, allocations: 6.094 kB / 0.519 GB, free: 85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004066/0.5709, allocations: 83.55 kB / 0.5191 GB, free: 85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002656/0.5712, allocations: 90.97 kB / 0.5192 GB, free: 84.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.963e-05/0.5712, allocations: 7.656 kB / 0.5192 GB, free: 84.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001744/0.573, allocations: 2.884 MB / 0.522 GB, free: 82.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.573, allocations: 5.844 kB / 0.522 GB, free: 82.23 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008965/0.5739, allocations: 0.8273 MB / 0.5228 GB, free: 81.65 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001145/0.575, allocations: 1.386 MB / 0.5242 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.5753, allocations: 196.4 kB / 0.5244 GB, free: 80.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.5754, allocations: 4.594 kB / 0.5244 GB, free: 80.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004263/0.5758, allocations: 26.47 kB / 0.5244 GB, free: 80.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.911e-05/0.5759, allocations: 33.48 kB / 0.5244 GB, free: 80.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.847e-05/0.5759, allocations: 14.72 kB / 0.5245 GB, free: 80.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004425/0.5764, allocations: 461 kB / 0.5249 GB, free: 80.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001327/0.5777, allocations: 211.9 kB / 0.5251 GB, free: 79.81 MB / 378.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%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003056/0.578, allocations: 266.2 kB / 0.5253 GB, free: 79.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008196/0.5788, allocations: 0.6393 MB / 0.526 GB, free: 78.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5788, allocations: 0 / 0.526 GB, free: 78.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004655/0.5793, allocations: 411.7 kB / 0.5264 GB, free: 78.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007365/0.5801, allocations: 162.7 kB / 0.5265 GB, free: 78.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002098/0.5822, allocations: 1.272 MB / 0.5278 GB, free: 77.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004885/0.5827, allocations: 1.102 MB / 0.5288 GB, free: 76.22 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5827, allocations: 0 / 0.5288 GB, free: 76.22 MB / 378.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