Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",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 3.2.3+maint.om/package.mo): time 0.0009649/0.0009649, allocations: 179.3 kB / 8.478 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.04/1.04, allocations: 205.2 MB / 214.1 MB, free: 5.512 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008427/0.0008427, allocations: 99.58 kB / 262.1 MB, free: 5.566 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1463/0.1472, allocations: 52.97 MB / 315.1 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06002/0.2073, allocations: 47.58 MB / 362.6 MB, free: 9.93 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2151/0.4224, allocations: 99.19 MB / 461.8 MB, free: 6.258 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/0.4226, allocations: 80.42 kB / 461.9 MB, free: 6.246 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.07735/0.5, allocations: 31.82 MB / 493.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.5, allocations: 8 kB / 493.7 MB, free: 15.4 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006499/0.5007, allocations: 209.9 kB / 493.9 MB, free: 15.2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/0.5023, allocations: 0.8564 MB / 494.8 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.5024, allocations: 83.83 kB / 494.9 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.5025, allocations: 67.91 kB / 495 MB, free: 14.31 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001156/0.5037, allocations: 0.6359 MB / 495.6 MB, free: 13.92 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.5051, allocations: 0.9203 MB / 496.5 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.726e-05/0.5052, allocations: 7.938 kB / 496.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.078e-05/0.5053, allocations: 3.984 kB / 496.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.345e-05/0.5053, allocations: 35.91 kB / 496.6 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005249/0.5105, allocations: 3.732 MB / 0.4886 GB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005306/0.5111, allocations: 320.2 kB / 0.4889 GB, free: 9.852 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003219/0.5114, allocations: 225.2 kB / 0.4891 GB, free: 9.715 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.852e-05/0.5115, allocations: 16.64 kB / 0.4891 GB, free: 9.703 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000364/0.5119, allocations: 252.4 kB / 0.4893 GB, free: 9.508 MB / 346.7 MB Notification: Performance of pre-optimization done (n=63): time 1.984e-06/0.5119, allocations: 0 / 0.4893 GB, free: 9.508 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.002463/0.5143, allocations: 1.384 MB / 0.4907 GB, free: 8.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001742/0.5145, allocations: 481.8 kB / 0.4911 GB, free: 7.742 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009152/0.5154, allocations: 0.7453 MB / 0.4919 GB, free: 6.984 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6e-05/0.5155, allocations: 29.7 kB / 0.4919 GB, free: 6.949 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003147/0.5158, allocations: 0.5093 MB / 0.4924 GB, free: 6.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/0.516, allocations: 224.8 kB / 0.4926 GB, free: 6.207 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.516, allocations: 0 / 0.4926 GB, free: 6.207 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.5162, allocations: 341.9 kB / 0.4929 GB, free: 5.867 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003467/0.5165, allocations: 198.6 kB / 0.4931 GB, free: 5.672 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006204/0.5171, allocations: 0.6485 MB / 0.4938 GB, free: 4.816 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004711/0.5176, allocations: 300.5 kB / 0.4941 GB, free: 4.523 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.5176, allocations: 7.938 kB / 0.4941 GB, free: 4.516 MB / 346.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00162/0.5193, allocations: 0.9303 MB / 0.495 GB, free: 3.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.5193, allocations: 16.03 kB / 0.495 GB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.5193, allocations: 12 kB / 0.495 GB, free: 3.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006418/0.52, allocations: 189.6 kB / 0.4952 GB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007373/0.5207, allocations: 211.6 kB / 0.4954 GB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003725/0.5244, allocations: 3.349 MB / 0.4986 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008768/0.5253, allocations: 68.16 kB / 0.4987 GB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.744e-05/0.5254, allocations: 52 kB / 0.4988 GB, free: 15.45 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * 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,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000158/0.5256, allocations: 140.6 kB / 0.4989 GB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.5257, allocations: 114.7 kB / 0.499 GB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001229/0.5269, allocations: 0.6174 MB / 0.4996 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.527, allocations: 8 kB / 0.4996 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.527, allocations: 4 kB / 0.4996 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001101/0.5281, allocations: 0.8757 MB / 0.5005 GB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002476/0.5306, allocations: 1.58 MB / 0.502 GB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.5306, allocations: 4 kB / 0.502 GB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005298/0.5311, allocations: 120 kB / 0.5021 GB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004351/0.5316, allocations: 129.6 kB / 0.5023 GB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.811e-05/0.5316, allocations: 8 kB / 0.5023 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002868/0.5345, allocations: 3.103 MB / 0.5053 GB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.5345, allocations: 0 / 0.5053 GB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001501/0.536, allocations: 1.042 MB / 0.5063 GB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001958/0.538, allocations: 1.653 MB / 0.5079 GB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003658/0.5384, allocations: 235.7 kB / 0.5082 GB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.5385, allocations: 4 kB / 0.5082 GB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005616/0.5391, allocations: 35.97 kB / 0.5082 GB, free: 5.156 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.954e-05/0.5392, allocations: 48.33 kB / 0.5082 GB, free: 5.109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-05/0.5392, allocations: 20 kB / 0.5083 GB, free: 5.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0006963/0.54, allocations: 0.5411 MB / 0.5088 GB, free: 4.539 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001598/0.5416, allocations: 312.2 kB / 0.5091 GB, free: 4.234 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * 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 (53): * Single equations (assignments): 49 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004202/0.542, allocations: 315.1 kB / 0.5094 GB, free: 3.918 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.5436, allocations: 0.878 MB / 0.5102 GB, free: 3.008 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5436, allocations: 4 kB / 0.5102 GB, free: 3.004 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006873/0.5443, allocations: 478.1 kB / 0.5107 GB, free: 2.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.5453, allocations: 242.6 kB / 0.5109 GB, free: 2.285 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002967/0.5483, allocations: 1.599 MB / 0.5125 GB, free: 0.6289 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008928/0.5492, allocations: 1.193 MB / 0.5137 GB, free: 15.41 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5492, allocations: 0 / 0.5137 GB, free: 15.41 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat