Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",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.001129/0.001129, allocations: 193 kB / 7.806 MB, free: 2.488 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.421/1.421, allocations: 205.2 MB / 213.4 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001066/0.001066, allocations: 90.88 kB / 261.4 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.192/0.192, allocations: 43.49 MB / 352.8 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2188/0.4108, allocations: 64.96 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.391/0.8018, allocations: 58.84 MB / 476.6 MB, free: 5.164 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1255/0.9274, allocations: 85.62 MB / 0.5491 GB, free: 13.27 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001861/0.9276, allocations: 55.98 kB / 0.5491 GB, free: 13.21 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.009622/0.9373, allocations: 3.019 MB / 0.5521 GB, free: 10.16 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.9373, allocations: 11.98 kB / 0.5521 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.649e-05/0.9374, allocations: 15.91 kB / 0.5521 GB, free: 10.13 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003272/0.9377, allocations: 210.8 kB / 0.5523 GB, free: 9.883 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.9378, allocations: 4 kB / 0.5523 GB, free: 9.879 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.287e-05/0.9378, allocations: 7.906 kB / 0.5523 GB, free: 9.871 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.956e-05/0.9379, allocations: 32 kB / 0.5524 GB, free: 9.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001276/0.938, allocations: 69.61 kB / 0.5524 GB, free: 9.766 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.9381, allocations: 0 / 0.5524 GB, free: 9.766 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.9381, allocations: 0 / 0.5524 GB, free: 9.766 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.864e-06/0.9381, allocations: 7.938 kB / 0.5524 GB, free: 9.758 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00054/0.9386, allocations: 345.1 kB / 0.5528 GB, free: 9.383 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001002/0.9388, allocations: 50.58 kB / 0.5528 GB, free: 9.324 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.135e-05/0.9388, allocations: 24.89 kB / 0.5528 GB, free: 9.297 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.9388, allocations: 0 / 0.5528 GB, free: 9.297 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.236e-05/0.9389, allocations: 63.44 kB / 0.5529 GB, free: 9.223 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.9389, allocations: 0 / 0.5529 GB, free: 9.223 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001833/0.9391, allocations: 65.59 kB / 0.553 GB, free: 9.152 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/0.9392, allocations: 59.31 kB / 0.553 GB, free: 9.082 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.9393, allocations: 121.3 kB / 0.5531 GB, free: 8.953 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.9393, allocations: 29.69 kB / 0.5532 GB, free: 8.918 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.782e-05/0.9394, allocations: 92.28 kB / 0.5532 GB, free: 8.82 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.935e-05/0.9394, allocations: 23.88 kB / 0.5533 GB, free: 8.797 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-06/0.9394, allocations: 0 / 0.5533 GB, free: 8.797 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.9395, allocations: 318.8 kB / 0.5536 GB, free: 8.477 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.817e-05/0.9396, allocations: 19.94 kB / 0.5536 GB, free: 8.457 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.874e-05/0.9396, allocations: 33.7 kB / 0.5536 GB, free: 8.418 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.118e-05/0.9397, allocations: 16 kB / 0.5536 GB, free: 8.402 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.9397, allocations: 0 / 0.5536 GB, free: 8.402 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001238/0.9398, allocations: 77.53 kB / 0.5537 GB, free: 8.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.9398, allocations: 8 kB / 0.5537 GB, free: 8.312 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.9399, allocations: 0 / 0.5537 GB, free: 8.312 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.959e-06/0.9399, allocations: 0 / 0.5537 GB, free: 8.312 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.94, allocations: 19.98 kB / 0.5537 GB, free: 8.293 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.94, allocations: 4.031 kB / 0.5537 GB, free: 8.289 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.9401, allocations: 16.27 kB / 0.5538 GB, free: 8.273 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.9401, allocations: 4 kB / 0.5538 GB, free: 8.27 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u,change.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 prepare postOptimizeDAE: time 7.642e-05/0.9402, allocations: 117.7 kB / 0.5539 GB, free: 8.152 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.969e-05/0.9402, allocations: 19.83 kB / 0.5539 GB, free: 8.133 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.622e-05/0.9403, allocations: 12.5 kB / 0.5539 GB, free: 8.125 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.9403, allocations: 0 / 0.5539 GB, free: 8.125 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.9403, allocations: 0 / 0.5539 GB, free: 8.125 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.9403, allocations: 3.984 kB / 0.5539 GB, free: 8.121 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003039/0.9406, allocations: 323 kB / 0.5542 GB, free: 7.762 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.9406, allocations: 0 / 0.5542 GB, free: 7.762 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/0.9407, allocations: 19.94 kB / 0.5542 GB, free: 7.742 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.9408, allocations: 0 / 0.5542 GB, free: 7.742 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.9408, allocations: 4 kB / 0.5542 GB, free: 7.738 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.9408, allocations: 7.922 kB / 0.5542 GB, free: 7.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.9408, allocations: 0 / 0.5542 GB, free: 7.73 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002002/0.941, allocations: 187.4 kB / 0.5544 GB, free: 7.531 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003554/0.9414, allocations: 0.5901 MB / 0.555 GB, free: 6.922 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.935e-05/0.9414, allocations: 85 kB / 0.5551 GB, free: 6.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.236e-05/0.9414, allocations: 3.906 kB / 0.5551 GB, free: 6.816 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.9416, allocations: 28.05 kB / 0.5551 GB, free: 6.789 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.867e-05/0.9417, allocations: 11.97 kB / 0.5551 GB, free: 6.777 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.9417, allocations: 8 kB / 0.5551 GB, free: 6.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.143e-05/0.9417, allocations: 98.08 kB / 0.5552 GB, free: 6.676 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008461/0.9426, allocations: 15.94 kB / 0.5552 GB, free: 6.66 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (change.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001243/0.9427, allocations: 99.25 kB / 0.5553 GB, free: 6.551 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001245/0.9429, allocations: 43.94 kB / 0.5554 GB, free: 6.508 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.9429, allocations: 4.062 kB / 0.5554 GB, free: 6.504 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.499e-05/0.9429, allocations: 27.98 kB / 0.5554 GB, free: 6.477 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.9432, allocations: 15.89 kB / 0.5554 GB, free: 6.461 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003839/0.9436, allocations: 131.8 kB / 0.5556 GB, free: 6.309 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003053/0.9439, allocations: 0.7191 MB / 0.5563 GB, free: 5.562 MB / 394.7 MB Notification: Performance of SimCode: time 2.7e-07/0.9439, allocations: 4 kB / 0.5563 GB, free: 5.559 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat does not exist to compare? outputFormat=mat