Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",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.0009654/0.0009655, allocations: 188.3 kB / 8.521 MB, free: 1.824 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.139/1.139, allocations: 221.4 MB / 230.3 MB, free: 7.75 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.0009306/0.0009306, allocations: 92.7 kB / 281.2 MB, free: 5.504 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.1582/0.1582, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1796/0.3378, allocations: 68.02 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09752/0.4353, allocations: 61.91 MB / 0.4942 GB, free: 1.523 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2502/0.6855, allocations: 86.31 MB / 0.5784 GB, free: 10.42 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001659/0.6857, allocations: 64.62 kB / 0.5785 GB, free: 10.36 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.00475/0.6905, allocations: 1.751 MB / 0.5802 GB, free: 8.574 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.6906, allocations: 11.94 kB / 0.5802 GB, free: 8.562 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.641e-05/0.6906, allocations: 7.906 kB / 0.5802 GB, free: 8.555 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001957/0.6908, allocations: 182.9 kB / 0.5804 GB, free: 8.336 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.6908, allocations: 4 kB / 0.5804 GB, free: 8.332 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.221e-05/0.6909, allocations: 4 kB / 0.5804 GB, free: 8.328 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.055e-05/0.691, allocations: 39.92 kB / 0.5805 GB, free: 8.289 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.6911, allocations: 61.69 kB / 0.5805 GB, free: 8.223 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.6911, allocations: 0 / 0.5805 GB, free: 8.223 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.6911, allocations: 4 kB / 0.5805 GB, free: 8.219 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.6911, allocations: 0.75 kB / 0.5805 GB, free: 8.219 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004442/0.6916, allocations: 327.8 kB / 0.5808 GB, free: 7.863 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.665e-05/0.6916, allocations: 38.58 kB / 0.5809 GB, free: 7.816 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.975e-05/0.6917, allocations: 17.06 kB / 0.5809 GB, free: 7.797 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.235e-05/0.6917, allocations: 3.984 kB / 0.5809 GB, free: 7.793 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.955e-05/0.6918, allocations: 67.33 kB / 0.581 GB, free: 7.715 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.6918, allocations: 4 kB / 0.581 GB, free: 7.711 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001573/0.692, allocations: 57.59 kB / 0.581 GB, free: 7.648 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/0.692, allocations: 59.34 kB / 0.5811 GB, free: 7.578 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.836e-05/0.6921, allocations: 109 kB / 0.5812 GB, free: 7.465 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.6921, allocations: 25.7 kB / 0.5812 GB, free: 7.434 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.091e-05/0.6921, allocations: 96.19 kB / 0.5813 GB, free: 7.332 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.547e-05/0.6922, allocations: 19.8 kB / 0.5813 GB, free: 7.312 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.6922, allocations: 0 / 0.5813 GB, free: 7.312 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.566e-05/0.6923, allocations: 322.8 kB / 0.5816 GB, free: 6.988 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.203e-05/0.6923, allocations: 12 kB / 0.5816 GB, free: 6.977 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.23e-05/0.6924, allocations: 38.52 kB / 0.5817 GB, free: 6.93 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.946e-05/0.6924, allocations: 12 kB / 0.5817 GB, free: 6.918 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.6924, allocations: 0 / 0.5817 GB, free: 6.918 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001159/0.6925, allocations: 78.14 kB / 0.5818 GB, free: 6.836 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.6926, allocations: 8 kB / 0.5818 GB, free: 6.828 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.6926, allocations: 4.062 kB / 0.5818 GB, free: 6.824 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.6926, allocations: 0 / 0.5818 GB, free: 6.824 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.417e-05/0.6926, allocations: 15.81 kB / 0.5818 GB, free: 6.812 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.6927, allocations: 0 / 0.5818 GB, free: 6.812 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.723e-05/0.6927, allocations: 15.98 kB / 0.5818 GB, free: 6.797 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.6928, allocations: 4 kB / 0.5818 GB, free: 6.793 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u) * 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.043e-05/0.6928, allocations: 111.2 kB / 0.5819 GB, free: 6.68 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.576e-05/0.6929, allocations: 15.89 kB / 0.5819 GB, free: 6.664 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.517e-05/0.6929, allocations: 8.375 kB / 0.5819 GB, free: 6.656 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.6929, allocations: 4 kB / 0.5819 GB, free: 6.652 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.6929, allocations: 3.938 kB / 0.5819 GB, free: 6.648 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.6929, allocations: 0 / 0.5819 GB, free: 6.648 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003097/0.6932, allocations: 311.2 kB / 0.5822 GB, free: 6.297 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.6932, allocations: 0 / 0.5822 GB, free: 6.297 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.486e-05/0.6933, allocations: 7.984 kB / 0.5822 GB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.6933, allocations: 0 / 0.5822 GB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.6933, allocations: 4 kB / 0.5822 GB, free: 6.285 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.6933, allocations: 3.906 kB / 0.5822 GB, free: 6.281 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.6933, allocations: 0 / 0.5822 GB, free: 6.281 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001764/0.6935, allocations: 179.4 kB / 0.5824 GB, free: 6.09 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003013/0.6938, allocations: 0.5704 MB / 0.583 GB, free: 5.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.046e-05/0.6939, allocations: 85.02 kB / 0.5831 GB, free: 5.398 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.6939, allocations: 0 / 0.5831 GB, free: 5.398 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.694, allocations: 7.984 kB / 0.5831 GB, free: 5.391 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.6941, allocations: 12.17 kB / 0.5831 GB, free: 5.379 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.6941, allocations: 7.906 kB / 0.5831 GB, free: 5.371 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.694e-05/0.6941, allocations: 99.59 kB / 0.5832 GB, free: 5.273 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008008/0.6949, allocations: 12 kB / 0.5832 GB, free: 5.262 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 (fallingEdge.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.0001198/0.6951, allocations: 107.2 kB / 0.5833 GB, free: 5.148 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001026/0.6952, allocations: 32 kB / 0.5833 GB, free: 5.117 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.6952, allocations: 0 / 0.5833 GB, free: 5.117 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.345e-05/0.6952, allocations: 23.94 kB / 0.5833 GB, free: 5.094 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.6955, allocations: 15.98 kB / 0.5834 GB, free: 5.078 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000439/0.6959, allocations: 147.8 kB / 0.5835 GB, free: 4.914 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000266/0.6962, allocations: 0.7191 MB / 0.5842 GB, free: 4.168 MB / 394.7 MB Notification: Performance of SimCode: time 3.21e-07/0.6962, allocations: 4 kB / 0.5842 GB, free: 4.164 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat