Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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_CurrentControlled,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",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.0009214/0.0009214, allocations: 183.8 kB / 8.136 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.114/1.114, allocations: 221.4 MB / 229.9 MB, free: 3.086 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.0009491/0.0009492, allocations: 98.78 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09757/0.09855, allocations: 55.83 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1882/0.2868, allocations: 50.39 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1095/0.3963, allocations: 98.54 MB / 485.6 MB, free: 4.223 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.3966, allocations: 91.64 kB / 485.6 MB, free: 4.137 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.21/0.6066, allocations: 28.22 MB / 0.5018 GB, free: 93.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.6066, allocations: 14.14 kB / 0.5018 GB, free: 93.6 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006932/0.6073, allocations: 194.2 kB / 0.502 GB, free: 93.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/0.6089, allocations: 0.8377 MB / 0.5028 GB, free: 93.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/0.6089, allocations: 36.22 kB / 0.5029 GB, free: 93.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.609, allocations: 61.48 kB / 0.5029 GB, free: 93.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008765/0.6099, allocations: 0.531 MB / 0.5034 GB, free: 93.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.611, allocations: 0.7663 MB / 0.5042 GB, free: 93.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.396e-05/0.611, allocations: 0 / 0.5042 GB, free: 93.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.897e-05/0.6111, allocations: 6.922 kB / 0.5042 GB, free: 93.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.6111, allocations: 30.81 kB / 0.5042 GB, free: 93.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004016/0.6151, allocations: 3.964 MB / 0.5081 GB, free: 91.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005412/0.6157, allocations: 237.7 kB / 0.5083 GB, free: 91.08 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001745/0.6159, allocations: 140.2 kB / 0.5085 GB, free: 91.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.6159, allocations: 7.812 kB / 0.5085 GB, free: 91.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.5e-05/0.6159, allocations: 38.47 kB / 0.5085 GB, free: 90.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 1.773e-06/0.616, allocations: 0 / 0.5085 GB, free: 90.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.001306/0.6173, allocations: 0.9805 MB / 0.5095 GB, free: 90.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.217e-05/0.6173, allocations: 88.92 kB / 0.5095 GB, free: 90.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006745/0.618, allocations: 0.6283 MB / 0.5102 GB, free: 89.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.618, allocations: 29.7 kB / 0.5102 GB, free: 89.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000154/0.6182, allocations: 492.8 kB / 0.5107 GB, free: 89.53 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.529e-05/0.6182, allocations: 148.3 kB / 0.5108 GB, free: 89.42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.958e-05/0.6183, allocations: 0 / 0.5108 GB, free: 89.42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.126e-05/0.6183, allocations: 331.6 kB / 0.5111 GB, free: 89.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.6185, allocations: 130 kB / 0.5112 GB, free: 89.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.6188, allocations: 452.9 kB / 0.5117 GB, free: 88.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002805/0.6191, allocations: 206.1 kB / 0.5119 GB, free: 88.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.6191, allocations: 5.719 kB / 0.5119 GB, free: 88.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0008139/0.6199, allocations: 0.6129 MB / 0.5125 GB, free: 88.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005809/0.6205, allocations: 4.084 MB / 0.5165 GB, free: 83.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.6205, allocations: 10.84 kB / 0.5165 GB, free: 83.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001311/0.6207, allocations: 39.2 kB / 0.5165 GB, free: 83.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005587/0.6212, allocations: 169.2 kB / 0.5167 GB, free: 83.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006382/0.6219, allocations: 1.236 MB / 0.5179 GB, free: 82.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004932/0.6224, allocations: 23.69 kB / 0.5179 GB, free: 82.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.937e-05/0.6225, allocations: 34.95 kB / 0.5179 GB, free: 82.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.491e-06/0.6225, allocations: 3.969 kB / 0.5179 GB, free: 82.54 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006519/0.6231, allocations: 498.6 kB / 0.5184 GB, free: 82.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.6231, allocations: 7.719 kB / 0.5184 GB, free: 82.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.562e-05/0.6232, allocations: 38.34 kB / 0.5185 GB, free: 82.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004955/0.6237, allocations: 172.3 kB / 0.5186 GB, free: 82.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005122/0.6242, allocations: 1.233 MB / 0.5198 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004317/0.6247, allocations: 26.77 kB / 0.5199 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.264e-05/0.6247, allocations: 31.22 kB / 0.5199 GB, free: 81.08 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0001017/0.6248, allocations: 132.4 kB / 0.52 GB, free: 80.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.304e-05/0.6249, allocations: 89.44 kB / 0.5201 GB, free: 80.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005236/0.6255, allocations: 358.2 kB / 0.5204 GB, free: 80.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.6255, allocations: 3.781 kB / 0.5204 GB, free: 80.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.6255, allocations: 7.438 kB / 0.5204 GB, free: 80.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.6255, allocations: 0 / 0.5204 GB, free: 80.74 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001286/0.6268, allocations: 1.147 MB / 0.5216 GB, free: 80.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.6268, allocations: 0 / 0.5216 GB, free: 80.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003543/0.6272, allocations: 73.58 kB / 0.5216 GB, free: 80.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.156e-05/0.6273, allocations: 27.95 kB / 0.5217 GB, free: 80.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.331e-05/0.6273, allocations: 8.062 kB / 0.5217 GB, free: 80.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000514/0.6278, allocations: 1.231 MB / 0.5229 GB, free: 78.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.6278, allocations: 7.844 kB / 0.5229 GB, free: 78.81 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006176/0.6284, allocations: 0.7005 MB / 0.5236 GB, free: 78.29 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008415/0.6293, allocations: 1.233 MB / 0.5248 GB, free: 77.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001939/0.6295, allocations: 190.2 kB / 0.525 GB, free: 77.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.6296, allocations: 7.906 kB / 0.525 GB, free: 77.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003689/0.63, allocations: 11.62 kB / 0.525 GB, free: 77.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.919e-05/0.6301, allocations: 26.72 kB / 0.525 GB, free: 77.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.6301, allocations: 11.47 kB / 0.525 GB, free: 77.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006371/0.6307, allocations: 475.4 kB / 0.5255 GB, free: 76.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00257/0.6333, allocations: 349.2 kB / 0.5258 GB, free: 76.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * 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: 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.0003563/0.6337, allocations: 273.3 kB / 0.5261 GB, free: 76.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00108/0.6347, allocations: 0.8812 MB / 0.5269 GB, free: 76.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.6348, allocations: 0 / 0.5269 GB, free: 76.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002678/0.635, allocations: 256.6 kB / 0.5272 GB, free: 76.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008531/0.6359, allocations: 185.6 kB / 0.5273 GB, free: 76.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002315/0.6382, allocations: 1.333 MB / 0.5286 GB, free: 75.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005629/0.6388, allocations: 1.126 MB / 0.5297 GB, free: 74.14 MB / 378.7 MB Notification: Performance of SimCode: time 5.01e-07/0.6388, allocations: 5.031 kB / 0.5297 GB, free: 74.14 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat