Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001896/0.001896, allocations: 186.2 kB / 7.804 MB, free: 2.438 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.464/1.464, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.001462/0.001462, allocations: 98.22 kB / 261.4 MB, free: 13.55 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.2146/0.2146, allocations: 43.49 MB / 352.8 MB, free: 1.969 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2441/0.4587, allocations: 64.96 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.8101, allocations: 58.84 MB / 476.6 MB, free: 5.176 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1318/0.942, allocations: 85.28 MB / 0.5488 GB, free: 13.63 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/0.9423, allocations: 63.97 kB / 0.5488 GB, free: 13.57 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.005098/0.9474, allocations: 1.704 MB / 0.5505 GB, free: 11.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.9475, allocations: 12 kB / 0.5505 GB, free: 11.81 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.146e-05/0.9475, allocations: 7.906 kB / 0.5505 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.9477, allocations: 190.8 kB / 0.5507 GB, free: 11.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.9477, allocations: 8 kB / 0.5507 GB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.309e-05/0.9478, allocations: 4 kB / 0.5507 GB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.265e-05/0.9479, allocations: 31.92 kB / 0.5507 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001083/0.948, allocations: 65.62 kB / 0.5508 GB, free: 11.46 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.948, allocations: 0 / 0.5508 GB, free: 11.46 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.948, allocations: 7.984 kB / 0.5508 GB, free: 11.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.948, allocations: 0 / 0.5508 GB, free: 11.46 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004764/0.9485, allocations: 325 kB / 0.5511 GB, free: 11.1 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.846e-05/0.9486, allocations: 44.2 kB / 0.5511 GB, free: 11.05 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.408e-05/0.9487, allocations: 17.02 kB / 0.5512 GB, free: 11.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.9487, allocations: 0 / 0.5512 GB, free: 11.04 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.773e-05/0.9488, allocations: 67.44 kB / 0.5512 GB, free: 10.96 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 2.255e-06/0.9488, allocations: 0 / 0.5512 GB, free: 10.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001679/0.949, allocations: 69.52 kB / 0.5513 GB, free: 10.88 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.987e-05/0.949, allocations: 51.41 kB / 0.5513 GB, free: 10.82 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.547e-05/0.9491, allocations: 113 kB / 0.5515 GB, free: 10.7 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.9491, allocations: 25.7 kB / 0.5515 GB, free: 10.67 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.189e-05/0.9492, allocations: 96.19 kB / 0.5516 GB, free: 10.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.71e-05/0.9492, allocations: 19.8 kB / 0.5516 GB, free: 10.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.609e-06/0.9492, allocations: 0 / 0.5516 GB, free: 10.55 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.792e-05/0.9493, allocations: 314.8 kB / 0.5519 GB, free: 10.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.22e-05/0.9494, allocations: 16 kB / 0.5519 GB, free: 10.22 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.191e-05/0.9494, allocations: 34.56 kB / 0.5519 GB, free: 10.18 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.232e-05/0.9494, allocations: 15.94 kB / 0.552 GB, free: 10.16 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.9494, allocations: 0 / 0.552 GB, free: 10.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001157/0.9496, allocations: 77.62 kB / 0.552 GB, free: 10.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.9496, allocations: 6.812 kB / 0.552 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.9496, allocations: 4 kB / 0.552 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.9496, allocations: 0 / 0.552 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.767e-05/0.9497, allocations: 15.92 kB / 0.5521 GB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.9497, allocations: 3.906 kB / 0.5521 GB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.743e-05/0.9498, allocations: 8.141 kB / 0.5521 GB, free: 10.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.582e-06/0.9498, allocations: 4 kB / 0.5521 GB, free: 10.04 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 6.807e-05/0.9499, allocations: 114.6 kB / 0.5522 GB, free: 9.922 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.722e-05/0.9499, allocations: 11.89 kB / 0.5522 GB, free: 9.91 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.394e-05/0.9499, allocations: 12.31 kB / 0.5522 GB, free: 9.898 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.9499, allocations: 0 / 0.5522 GB, free: 9.898 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.9499, allocations: 0 / 0.5522 GB, free: 9.898 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.95, allocations: 4 kB / 0.5522 GB, free: 9.895 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002719/0.9502, allocations: 307.2 kB / 0.5525 GB, free: 9.551 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.9502, allocations: 4 kB / 0.5525 GB, free: 9.547 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.025e-05/0.9503, allocations: 11.94 kB / 0.5525 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.9503, allocations: 7.984 kB / 0.5525 GB, free: 9.527 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.9503, allocations: 3.906 kB / 0.5525 GB, free: 9.523 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.9503, allocations: 0 / 0.5525 GB, free: 9.523 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.9503, allocations: 0 / 0.5525 GB, free: 9.523 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001768/0.9505, allocations: 187.6 kB / 0.5527 GB, free: 9.324 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003472/0.9509, allocations: 0.5624 MB / 0.5533 GB, free: 8.742 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.421e-05/0.9509, allocations: 85.02 kB / 0.5533 GB, free: 8.641 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.951, allocations: 0 / 0.5533 GB, free: 8.641 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.812e-05/0.9511, allocations: 7.984 kB / 0.5533 GB, free: 8.633 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.278e-05/0.9511, allocations: 15.89 kB / 0.5534 GB, free: 8.617 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.844e-06/0.9512, allocations: 4 kB / 0.5534 GB, free: 8.613 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.955e-05/0.9512, allocations: 91.34 kB / 0.5534 GB, free: 8.523 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000772/0.952, allocations: 12 kB / 0.5535 GB, free: 8.512 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.0001444/0.9521, allocations: 103.2 kB / 0.5536 GB, free: 8.402 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001229/0.9523, allocations: 44.22 kB / 0.5536 GB, free: 8.359 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.9523, allocations: 0 / 0.5536 GB, free: 8.359 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.863e-05/0.9523, allocations: 23.94 kB / 0.5536 GB, free: 8.336 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.9526, allocations: 15.42 kB / 0.5536 GB, free: 8.324 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004581/0.9531, allocations: 147.7 kB / 0.5538 GB, free: 8.156 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003044/0.9534, allocations: 0.727 MB / 0.5545 GB, free: 7.402 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.9534, allocations: 0 / 0.5545 GB, free: 7.402 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat