Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.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/IBPSA 4.0.0-master/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) 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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset",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.001365/0.001365, allocations: 192.5 kB / 7.806 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4675/0.4675, allocations: 90.86 MB / 99.08 MB, free: 14.96 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.4 MB / 342.8 MB, free: 5.199 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009833/0.0009834, allocations: 90.78 kB / 415.5 MB, free: 6.426 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1665/0.1676, allocations: 78.45 MB / 494 MB, free: 7.977 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.388/0.5556, allocations: 72.3 MB / 0.553 GB, free: 73.43 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1235/0.6791, allocations: 102.6 MB / 0.6532 GB, free: 7.344 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.6795, allocations: 71.95 kB / 0.6533 GB, free: 7.273 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0109/0.6904, allocations: 3.655 MB / 0.6569 GB, free: 3.621 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.6905, allocations: 8 kB / 0.6569 GB, free: 3.613 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.822e-05/0.6906, allocations: 22.19 kB / 0.6569 GB, free: 3.594 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002934/0.6909, allocations: 234.5 kB / 0.6571 GB, free: 3.324 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.6909, allocations: 0 / 0.6571 GB, free: 3.324 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.779e-05/0.6909, allocations: 9.406 kB / 0.6571 GB, free: 3.316 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001252/0.6911, allocations: 36 kB / 0.6572 GB, free: 3.281 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.6913, allocations: 125.2 kB / 0.6573 GB, free: 3.141 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.6913, allocations: 0 / 0.6573 GB, free: 3.141 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.558e-05/0.6913, allocations: 4.594 kB / 0.6573 GB, free: 3.137 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.6913, allocations: 0.625 kB / 0.6573 GB, free: 3.137 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009663/0.6923, allocations: 0.7074 MB / 0.658 GB, free: 2.383 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.252e-05/0.6924, allocations: 35.08 kB / 0.658 GB, free: 2.34 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.591e-05/0.6924, allocations: 17.89 kB / 0.658 GB, free: 2.32 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.525e-05/0.6925, allocations: 7.984 kB / 0.658 GB, free: 2.312 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001311/0.6926, allocations: 101.2 kB / 0.6581 GB, free: 2.191 MB / 474.7 MB Notification: Performance of pre-optimization done (n=11): time 1.964e-06/0.6926, allocations: 4 kB / 0.6581 GB, free: 2.188 MB / 474.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002622/0.6929, allocations: 93.41 kB / 0.6582 GB, free: 2.09 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.376e-05/0.693, allocations: 136.5 kB / 0.6583 GB, free: 1.926 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001665/0.6932, allocations: 165.5 kB / 0.6585 GB, free: 1.758 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.6932, allocations: 26.73 kB / 0.6585 GB, free: 1.727 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.085e-05/0.6933, allocations: 115.8 kB / 0.6586 GB, free: 1.609 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.85e-05/0.6933, allocations: 31.55 kB / 0.6587 GB, free: 1.578 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.873e-06/0.6933, allocations: 4.062 kB / 0.6587 GB, free: 1.574 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.6935, allocations: 330.7 kB / 0.659 GB, free: 1.242 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.819e-05/0.6936, allocations: 20.38 kB / 0.659 GB, free: 1.219 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.6937, allocations: 123.2 kB / 0.6591 GB, free: 1.047 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.946e-05/0.6938, allocations: 43.92 kB / 0.6592 GB, free: 1.004 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.6938, allocations: 0 / 0.6592 GB, free: 1.004 MB / 474.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002635/0.694, allocations: 157.3 kB / 0.6593 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.6941, allocations: 4 kB / 0.6593 GB, free: 0.8398 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.996e-06/0.6941, allocations: 6.344 kB / 0.6593 GB, free: 0.8359 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.6941, allocations: 4 kB / 0.6593 GB, free: 0.832 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.6943, allocations: 35.92 kB / 0.6594 GB, free: 0.7969 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.478e-05/0.6943, allocations: 13.34 kB / 0.6594 GB, free: 0.7852 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001749/0.6945, allocations: 27.89 kB / 0.6594 GB, free: 0.7578 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.6945, allocations: 14.31 kB / 0.6594 GB, free: 0.7461 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 9.23e-05/0.6946, allocations: 114.3 kB / 0.6595 GB, free: 0.6289 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.444e-05/0.6947, allocations: 15.81 kB / 0.6595 GB, free: 0.6133 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.151e-05/0.6947, allocations: 29.3 kB / 0.6596 GB, free: 0.582 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.6948, allocations: 4 kB / 0.6596 GB, free: 0.5781 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.6948, allocations: 0 / 0.6596 GB, free: 0.5781 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.6948, allocations: 0 / 0.6596 GB, free: 0.5781 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006381/0.6954, allocations: 470.2 kB / 0.66 GB, free: 76 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.6954, allocations: 0 / 0.66 GB, free: 76 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.6956, allocations: 23.92 kB / 0.66 GB, free: 52 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.177e-06/0.6956, allocations: 0 / 0.66 GB, free: 52 kB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.6956, allocations: 4 kB / 0.6601 GB, free: 48 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.6956, allocations: 0 / 0.6601 GB, free: 48 kB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.6956, allocations: 0 / 0.6601 GB, free: 48 kB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000329/0.696, allocations: 355.3 kB / 0.6604 GB, free: 15.66 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004297/0.6964, allocations: 0.7413 MB / 0.6611 GB, free: 14.88 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.802e-05/0.6965, allocations: 96.84 kB / 0.6612 GB, free: 14.76 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.993e-05/0.6965, allocations: 8 kB / 0.6612 GB, free: 14.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001973/0.6967, allocations: 15.98 kB / 0.6612 GB, free: 14.74 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.968e-05/0.6968, allocations: 7.984 kB / 0.6612 GB, free: 14.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.6968, allocations: 10.44 kB / 0.6612 GB, free: 14.72 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.149e-05/0.6969, allocations: 128.3 kB / 0.6614 GB, free: 14.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0009826/0.6979, allocations: 31.84 kB / 0.6614 GB, free: 14.57 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * 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.0002012/0.6981, allocations: 103.9 kB / 0.6615 GB, free: 14.45 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0002347/0.6983, allocations: 75.86 kB / 0.6616 GB, free: 14.38 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.6984, allocations: 1 kB / 0.6616 GB, free: 14.38 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.6985, allocations: 35.94 kB / 0.6616 GB, free: 14.34 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005028/0.699, allocations: 60.52 kB / 0.6617 GB, free: 14.29 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006233/0.6996, allocations: 250.6 kB / 0.6619 GB, free: 14.02 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003725/0.7, allocations: 0.7471 MB / 0.6626 GB, free: 13.24 MB / 490.7 MB Notification: Performance of SimCode: time 3.11e-07/0.7, allocations: 0 / 0.6626 GB, free: 13.24 MB / 490.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)