Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.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.Logical.Validation.TriggeredTrapezoid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredTrapezoid1.u|triggeredTrapezoid1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredTrapezoid1.u|triggeredTrapezoid1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid") [: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.692/1.692, 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.0009082, allocations: 183.5 kB / 490.8 MB, free: 1.906 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.043/1.043, allocations: 221.3 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.0008067/0.0008067, allocations: 87.69 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.983e-06/7.013e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.1636, allocations: 143 MB / 1.212 GB, free: 40.08 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.444/0.6076, allocations: 149.5 MB / 1.358 GB, free: 17.09 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001614/0.6078, allocations: 71.73 kB / 1.358 GB, free: 17.09 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.00613/0.614, allocations: 2.14 MB / 1.36 GB, free: 16.97 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.614, allocations: 5.031 kB / 1.36 GB, free: 16.96 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000402/0.6144, allocations: 398.7 kB / 1.36 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/0.6144, allocations: 8.969 kB / 1.36 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.001e-05/0.6145, allocations: 4.5 kB / 1.36 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.961e-05/0.6146, allocations: 171.8 kB / 1.36 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.6146, allocations: 2.625 kB / 1.36 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.586e-05/0.6146, allocations: 6.141 kB / 1.36 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.162e-05/0.6147, allocations: 27.39 kB / 1.36 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.666e-05/0.6148, allocations: 60.95 kB / 1.36 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.6148, allocations: 0.6562 kB / 1.36 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.6148, allocations: 4 kB / 1.36 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.6149, allocations: 1.641 kB / 1.36 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003857/0.6152, allocations: 305 kB / 1.361 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.781e-05/0.6153, allocations: 58.89 kB / 1.361 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.234e-05/0.6154, allocations: 25 kB / 1.361 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.919e-06/0.6154, allocations: 2.203 kB / 1.361 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.68e-05/0.6155, allocations: 94.7 kB / 1.361 GB, free: 32 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.212e-06/0.6155, allocations: 0 / 1.361 GB, free: 32 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0001887/0.6157, allocations: 96.98 kB / 1.361 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.797e-05/0.6157, allocations: 53.64 kB / 1.361 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.106e-05/0.6158, allocations: 113.1 kB / 1.361 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.6158, allocations: 31.08 kB / 1.361 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.62e-05/0.6159, allocations: 89 kB / 1.361 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.083e-05/0.6159, allocations: 27.12 kB / 1.361 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.362e-05/0.6159, allocations: 2.188 kB / 1.361 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.319e-05/0.616, allocations: 318.5 kB / 1.362 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.03e-05/0.6161, allocations: 42.59 kB / 1.362 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.396e-05/0.6162, allocations: 63.81 kB / 1.362 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001791/0.6163, allocations: 53.58 kB / 1.362 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.6164, allocations: 0 / 1.362 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004961/0.6169, allocations: 200.1 kB / 1.362 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.887e-06/0.6169, allocations: 5.406 kB / 1.362 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.6169, allocations: 1.672 kB / 1.362 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001077/0.617, allocations: 29.58 kB / 1.362 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.059e-05/0.6171, allocations: 8.906 kB / 1.362 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00078/0.6178, allocations: 1.333 MB / 1.363 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002096/0.6181, allocations: 49.33 kB / 1.363 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.6181, allocations: 7.312 kB / 1.363 GB, free: 29.98 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: 9 ($whenCondition1,$whenCondition2,$whenCondition4,$whenCondition3,$PRE.booPul.y,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 6.686e-05/0.6182, allocations: 119.2 kB / 1.363 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.461e-05/0.6182, allocations: 7.297 kB / 1.363 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.545e-05/0.6182, allocations: 9.703 kB / 1.363 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.6182, allocations: 1.672 kB / 1.363 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-06/0.6182, allocations: 1.469 kB / 1.363 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.6182, allocations: 0.75 kB / 1.363 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002163/0.6184, allocations: 336.5 kB / 1.364 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.6185, allocations: 4 kB / 1.364 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.939e-05/0.6185, allocations: 14.73 kB / 1.364 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.6185, allocations: 0 / 1.364 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.6185, allocations: 2.5 kB / 1.364 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.6185, allocations: 1.859 kB / 1.364 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.6185, allocations: 0 / 1.364 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001538/0.6187, allocations: 196.2 kB / 1.364 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.601e-05/0.6187, allocations: 84.23 kB / 1.364 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.824e-05/0.6187, allocations: 9.719 kB / 1.364 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.6188, allocations: 8.562 kB / 1.364 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.075e-05/0.6189, allocations: 10.28 kB / 1.364 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.6189, allocations: 4.141 kB / 1.364 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.257e-05/0.6189, allocations: 86.25 kB / 1.364 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002673/0.6192, allocations: 30.27 kB / 1.364 GB, free: 29.24 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: 8 ($whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 1 (triggeredTrapezoid1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001144/0.6193, allocations: 109.3 kB / 1.364 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002734/0.6196, allocations: 230.5 kB / 1.365 GB, free: 29.01 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.6196, allocations: 0 / 1.365 GB, free: 29.01 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.324e-05/0.6197, allocations: 43.98 kB / 1.365 GB, free: 29 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001626/0.6199, allocations: 12.91 kB / 1.365 GB, free: 29 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002049/0.6201, allocations: 103.1 kB / 1.365 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.6203, allocations: 0.7093 MB / 1.365 GB, free: 28.22 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/0.6203, allocations: 0 / 1.365 GB, free: 28.22 MB / 0.8386 GB Notification: Performance of Templates: time 0.003335/0.6236, allocations: 1.645 MB / 1.367 GB, free: 28.09 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches