Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",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.0009718/0.0009718, allocations: 187 kB / 8.136 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.131/1.131, allocations: 221.4 MB / 229.9 MB, free: 3.062 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.000953/0.000953, allocations: 101.2 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09015/0.09113, allocations: 55.82 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.2605, allocations: 50.4 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09257/0.3531, allocations: 94.24 MB / 481.2 MB, free: 8.512 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.3534, allocations: 87.88 kB / 481.3 MB, free: 8.426 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.1638/0.5172, allocations: 24.55 MB / 0.494 GB, free: 126.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.5172, allocations: 7.719 kB / 0.494 GB, free: 126.6 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007015/0.518, allocations: 154.3 kB / 0.4942 GB, free: 126.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.5192, allocations: 0.6816 MB / 0.4948 GB, free: 126.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.816e-05/0.5193, allocations: 26.59 kB / 0.4949 GB, free: 126.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.5194, allocations: 52.61 kB / 0.4949 GB, free: 126.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000845/0.5203, allocations: 454.1 kB / 0.4954 GB, free: 126.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009836/0.5213, allocations: 0.652 MB / 0.496 GB, free: 126.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.085e-05/0.5213, allocations: 7.219 kB / 0.496 GB, free: 126.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.31e-05/0.5214, allocations: 0 / 0.496 GB, free: 126.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.5214, allocations: 27.78 kB / 0.496 GB, free: 126.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00352/0.5249, allocations: 3.469 MB / 0.4994 GB, free: 124.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002041/0.5251, allocations: 145.2 kB / 0.4996 GB, free: 124.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/0.5253, allocations: 91.45 kB / 0.4996 GB, free: 124.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.5253, allocations: 5.953 kB / 0.4996 GB, free: 124.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.434e-05/0.5253, allocations: 37.31 kB / 0.4997 GB, free: 124.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 2.034e-06/0.5253, allocations: 0 / 0.4997 GB, free: 124.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.001138/0.5265, allocations: 0.7748 MB / 0.5004 GB, free: 124 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.418e-05/0.5265, allocations: 84.11 kB / 0.5005 GB, free: 123.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005321/0.527, allocations: 0.5136 MB / 0.501 GB, free: 123.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.5271, allocations: 25.7 kB / 0.501 GB, free: 123.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.5272, allocations: 446.2 kB / 0.5015 GB, free: 123.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.428e-05/0.5273, allocations: 111.5 kB / 0.5016 GB, free: 123.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.577e-05/0.5273, allocations: 3.375 kB / 0.5016 GB, free: 123.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.291e-05/0.5274, allocations: 370.1 kB / 0.5019 GB, free: 123.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.5275, allocations: 96.56 kB / 0.502 GB, free: 123.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.5278, allocations: 376.6 kB / 0.5024 GB, free: 122.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/0.528, allocations: 174.5 kB / 0.5025 GB, free: 122.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.528, allocations: 3.5 kB / 0.5026 GB, free: 122.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0006908/0.5287, allocations: 0.4919 MB / 0.503 GB, free: 122.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.5287, allocations: 3.219 kB / 0.503 GB, free: 122.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.5288, allocations: 9.906 kB / 0.503 GB, free: 122.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000124/0.5289, allocations: 40.52 kB / 0.5031 GB, free: 122.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004688/0.5294, allocations: 150.9 kB / 0.5032 GB, free: 122.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006895/0.5301, allocations: 1.237 MB / 0.5044 GB, free: 121.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004858/0.5306, allocations: 42.64 kB / 0.5045 GB, free: 121.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.062e-05/0.5306, allocations: 30.91 kB / 0.5045 GB, free: 121.4 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 (75): * Single equations (assignments): 74 * 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 9.619e-05/0.5307, allocations: 132.8 kB / 0.5046 GB, free: 121.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.743e-05/0.5308, allocations: 63.75 kB / 0.5047 GB, free: 121.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004262/0.5312, allocations: 266.6 kB / 0.5049 GB, free: 121.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.5313, allocations: 3.906 kB / 0.5049 GB, free: 121.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.5313, allocations: 0 / 0.5049 GB, free: 121.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.5313, allocations: 6.391 kB / 0.505 GB, free: 121.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.5324, allocations: 0.9348 MB / 0.5059 GB, free: 120.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.5324, allocations: 0 / 0.5059 GB, free: 120.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003005/0.5327, allocations: 71.12 kB / 0.5059 GB, free: 120.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.403e-05/0.5328, allocations: 27.17 kB / 0.506 GB, free: 120.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/0.5329, allocations: 2.875 kB / 0.506 GB, free: 120.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005722/0.5334, allocations: 1.228 MB / 0.5072 GB, free: 119.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.5335, allocations: 3.375 kB / 0.5072 GB, free: 119.7 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005019/0.534, allocations: 0.571 MB / 0.5077 GB, free: 119.3 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006695/0.5346, allocations: 1.045 MB / 0.5087 GB, free: 118.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000176/0.5348, allocations: 164.5 kB / 0.5089 GB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.399e-05/0.5349, allocations: 9.969 kB / 0.5089 GB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003438/0.5353, allocations: 25.52 kB / 0.5089 GB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.419e-05/0.5353, allocations: 22.98 kB / 0.509 GB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.5354, allocations: 10.16 kB / 0.509 GB, free: 118.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003854/0.5358, allocations: 391.2 kB / 0.5093 GB, free: 118.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001191/0.537, allocations: 175.7 kB / 0.5095 GB, free: 118.4 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 (28): * Single equations (assignments): 27 * 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.0003097/0.5373, allocations: 290.3 kB / 0.5098 GB, free: 118.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005246/0.5378, allocations: 398.1 kB / 0.5102 GB, free: 118.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5378, allocations: 0 / 0.5102 GB, free: 118.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000231/0.5381, allocations: 213.8 kB / 0.5104 GB, free: 118 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007042/0.5388, allocations: 151.9 kB / 0.5105 GB, free: 118 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001787/0.5406, allocations: 1.049 MB / 0.5115 GB, free: 117.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000449/0.541, allocations: 1.023 MB / 0.5125 GB, free: 116.9 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.541, allocations: 0 / 0.5125 GB, free: 116.9 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat