Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.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.Edge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|edge1.u|edge1.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|edge1.u|edge1.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge") [: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.696/1.696, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.0008588/0.0008588, allocations: 173.3 kB / 490.8 MB, free: 1.938 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.051/1.051, allocations: 221.4 MB / 0.7863 GB, free: 13.66 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.0008053/0.0008053, allocations: 90.61 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.803e-06/6.823e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1652/0.1652, allocations: 143 MB / 1.212 GB, free: 40.09 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4486/0.6138, allocations: 149.6 MB / 1.358 GB, free: 17.55 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001636/0.614, allocations: 69.78 kB / 1.358 GB, free: 17.55 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.005179/0.6192, allocations: 1.799 MB / 1.36 GB, free: 17.45 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.491e-06/0.6192, allocations: 1.094 kB / 1.36 GB, free: 17.45 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003474/0.6196, allocations: 397 kB / 1.36 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.975e-05/0.6196, allocations: 9.656 kB / 1.36 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.349e-05/0.6197, allocations: 10.64 kB / 1.36 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.451e-05/0.6197, allocations: 167 kB / 1.36 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.6197, allocations: 1.438 kB / 1.36 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.387e-05/0.6198, allocations: 6.438 kB / 1.36 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.518e-05/0.6198, allocations: 17.59 kB / 1.36 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.793e-05/0.6199, allocations: 63.61 kB / 1.36 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.483e-06/0.6199, allocations: 0 / 1.36 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.6199, allocations: 1.531 kB / 1.36 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.62, allocations: 0.875 kB / 1.36 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003384/0.6203, allocations: 301 kB / 1.36 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.63e-05/0.6204, allocations: 47.2 kB / 1.361 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.403e-05/0.6204, allocations: 22.3 kB / 1.361 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/0.6204, allocations: 5.875 kB / 1.361 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.816e-05/0.6205, allocations: 63.25 kB / 1.361 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.6205, allocations: 0 / 1.361 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0001466/0.6207, allocations: 76.55 kB / 1.361 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.812e-05/0.6207, allocations: 54.27 kB / 1.361 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.423e-05/0.6208, allocations: 110.9 kB / 1.361 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.6208, allocations: 27.73 kB / 1.361 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.025e-05/0.6209, allocations: 96.97 kB / 1.361 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.708e-05/0.6209, allocations: 14.62 kB / 1.361 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.241e-05/0.6209, allocations: 5.75 kB / 1.361 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.791e-05/0.621, allocations: 318.4 kB / 1.361 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7e-05/0.6211, allocations: 34.61 kB / 1.361 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.838e-05/0.6212, allocations: 75.78 kB / 1.361 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001784/0.6213, allocations: 44.77 kB / 1.361 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.6214, allocations: 0 / 1.361 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003125/0.6217, allocations: 148.5 kB / 1.362 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/0.6217, allocations: 5.766 kB / 1.362 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.6217, allocations: 1.312 kB / 1.362 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.6217, allocations: 2.281 kB / 1.362 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-05/0.6218, allocations: 22.55 kB / 1.362 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.75e-06/0.6218, allocations: 6.609 kB / 1.362 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.622, allocations: 51.41 kB / 1.362 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.6221, allocations: 8.656 kB / 1.362 GB, free: 31.74 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul.y,booPul.y,$PRE.edge1.u,edge1.u,edge1.y) * 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.815e-05/0.6221, allocations: 110.1 kB / 1.362 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.306e-05/0.6222, allocations: 11.97 kB / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.493e-05/0.6222, allocations: 6.391 kB / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.6222, allocations: 1.344 kB / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-06/0.6222, allocations: 0 / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.6222, allocations: 4.516 kB / 1.362 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002094/0.6224, allocations: 315.1 kB / 1.362 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.6224, allocations: 1.125 kB / 1.362 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.39e-05/0.6225, allocations: 11.69 kB / 1.362 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.6225, allocations: 1.156 kB / 1.362 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.138e-06/0.6225, allocations: 5.703 kB / 1.362 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.6225, allocations: 4 kB / 1.362 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.6225, allocations: 1.562 kB / 1.362 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001233/0.6227, allocations: 174.2 kB / 1.362 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.593e-05/0.6227, allocations: 83.73 kB / 1.362 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.6227, allocations: 1.719 kB / 1.362 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.512e-05/0.6228, allocations: 18.05 kB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.101e-05/0.6228, allocations: 5.5 kB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.6229, allocations: 4.078 kB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.645e-05/0.6229, allocations: 91.67 kB / 1.362 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002295/0.6231, allocations: 20.95 kB / 1.362 GB, free: 31.02 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 (edge1.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,edge1.u,triggeredSampler.y) * Number of discrete states: 1 (edge1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001161/0.6233, allocations: 112 kB / 1.363 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000168/0.6234, allocations: 103.7 kB / 1.363 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.6234, allocations: 4.25 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.394e-05/0.6235, allocations: 27.45 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001737/0.6237, allocations: 24.45 kB / 1.363 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002092/0.6239, allocations: 98.62 kB / 1.363 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/0.6241, allocations: 0.7031 MB / 1.364 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/0.6241, allocations: 0 / 1.364 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of Templates: time 0.002883/0.627, allocations: 1.294 MB / 1.365 GB, free: 29.98 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches