Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",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.0009609/0.000961, allocations: 182.7 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.104/1.104, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0008954/0.0008953, allocations: 97.14 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09329/0.09421, allocations: 55.83 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1912/0.2855, allocations: 50.4 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09553/0.381, allocations: 94.94 MB / 482 MB, free: 7.801 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.3813, allocations: 81.52 kB / 482 MB, free: 7.723 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.2325/0.6138, allocations: 41.84 MB / 0.5116 GB, free: 91.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.6139, allocations: 8.25 kB / 0.5116 GB, free: 91.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007457/0.6146, allocations: 266.8 kB / 0.5118 GB, free: 91.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001642/0.6163, allocations: 1.1 MB / 0.5129 GB, free: 91.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.045e-05/0.6163, allocations: 53.75 kB / 0.513 GB, free: 91.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/0.6165, allocations: 97.66 kB / 0.5131 GB, free: 91.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001312/0.6178, allocations: 0.814 MB / 0.5139 GB, free: 90.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001755/0.6196, allocations: 1.199 MB / 0.515 GB, free: 90.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.053e-05/0.6196, allocations: 7.969 kB / 0.515 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-05/0.6197, allocations: 9.406 kB / 0.5151 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.185e-05/0.6198, allocations: 39.38 kB / 0.5151 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006516/0.6263, allocations: 6.377 MB / 0.5213 GB, free: 85.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.6267, allocations: 221.9 kB / 0.5215 GB, free: 85.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000267/0.627, allocations: 188.1 kB / 0.5217 GB, free: 85.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.627, allocations: 4.438 kB / 0.5217 GB, free: 85.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002671/0.6273, allocations: 242.5 kB / 0.5219 GB, free: 85.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.134e-06/0.6273, allocations: 3.938 kB / 0.5219 GB, free: 85.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.00195/0.6293, allocations: 1.483 MB / 0.5234 GB, free: 83.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.6293, allocations: 188.4 kB / 0.5236 GB, free: 83.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008691/0.6302, allocations: 0.8564 MB / 0.5244 GB, free: 82.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/0.6302, allocations: 25.7 kB / 0.5244 GB, free: 82.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003535/0.6306, allocations: 0.7338 MB / 0.5252 GB, free: 81.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.6307, allocations: 201.7 kB / 0.5253 GB, free: 81.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.872e-05/0.6307, allocations: 0 / 0.5253 GB, free: 81.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.665e-05/0.6308, allocations: 349.1 kB / 0.5257 GB, free: 81.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002685/0.6311, allocations: 186.6 kB / 0.5259 GB, free: 81.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004383/0.6315, allocations: 0.7534 MB / 0.5266 GB, free: 80.26 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004127/0.6319, allocations: 323.2 kB / 0.5269 GB, free: 79.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.632, allocations: 4 kB / 0.5269 GB, free: 79.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001268/0.6332, allocations: 0.9344 MB / 0.5278 GB, free: 79.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.6333, allocations: 8.844 kB / 0.5278 GB, free: 79.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.6333, allocations: 20 kB / 0.5278 GB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002053/0.6335, allocations: 66.64 kB / 0.5279 GB, free: 79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000804/0.6343, allocations: 272.2 kB / 0.5282 GB, free: 78.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001212/0.6355, allocations: 2.484 MB / 0.5306 GB, free: 76.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007868/0.6363, allocations: 49.36 kB / 0.5306 GB, free: 76.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.075e-05/0.6364, allocations: 56.89 kB / 0.5307 GB, free: 76.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001295/0.6365, allocations: 164.9 kB / 0.5309 GB, free: 75.85 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.6366, allocations: 123.2 kB / 0.531 GB, free: 75.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006926/0.6373, allocations: 452.8 kB / 0.5314 GB, free: 75.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.6374, allocations: 11.61 kB / 0.5314 GB, free: 75.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.6374, allocations: 0 / 0.5314 GB, free: 75.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.607e-06/0.6374, allocations: 3.094 kB / 0.5314 GB, free: 75.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001751/0.6391, allocations: 1.657 MB / 0.533 GB, free: 73.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.6391, allocations: 8.094 kB / 0.533 GB, free: 73.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000421/0.6396, allocations: 107.9 kB / 0.5331 GB, free: 73.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000119/0.6397, allocations: 41.64 kB / 0.5332 GB, free: 73.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.664e-05/0.6397, allocations: 8 kB / 0.5332 GB, free: 73.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001067/0.6408, allocations: 2.449 MB / 0.5356 GB, free: 70.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.6408, allocations: 8.156 kB / 0.5356 GB, free: 70.73 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008193/0.6417, allocations: 1.002 MB / 0.5366 GB, free: 69.59 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001127/0.6428, allocations: 1.564 MB / 0.5381 GB, free: 67.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002564/0.6431, allocations: 231.5 kB / 0.5383 GB, free: 67.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.6432, allocations: 11.98 kB / 0.5383 GB, free: 67.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005075/0.6437, allocations: 23.98 kB / 0.5383 GB, free: 67.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.009e-05/0.6438, allocations: 47.88 kB / 0.5384 GB, free: 67.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.626e-05/0.6439, allocations: 23.91 kB / 0.5384 GB, free: 67.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006637/0.6445, allocations: 0.6071 MB / 0.539 GB, free: 66.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001556/0.6461, allocations: 296 kB / 0.5393 GB, free: 66.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003282/0.6464, allocations: 288.8 kB / 0.5396 GB, free: 66.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009236/0.6474, allocations: 0.7713 MB / 0.5403 GB, free: 65.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.6474, allocations: 5.438 kB / 0.5403 GB, free: 65.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004441/0.6478, allocations: 424.2 kB / 0.5407 GB, free: 65.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.6489, allocations: 262.4 kB / 0.541 GB, free: 64.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003018/0.6519, allocations: 1.867 MB / 0.5428 GB, free: 62.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006863/0.6526, allocations: 1.303 MB / 0.5441 GB, free: 61.59 MB / 378.7 MB Notification: Performance of SimCode: time 3.5e-07/0.6526, allocations: 0 / 0.5441 GB, free: 61.59 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat does not exist to compare? outputFormat=mat