Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredTrapezoid1.u|triggeredTrapezoid1.y",fileNamePrefix="Buildings_9_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_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.125/2.125, allocations: 387.1 MB / 399.7 MB, free: 9.5 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.0009657/0.0009655, allocations: 188.8 kB / 492.3 MB, free: 0.6172 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.554/1.554, allocations: 221.3 MB / 0.7871 GB, free: 12.95 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.0009873/0.0009873, allocations: 99.88 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.801e-05/2.803e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3119, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9991/1.311, allocations: 149.5 MB / 1.358 GB, free: 19.05 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/1.311, allocations: 69.83 kB / 1.358 GB, free: 19.05 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007442/1.319, allocations: 2.459 MB / 1.361 GB, free: 34.63 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.553e-06/1.319, allocations: 0 / 1.361 GB, free: 34.63 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.929e-06/1.319, allocations: 3.375 kB / 1.361 GB, free: 34.63 MB / 0.8386 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.000536/1.319, allocations: 393.6 kB / 1.361 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/1.32, allocations: 11.48 kB / 1.361 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.031e-05/1.32, allocations: 3.312 kB / 1.361 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/1.32, allocations: 171.5 kB / 1.361 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.972e-05/1.32, allocations: 11.12 kB / 1.361 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.028e-05/1.32, allocations: 8.938 kB / 1.361 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001503/1.32, allocations: 63.27 kB / 1.361 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/1.32, allocations: 0 / 1.361 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/1.32, allocations: 0 / 1.361 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/1.32, allocations: 3.375 kB / 1.361 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.981e-05/1.32, allocations: 29.14 kB / 1.361 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004532/1.321, allocations: 322.7 kB / 1.362 GB, free: 33.72 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001189/1.321, allocations: 63.89 kB / 1.362 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.87e-05/1.321, allocations: 29.55 kB / 1.362 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/1.321, allocations: 0 / 1.362 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001688/1.321, allocations: 97.28 kB / 1.362 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.252e-06/1.321, allocations: 0 / 1.362 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0002682/1.321, allocations: 138.2 kB / 1.362 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.033e-05/1.321, allocations: 57.56 kB / 1.362 GB, free: 33.53 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.76e-05/1.321, allocations: 108 kB / 1.362 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.154e-05/1.321, allocations: 33.3 kB / 1.362 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.506e-05/1.321, allocations: 89.34 kB / 1.362 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/1.321, allocations: 24.19 kB / 1.362 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.39e-05/1.321, allocations: 3.125 kB / 1.362 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.922e-05/1.322, allocations: 321.5 kB / 1.363 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.639e-05/1.322, allocations: 45.45 kB / 1.363 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001006/1.322, allocations: 78.09 kB / 1.363 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.437e-05/1.322, allocations: 68.84 kB / 1.363 GB, free: 32.92 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/1.322, allocations: 0 / 1.363 GB, free: 32.92 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004582/1.322, allocations: 237.9 kB / 1.363 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.63e-05/1.322, allocations: 37.34 kB / 1.363 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/1.322, allocations: 3.875 kB / 1.363 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001615/1.323, allocations: 33.47 kB / 1.363 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.844e-05/1.323, allocations: 8.047 kB / 1.363 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001199/1.324, allocations: 1.419 MB / 1.365 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001993/1.324, allocations: 39.59 kB / 1.365 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.575e-05/1.324, allocations: 12.39 kB / 1.365 GB, free: 31.45 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 9.008e-05/1.324, allocations: 115.4 kB / 1.365 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.58e-05/1.324, allocations: 11.7 kB / 1.365 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.882e-05/1.324, allocations: 6.641 kB / 1.365 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/1.324, allocations: 7.844 kB / 1.365 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/1.324, allocations: 0 / 1.365 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/1.324, allocations: 96 / 1.365 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003304/1.325, allocations: 402.2 kB / 1.365 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/1.325, allocations: 5.719 kB / 1.365 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.592e-05/1.325, allocations: 7.656 kB / 1.365 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/1.325, allocations: 0 / 1.365 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/1.325, allocations: 8.625 kB / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/1.325, allocations: 5.594 kB / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.325, allocations: 3.875 kB / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002274/1.325, allocations: 228.3 kB / 1.365 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.506e-05/1.325, allocations: 77.11 kB / 1.365 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.54e-05/1.325, allocations: 1.359 kB / 1.365 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.514e-05/1.325, allocations: 8.625 kB / 1.366 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.728e-05/1.325, allocations: 6.844 kB / 1.366 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/1.325, allocations: 7.844 kB / 1.366 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.639e-05/1.325, allocations: 88.47 kB / 1.366 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.325, allocations: 3.938 kB / 1.366 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002805/1.326, allocations: 35.98 kB / 1.366 GB, free: 30.68 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.000165/1.326, allocations: 112.3 kB / 1.366 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003551/1.326, allocations: 285 kB / 1.366 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/1.326, allocations: 0 / 1.366 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.141e-05/1.326, allocations: 49.03 kB / 1.366 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001864/1.326, allocations: 16.2 kB / 1.366 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002219/1.327, allocations: 120.3 kB / 1.366 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/1.327, allocations: 0.6897 MB / 1.367 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.76e-05/1.327, allocations: 5.594 kB / 1.367 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.162e-05/1.327, allocations: 11.34 kB / 1.367 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.327, allocations: 4 kB / 1.367 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of Templates: time 0.004507/1.331, allocations: 1.656 MB / 1.369 GB, free: 29.48 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches