Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_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/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.831/1.831, allocations: 387.2 MB / 394.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009589/0.0009589, allocations: 173.3 kB / 487 MB, free: 5.395 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.169/1.169, allocations: 221.3 MB / 0.7819 GB, free: 1.363 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000829/0.0008292, allocations: 101.8 kB / 0.9213 GB, free: 2.613 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4626/0.4634, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.7189, allocations: 142.3 MB / 1.205 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5895/1.308, allocations: 149.1 MB / 1.351 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001875/1.309, allocations: 70.45 kB / 1.351 GB, free: 15.88 MB / 0.8073 GB 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.009093/1.318, allocations: 3.376 MB / 1.354 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/1.318, allocations: 9.688 kB / 1.354 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.572e-05/1.318, allocations: 15.81 kB / 1.354 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/1.318, allocations: 186.6 kB / 1.354 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/1.318, allocations: 2.594 kB / 1.354 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/1.318, allocations: 9.812 kB / 1.355 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.015e-05/1.318, allocations: 30.72 kB / 1.355 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/1.318, allocations: 70.48 kB / 1.355 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/1.318, allocations: 5.672 kB / 1.355 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/1.318, allocations: 3.938 kB / 1.355 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/1.318, allocations: 2.953 kB / 1.355 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007074/1.319, allocations: 387.2 kB / 1.355 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.026e-05/1.319, allocations: 26.42 kB / 1.355 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.572e-05/1.319, allocations: 23.05 kB / 1.355 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/1.319, allocations: 5.594 kB / 1.355 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001085/1.319, allocations: 81.88 kB / 1.355 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.213e-06/1.319, allocations: 0.6562 kB / 1.355 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0001975/1.32, allocations: 87.06 kB / 1.355 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.054e-05/1.32, allocations: 56.91 kB / 1.355 GB, free: 14.6 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.496e-05/1.32, allocations: 119.5 kB / 1.355 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/1.32, allocations: 27.39 kB / 1.355 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.277e-05/1.32, allocations: 112.1 kB / 1.355 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.435e-05/1.32, allocations: 21.92 kB / 1.356 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.471e-05/1.32, allocations: 2.094 kB / 1.356 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.531e-05/1.32, allocations: 320.5 kB / 1.356 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.627e-05/1.32, allocations: 37.7 kB / 1.356 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/1.32, allocations: 121 kB / 1.356 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003005/1.32, allocations: 70.98 kB / 1.356 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/1.32, allocations: 1.812 kB / 1.356 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0005028/1.321, allocations: 197 kB / 1.356 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/1.321, allocations: 8.062 kB / 1.356 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/1.321, allocations: 2.625 kB / 1.356 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/1.321, allocations: 4.203 kB / 1.356 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/1.321, allocations: 33.11 kB / 1.356 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/1.321, allocations: 4.359 kB / 1.356 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002645/1.321, allocations: 62.8 kB / 1.356 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.186e-05/1.321, allocations: 9.953 kB / 1.356 GB, free: 13.87 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition4,$PRE.booleanPulse.y,booleanPulse.y,$whenCondition1,$whenCondition2,$whenCondition3,intDef.trigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 1 * 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.19e-05/1.321, allocations: 116.4 kB / 1.356 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.78e-05/1.321, allocations: 13.98 kB / 1.356 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.642e-05/1.322, allocations: 10.86 kB / 1.356 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/1.322, allocations: 1.875 kB / 1.356 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/1.322, allocations: 4.797 kB / 1.356 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/1.322, allocations: 4.812 kB / 1.356 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003522/1.322, allocations: 349.6 kB / 1.357 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/1.322, allocations: 0 / 1.357 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/1.322, allocations: 16.8 kB / 1.357 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/1.322, allocations: 1.5 kB / 1.357 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/1.322, allocations: 9.516 kB / 1.357 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/1.322, allocations: 0 / 1.357 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/1.322, allocations: 1.375 kB / 1.357 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001855/1.322, allocations: 210.5 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002528/1.323, allocations: 0.6042 MB / 1.358 GB, free: 12.81 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.147e-05/1.323, allocations: 93.19 kB / 1.358 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/1.323, allocations: 1.375 kB / 1.358 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/1.323, allocations: 18.55 kB / 1.358 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/1.323, allocations: 6.828 kB / 1.358 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/1.323, allocations: 3.438 kB / 1.358 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.015e-05/1.323, allocations: 101.8 kB / 1.358 GB, free: 12.62 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0008231/1.324, allocations: 40.02 kB / 1.358 GB, free: 12.61 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (intDef.trigger,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.0001546/1.324, allocations: 124.6 kB / 1.358 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002073/1.324, allocations: 119.3 kB / 1.358 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/1.324, allocations: 1.312 kB / 1.358 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.249e-05/1.324, allocations: 25.56 kB / 1.358 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002054/1.324, allocations: 19.42 kB / 1.358 GB, free: 12.47 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003938/1.325, allocations: 181.3 kB / 1.358 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00027/1.325, allocations: 0.7331 MB / 1.359 GB, free: 27.66 MB / 0.823 GB Notification: Performance of SimCode: time 2.81e-07/1.325, allocations: 0 / 1.359 GB, free: 27.66 MB / 0.823 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat does not exist to compare? outputFormat=mat