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"}) [: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.001193/0.001193, allocations: 180.7 kB / 8.132 MB, free: 2.219 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.13/1.13, allocations: 221.4 MB / 229.9 MB, free: 2.996 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.0008797/0.0008798, allocations: 96.55 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09357/0.09448, allocations: 55.83 MB / 336.6 MB, free: 9.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.2745, allocations: 50.39 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09379/0.3684, allocations: 93.62 MB / 480.6 MB, free: 9.102 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/0.3686, allocations: 82.16 kB / 480.7 MB, free: 9.023 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.06261/0.4312, allocations: 23.67 MB / 0.4926 GB, free: 1.223 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.4313, allocations: 8 kB / 0.4926 GB, free: 1.215 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005671/0.4319, allocations: 142.7 kB / 0.4927 GB, free: 1.074 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001334/0.4332, allocations: 0.692 MB / 0.4934 GB, free: 348 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.4333, allocations: 24 kB / 0.4934 GB, free: 324 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.4334, allocations: 51.91 kB / 0.4934 GB, free: 272 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.09693/0.5303, allocations: 431.4 kB / 0.4939 GB, free: 127.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009531/0.5313, allocations: 0.6315 MB / 0.4945 GB, free: 127 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.949e-05/0.5313, allocations: 4.031 kB / 0.4945 GB, free: 127 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.033e-05/0.5314, allocations: 1.406 kB / 0.4945 GB, free: 127 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.5314, allocations: 23.12 kB / 0.4945 GB, free: 127 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0034/0.5348, allocations: 3.299 MB / 0.4977 GB, free: 125.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001818/0.535, allocations: 122.2 kB / 0.4978 GB, free: 125.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.5352, allocations: 93.33 kB / 0.4979 GB, free: 125.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/0.5352, allocations: 5.844 kB / 0.4979 GB, free: 125.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/0.5352, allocations: 39.22 kB / 0.498 GB, free: 125.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 2.444e-06/0.5352, allocations: 0 / 0.498 GB, free: 125.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.001081/0.5363, allocations: 0.752 MB / 0.4987 GB, free: 125 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.01e-05/0.5364, allocations: 84.56 kB / 0.4988 GB, free: 124.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005311/0.5369, allocations: 0.5172 MB / 0.4993 GB, free: 124.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.5369, allocations: 25.7 kB / 0.4993 GB, free: 124.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.5371, allocations: 429.9 kB / 0.4997 GB, free: 124.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.663e-05/0.5371, allocations: 103.2 kB / 0.4998 GB, free: 124.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.445e-05/0.5371, allocations: 0 / 0.4998 GB, free: 124.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.776e-05/0.5372, allocations: 371.9 kB / 0.5002 GB, free: 124.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.5374, allocations: 95.31 kB / 0.5003 GB, free: 124.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.5376, allocations: 384 kB / 0.5006 GB, free: 123.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002106/0.5378, allocations: 167.7 kB / 0.5008 GB, free: 123.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5378, allocations: 0 / 0.5008 GB, free: 123.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0006665/0.5385, allocations: 0.4966 MB / 0.5013 GB, free: 123.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.5385, allocations: 3.406 kB / 0.5013 GB, free: 123.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.5385, allocations: 10.72 kB / 0.5013 GB, free: 123.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000126/0.5387, allocations: 33.53 kB / 0.5013 GB, free: 123.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004442/0.5391, allocations: 151.8 kB / 0.5015 GB, free: 123.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006514/0.5398, allocations: 1.237 MB / 0.5027 GB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004426/0.5402, allocations: 27.81 kB / 0.5027 GB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.147e-05/0.5403, allocations: 28.16 kB / 0.5027 GB, free: 122.5 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 () * 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 8.554e-05/0.5404, allocations: 134.5 kB / 0.5029 GB, free: 122.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.702e-05/0.5405, allocations: 64.62 kB / 0.5029 GB, free: 122.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003934/0.5409, allocations: 261.3 kB / 0.5032 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.5409, allocations: 7.422 kB / 0.5032 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.5409, allocations: 0 / 0.5032 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.5409, allocations: 3.188 kB / 0.5032 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.5419, allocations: 0.9133 MB / 0.5041 GB, free: 122 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.542, allocations: 3.562 kB / 0.5041 GB, free: 122 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000318/0.5423, allocations: 65.41 kB / 0.5041 GB, free: 122 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.328e-05/0.5424, allocations: 19.03 kB / 0.5042 GB, free: 122 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.5424, allocations: 10.16 kB / 0.5042 GB, free: 122 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00057/0.543, allocations: 1.223 MB / 0.5054 GB, free: 120.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.543, allocations: 4.406 kB / 0.5054 GB, free: 120.8 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004877/0.5435, allocations: 0.5618 MB / 0.5059 GB, free: 120.4 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005966/0.5441, allocations: 1.02 MB / 0.5069 GB, free: 119.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001739/0.5443, allocations: 164.2 kB / 0.5071 GB, free: 119.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.869e-05/0.5444, allocations: 6.891 kB / 0.5071 GB, free: 119.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003185/0.5447, allocations: 23.66 kB / 0.5071 GB, free: 119.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.754e-05/0.5448, allocations: 21.56 kB / 0.5071 GB, free: 119.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.5448, allocations: 12.69 kB / 0.5071 GB, free: 119.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003931/0.5452, allocations: 390.2 kB / 0.5075 GB, free: 119.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001228/0.5464, allocations: 169.9 kB / 0.5077 GB, free: 119.5 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 () * 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.0003055/0.5467, allocations: 265.3 kB / 0.5079 GB, free: 119.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005382/0.5473, allocations: 386.4 kB / 0.5083 GB, free: 119.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.5473, allocations: 0 / 0.5083 GB, free: 119.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002165/0.5475, allocations: 210 kB / 0.5085 GB, free: 119.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006963/0.5482, allocations: 139.5 kB / 0.5086 GB, free: 119.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.55, allocations: 1.011 MB / 0.5096 GB, free: 118.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000422/0.5504, allocations: 1.01 MB / 0.5106 GB, free: 118.1 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5504, allocations: 0 / 0.5106 GB, free: 118.1 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