Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") [: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 10.0.0-master/package.mo): time 1.705/1.705, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.000895/0.000895, allocations: 177.2 kB / 490.8 MB, free: 1.922 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.054/1.054, allocations: 221.4 MB / 0.7863 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007994/0.0007994, allocations: 90.28 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.43e-06/5.461e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1659/0.1659, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.445/0.6109, allocations: 149.3 MB / 1.357 GB, free: 17.28 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001643/0.6111, allocations: 68.95 kB / 1.357 GB, free: 17.28 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.002842/0.614, allocations: 0.868 MB / 1.358 GB, free: 17.23 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.614, allocations: 4.5 kB / 1.358 GB, free: 17.23 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004257/0.6144, allocations: 374.8 kB / 1.359 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.843e-05/0.6145, allocations: 8.094 kB / 1.359 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.385e-05/0.6145, allocations: 8.891 kB / 1.359 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.702e-05/0.6146, allocations: 173.8 kB / 1.359 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.6146, allocations: 3.547 kB / 1.359 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.713e-05/0.6146, allocations: 5.203 kB / 1.359 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.99e-05/0.6147, allocations: 24.78 kB / 1.359 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.427e-05/0.6148, allocations: 66.83 kB / 1.359 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.6148, allocations: 0 / 1.359 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.6148, allocations: 1.781 kB / 1.359 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.6148, allocations: 4.906 kB / 1.359 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003758/0.6152, allocations: 293.6 kB / 1.359 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.711e-05/0.6153, allocations: 63.8 kB / 1.359 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.186e-05/0.6154, allocations: 29.8 kB / 1.359 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.6154, allocations: 1.984 kB / 1.359 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.978e-05/0.6155, allocations: 75.84 kB / 1.359 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.6155, allocations: 1.062 kB / 1.359 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.000163/0.6157, allocations: 86.69 kB / 1.359 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.86e-05/0.6157, allocations: 55.73 kB / 1.36 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.133e-05/0.6157, allocations: 100.4 kB / 1.36 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.6158, allocations: 29.12 kB / 1.36 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.804e-05/0.6158, allocations: 82.72 kB / 1.36 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.153e-05/0.6158, allocations: 33.31 kB / 1.36 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-06/0.6158, allocations: 4.688 kB / 1.36 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.42e-05/0.6159, allocations: 323.6 kB / 1.36 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.994e-05/0.616, allocations: 23.34 kB / 1.36 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.998e-05/0.616, allocations: 48 kB / 1.36 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.6162, allocations: 35.19 kB / 1.36 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.6162, allocations: 1.031 kB / 1.36 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002169/0.6164, allocations: 119.8 kB / 1.36 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.466e-06/0.6164, allocations: 4.469 kB / 1.36 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.6164, allocations: 2.219 kB / 1.36 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.6164, allocations: 7.125 kB / 1.36 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.6166, allocations: 22.5 kB / 1.36 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.6166, allocations: 1.375 kB / 1.36 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.574e-05/0.6167, allocations: 18.5 kB / 1.36 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.6167, allocations: 8.281 kB / 1.36 GB, free: 31.56 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.251e-05/0.6167, allocations: 121.3 kB / 1.36 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.31e-05/0.6168, allocations: 6.875 kB / 1.36 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001402/0.6169, allocations: 93.61 kB / 1.361 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.6169, allocations: 1.406 kB / 1.361 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.6169, allocations: 1.781 kB / 1.361 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.6169, allocations: 4.562 kB / 1.361 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002399/0.6172, allocations: 329 kB / 1.361 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.6172, allocations: 1.188 kB / 1.361 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.917e-05/0.6173, allocations: 13.31 kB / 1.361 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.6173, allocations: 1.984 kB / 1.361 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.6173, allocations: 1.438 kB / 1.361 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.6173, allocations: 6 kB / 1.361 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.6173, allocations: 0 / 1.361 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001345/0.6175, allocations: 190.2 kB / 1.361 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.541e-05/0.6175, allocations: 79.12 kB / 1.361 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.6175, allocations: 1.797 kB / 1.361 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.6176, allocations: 21.25 kB / 1.361 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.72e-05/0.6177, allocations: 10.19 kB / 1.361 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.6177, allocations: 6.688 kB / 1.361 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.043e-05/0.6177, allocations: 80.97 kB / 1.361 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002141/0.6179, allocations: 25.12 kB / 1.361 GB, free: 30.8 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001108/0.618, allocations: 115.2 kB / 1.361 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000127/0.6182, allocations: 65.23 kB / 1.361 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 8.61e-07/0.6182, allocations: 8.062 kB / 1.362 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.195e-05/0.6182, allocations: 32.52 kB / 1.362 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001597/0.6184, allocations: 12.88 kB / 1.362 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002197/0.6186, allocations: 101.5 kB / 1.362 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/0.6188, allocations: 0.7052 MB / 1.362 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/0.6188, allocations: 1.312 kB / 1.362 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of Templates: time 0.00261/0.6215, allocations: 0.9859 MB / 1.363 GB, free: 29.83 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches