Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") [: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.714/1.714, 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.0009081/0.0009081, allocations: 173.2 kB / 490.8 MB, free: 1.945 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.048/1.048, allocations: 221.3 MB / 0.7863 GB, free: 13.74 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.0008178/0.0008178, allocations: 90.8 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.821e-06/5.831e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1639, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.44/0.6039, allocations: 149.7 MB / 1.358 GB, free: 17.4 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000163/0.6041, allocations: 74.83 kB / 1.358 GB, free: 17.4 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.00551/0.6096, allocations: 1.959 MB / 1.36 GB, free: 17.29 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.6096, allocations: 5.281 kB / 1.36 GB, free: 17.28 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003607/0.61, allocations: 400.7 kB / 1.36 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.913e-05/0.61, allocations: 10.12 kB / 1.36 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.893e-05/0.6101, allocations: 12.16 kB / 1.36 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.669e-05/0.6101, allocations: 172.7 kB / 1.36 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.6102, allocations: 2.75 kB / 1.36 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.196e-05/0.6102, allocations: 6.672 kB / 1.36 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.628e-05/0.6103, allocations: 32.72 kB / 1.36 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.719e-05/0.6104, allocations: 51.72 kB / 1.36 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.6104, allocations: 0 / 1.36 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.6104, allocations: 1.766 kB / 1.36 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.6104, allocations: 1.312 kB / 1.36 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000337/0.6107, allocations: 316 kB / 1.361 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.691e-05/0.6108, allocations: 50.47 kB / 1.361 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.008e-05/0.6109, allocations: 16.64 kB / 1.361 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.731e-05/0.6109, allocations: 4.219 kB / 1.361 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.006e-05/0.611, allocations: 63.19 kB / 1.361 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.083e-06/0.611, allocations: 0 / 1.361 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0001528/0.6111, allocations: 81.83 kB / 1.361 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.603e-05/0.6111, allocations: 61.08 kB / 1.361 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.684e-05/0.6112, allocations: 106.6 kB / 1.361 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.6112, allocations: 28.83 kB / 1.361 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.081e-05/0.6113, allocations: 97.5 kB / 1.361 GB, free: 32 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.674e-05/0.6113, allocations: 16.36 kB / 1.361 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.205e-05/0.6113, allocations: 1.312 kB / 1.361 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.456e-05/0.6114, allocations: 326.7 kB / 1.362 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.826e-05/0.6115, allocations: 37.81 kB / 1.362 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.604e-05/0.6115, allocations: 72.27 kB / 1.362 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001758/0.6117, allocations: 51.38 kB / 1.362 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.6117, allocations: 0 / 1.362 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003068/0.612, allocations: 152.7 kB / 1.362 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.476e-06/0.6121, allocations: 5.375 kB / 1.362 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.6121, allocations: 1.094 kB / 1.362 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.6121, allocations: 2.469 kB / 1.362 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.6122, allocations: 25.64 kB / 1.362 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.6122, allocations: 2.375 kB / 1.362 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002104/0.6124, allocations: 49.12 kB / 1.362 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.6125, allocations: 7.812 kB / 1.362 GB, free: 31.55 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 6.05e-05/0.6125, allocations: 121.8 kB / 1.362 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.249e-05/0.6125, allocations: 7.906 kB / 1.362 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.6127, allocations: 87.16 kB / 1.362 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.6127, allocations: 1.594 kB / 1.362 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.6127, allocations: 3.312 kB / 1.362 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.6127, allocations: 0.6094 kB / 1.362 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001742/0.6129, allocations: 308.2 kB / 1.362 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.6129, allocations: 0 / 1.362 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.306e-05/0.613, allocations: 16.19 kB / 1.362 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.613, allocations: 1.531 kB / 1.362 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.613, allocations: 0.6562 kB / 1.362 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.613, allocations: 5.016 kB / 1.362 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.613, allocations: 4.594 kB / 1.362 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001145/0.6131, allocations: 169 kB / 1.363 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.608e-05/0.6131, allocations: 84.81 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.6131, allocations: 0.7969 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.496e-05/0.6132, allocations: 17.91 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.187e-05/0.6133, allocations: 8.453 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.283e-06/0.6133, allocations: 7 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.468e-05/0.6133, allocations: 92.95 kB / 1.363 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002304/0.6136, allocations: 24.84 kB / 1.363 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001061/0.6137, allocations: 111.7 kB / 1.363 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001675/0.6139, allocations: 109.2 kB / 1.363 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.093e-06/0.6139, allocations: 1.031 kB / 1.363 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.757e-05/0.6139, allocations: 28.33 kB / 1.363 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001696/0.6141, allocations: 10.16 kB / 1.363 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002112/0.6143, allocations: 99.7 kB / 1.363 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001918/0.6145, allocations: 0.7098 MB / 1.364 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/0.6145, allocations: 0 / 1.364 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of Templates: time 0.002858/0.6174, allocations: 1.286 MB / 1.365 GB, free: 29.77 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches