Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimPID",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.0009834/0.0009834, allocations: 175.9 kB / 8.516 MB, free: 1.855 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.177/1.177, allocations: 221.4 MB / 230.3 MB, free: 7.379 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.0009701/0.0009701, allocations: 82.3 kB / 281.2 MB, free: 5.121 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1665/0.1665, allocations: 44.15 MB / 376.1 MB, free: 3.141 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1971/0.3636, allocations: 68.02 MB / 444.1 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.4697, allocations: 61.92 MB / 0.4942 GB, free: 1.473 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2706/0.7403, allocations: 89.26 MB / 0.5813 GB, free: 7.391 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.7405, allocations: 63.97 kB / 0.5814 GB, free: 7.328 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.04225/0.7828, allocations: 16.08 MB / 0.5971 GB, free: 7.172 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.7828, allocations: 15.94 kB / 0.5971 GB, free: 7.156 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000302/0.7831, allocations: 114.6 kB / 0.5972 GB, free: 7.043 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.7842, allocations: 0.6132 MB / 0.5978 GB, free: 6.391 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.7842, allocations: 23.98 kB / 0.5979 GB, free: 6.367 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.976e-05/0.7843, allocations: 40 kB / 0.5979 GB, free: 6.328 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000781/0.7851, allocations: 390.6 kB / 0.5983 GB, free: 5.941 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008992/0.786, allocations: 0.584 MB / 0.5988 GB, free: 5.301 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.7861, allocations: 4 kB / 0.5988 GB, free: 5.297 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.003e-05/0.7861, allocations: 4 kB / 0.5988 GB, free: 5.293 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.987e-05/0.7861, allocations: 16 kB / 0.5989 GB, free: 5.277 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003435/0.7896, allocations: 2.675 MB / 0.6015 GB, free: 2.52 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009441/0.7905, allocations: 0.5116 MB / 0.602 GB, free: 1.973 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003069/0.7909, allocations: 215.9 kB / 0.6022 GB, free: 1.75 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.841e-05/0.7909, allocations: 4 kB / 0.6022 GB, free: 1.746 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.791, allocations: 50.48 kB / 0.6022 GB, free: 1.688 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 2.565e-06/0.791, allocations: 0 / 0.6022 GB, free: 1.688 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.0008693/0.7918, allocations: 454.9 kB / 0.6027 GB, free: 1.238 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.479e-05/0.792, allocations: 239.3 kB / 0.6029 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005741/0.7925, allocations: 0.5044 MB / 0.6034 GB, free: 448 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.17e-05/0.7926, allocations: 25.7 kB / 0.6034 GB, free: 416 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.7927, allocations: 296.1 kB / 0.6037 GB, free: 116 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.7929, allocations: 181.5 kB / 0.6039 GB, free: 15.93 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.7929, allocations: 0 / 0.6039 GB, free: 15.93 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.793, allocations: 322 kB / 0.6042 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002597/0.7933, allocations: 153.3 kB / 0.6043 GB, free: 15.46 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003656/0.7937, allocations: 295.8 kB / 0.6046 GB, free: 15.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002927/0.794, allocations: 178.7 kB / 0.6048 GB, free: 14.95 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.794, allocations: 0 / 0.6048 GB, free: 14.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001924/0.7959, allocations: 0.8496 MB / 0.6056 GB, free: 14.08 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003852/0.7963, allocations: 1.144 MB / 0.6067 GB, free: 12.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.7963, allocations: 0 / 0.6067 GB, free: 12.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009291/0.7973, allocations: 267.2 kB / 0.607 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005596/0.7978, allocations: 131.9 kB / 0.6071 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003693/0.8015, allocations: 3.668 MB / 0.6107 GB, free: 8.586 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005373/0.8021, allocations: 79.61 kB / 0.6108 GB, free: 8.508 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.202e-05/0.8022, allocations: 20.06 kB / 0.6108 GB, free: 8.488 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.743e-06/0.8022, allocations: 4.766 kB / 0.6108 GB, free: 8.484 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001092/0.8033, allocations: 0.5076 MB / 0.6113 GB, free: 7.973 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.8033, allocations: 4 kB / 0.6113 GB, free: 7.969 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004242/0.8037, allocations: 117.6 kB / 0.6114 GB, free: 7.848 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007791/0.8045, allocations: 179.9 kB / 0.6116 GB, free: 7.672 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002947/0.8075, allocations: 3.032 MB / 0.6145 GB, free: 4.402 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004643/0.8079, allocations: 55.64 kB / 0.6146 GB, free: 4.348 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.715e-05/0.808, allocations: 24 kB / 0.6146 GB, free: 4.324 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (PID4.I.local_reset,PID3.I.local_reset,PID2.I.local_reset,PID1.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001454/0.8081, allocations: 108.9 kB / 0.6147 GB, free: 4.211 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001767/0.8083, allocations: 82.97 kB / 0.6148 GB, free: 4.129 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001906/0.8085, allocations: 94.41 kB / 0.6149 GB, free: 4.035 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.8085, allocations: 7.938 kB / 0.6149 GB, free: 4.027 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.8085, allocations: 4 kB / 0.6149 GB, free: 4.023 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.8086, allocations: 3.984 kB / 0.6149 GB, free: 4.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009328/0.8095, allocations: 0.6537 MB / 0.6155 GB, free: 3.328 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.8095, allocations: 4 kB / 0.6155 GB, free: 3.324 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006198/0.8101, allocations: 127.9 kB / 0.6156 GB, free: 3.199 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.8101, allocations: 4 kB / 0.6157 GB, free: 3.195 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.785e-05/0.8102, allocations: 4 kB / 0.6157 GB, free: 3.191 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.8102, allocations: 0 / 0.6157 GB, free: 3.191 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.8102, allocations: 4 kB / 0.6157 GB, free: 3.188 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001149/0.8114, allocations: 1.043 MB / 0.6167 GB, free: 2.098 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001514/0.8129, allocations: 1.671 MB / 0.6183 GB, free: 392 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002356/0.8132, allocations: 207.9 kB / 0.6185 GB, free: 164 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.109e-05/0.8133, allocations: 4 kB / 0.6185 GB, free: 160 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005354/0.8138, allocations: 55.95 kB / 0.6186 GB, free: 104 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.866e-05/0.8139, allocations: 31.89 kB / 0.6186 GB, free: 72 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.16e-05/0.8139, allocations: 12 kB / 0.6186 GB, free: 60 kB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004429/0.8144, allocations: 399.2 kB / 0.619 GB, free: 15.67 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002068/0.8164, allocations: 250.8 kB / 0.6192 GB, free: 15.42 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PID1.I.y,firstOrder1.y,PID2.I.y,firstOrder2.y,PID3.I.y,firstOrder3.y,PID4.I.y,firstOrder4.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001514/0.8166, allocations: 103.2 kB / 0.6193 GB, free: 15.31 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003205/0.8198, allocations: 1.446 MB / 0.6207 GB, free: 13.84 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.8198, allocations: 0 / 0.6207 GB, free: 13.84 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003291/0.8202, allocations: 212.9 kB / 0.6209 GB, free: 13.63 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009986/0.8212, allocations: 190.8 kB / 0.6211 GB, free: 13.45 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002182/0.8234, allocations: 1.118 MB / 0.6222 GB, free: 12.29 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007089/0.8241, allocations: 1.063 MB / 0.6233 GB, free: 11.2 MB / 442.7 MB Notification: Performance of SimCode: time 3.7e-07/0.8241, allocations: 3.938 kB / 0.6233 GB, free: 11.2 MB / 442.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_LimPID_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_LimPID.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID_res.mat does not exist to compare? outputFormat=mat