Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009678/0.0009679, allocations: 182.8 kB / 8.52 MB, free: 1.742 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.138/1.138, allocations: 221.4 MB / 230.3 MB, free: 7.746 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.0008838/0.0008838, allocations: 76.75 kB / 281.2 MB, free: 5.48 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.1838/0.1838, allocations: 44.15 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1782/0.3621, allocations: 68.03 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09426/0.4564, allocations: 61.91 MB / 0.4942 GB, free: 1.562 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2408/0.6972, allocations: 86.63 MB / 0.5788 GB, free: 10.07 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001937/0.6974, allocations: 59.72 kB / 0.5788 GB, free: 10.04 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.009396/0.7068, allocations: 3.066 MB / 0.5818 GB, free: 6.984 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.7069, allocations: 11.94 kB / 0.5818 GB, free: 6.973 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.937e-05/0.7069, allocations: 11.91 kB / 0.5819 GB, free: 6.961 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/0.7072, allocations: 210.9 kB / 0.5821 GB, free: 6.715 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.7073, allocations: 0 / 0.5821 GB, free: 6.715 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.273e-05/0.7073, allocations: 15.91 kB / 0.5821 GB, free: 6.699 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.711e-05/0.7074, allocations: 27.98 kB / 0.5821 GB, free: 6.672 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001289/0.7075, allocations: 69.62 kB / 0.5822 GB, free: 6.598 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.7076, allocations: 0 / 0.5822 GB, free: 6.598 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.7076, allocations: 11.91 kB / 0.5822 GB, free: 6.586 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.7076, allocations: 0 / 0.5822 GB, free: 6.586 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005149/0.7081, allocations: 341.1 kB / 0.5825 GB, free: 6.215 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001016/0.7082, allocations: 58.5 kB / 0.5826 GB, free: 6.148 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.429e-05/0.7083, allocations: 17.02 kB / 0.5826 GB, free: 6.129 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.282e-05/0.7083, allocations: 0 / 0.5826 GB, free: 6.129 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.083e-05/0.7084, allocations: 63.45 kB / 0.5826 GB, free: 6.055 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.7084, allocations: 0 / 0.5826 GB, free: 6.055 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001583/0.7086, allocations: 69.58 kB / 0.5827 GB, free: 5.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/0.7086, allocations: 59.34 kB / 0.5828 GB, free: 5.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.579e-05/0.7087, allocations: 124.3 kB / 0.5829 GB, free: 5.781 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.7087, allocations: 25.7 kB / 0.5829 GB, free: 5.75 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.769e-05/0.7088, allocations: 100.3 kB / 0.583 GB, free: 5.645 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.7088, allocations: 15.81 kB / 0.583 GB, free: 5.629 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.809e-06/0.7088, allocations: 0 / 0.583 GB, free: 5.629 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.459e-05/0.7089, allocations: 322.8 kB / 0.5833 GB, free: 5.305 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.427e-05/0.709, allocations: 12 kB / 0.5833 GB, free: 5.289 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.468e-05/0.709, allocations: 33.72 kB / 0.5834 GB, free: 5.25 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.941e-05/0.7091, allocations: 20.73 kB / 0.5834 GB, free: 5.23 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.7091, allocations: 0 / 0.5834 GB, free: 5.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001264/0.7092, allocations: 85.66 kB / 0.5835 GB, free: 5.141 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.7092, allocations: 4 kB / 0.5835 GB, free: 5.137 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.7092, allocations: 0 / 0.5835 GB, free: 5.137 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.158e-06/0.7092, allocations: 0 / 0.5835 GB, free: 5.137 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.7094, allocations: 31.95 kB / 0.5835 GB, free: 5.105 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.7094, allocations: 0 / 0.5835 GB, free: 5.105 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.7095, allocations: 19.98 kB / 0.5835 GB, free: 5.086 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.7095, allocations: 0 / 0.5835 GB, free: 5.086 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.26e-05/0.7096, allocations: 112.9 kB / 0.5836 GB, free: 4.969 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.875e-05/0.7096, allocations: 11.91 kB / 0.5836 GB, free: 4.957 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.149e-05/0.7096, allocations: 8.484 kB / 0.5836 GB, free: 4.949 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.7096, allocations: 4 kB / 0.5836 GB, free: 4.945 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.7096, allocations: 0 / 0.5836 GB, free: 4.945 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.7097, allocations: 0 / 0.5836 GB, free: 4.945 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002979/0.71, allocations: 327 kB / 0.584 GB, free: 4.582 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.71, allocations: 3.938 kB / 0.584 GB, free: 4.578 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.7101, allocations: 19.98 kB / 0.584 GB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.7101, allocations: 0 / 0.584 GB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.7101, allocations: 0 / 0.584 GB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.7101, allocations: 0 / 0.584 GB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.7101, allocations: 0 / 0.584 GB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001993/0.7103, allocations: 191.3 kB / 0.5842 GB, free: 4.355 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003317/0.7107, allocations: 0.5867 MB / 0.5847 GB, free: 3.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.539e-05/0.7107, allocations: 85.02 kB / 0.5848 GB, free: 3.648 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.7107, allocations: 0 / 0.5848 GB, free: 3.648 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.7109, allocations: 31.94 kB / 0.5848 GB, free: 3.617 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.696e-05/0.711, allocations: 15.97 kB / 0.5849 GB, free: 3.602 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.833e-06/0.711, allocations: 0 / 0.5849 GB, free: 3.602 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.701e-05/0.711, allocations: 95.28 kB / 0.585 GB, free: 3.508 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007945/0.7118, allocations: 19.94 kB / 0.585 GB, free: 3.488 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 9.966e-05/0.7119, allocations: 99.23 kB / 0.5851 GB, free: 3.379 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001178/0.7121, allocations: 52.25 kB / 0.5851 GB, free: 3.328 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.7121, allocations: 0 / 0.5851 GB, free: 3.328 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.98e-05/0.7121, allocations: 20 kB / 0.5851 GB, free: 3.309 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002256/0.7124, allocations: 24.27 kB / 0.5852 GB, free: 3.285 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003239/0.7127, allocations: 131.5 kB / 0.5853 GB, free: 3.137 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000277/0.713, allocations: 0.7205 MB / 0.586 GB, free: 2.391 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.713, allocations: 0 / 0.586 GB, free: 2.391 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat does not exist to compare? outputFormat=mat