Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") [: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 7.0.3-maint.7.0.x/package.mo): time 1.363/1.363, allocations: 249.4 MB / 256.7 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 181.2 kB / 316 MB, free: 3.543 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 205.1 MB / 0.5667 GB, free: 15.65 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001062/0.001061, allocations: 96.89 kB / 0.671 GB, free: 4.781 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.378e-06/9.398e-06, allocations: 4 kB / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.2148, allocations: 106.3 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5443/0.7592, allocations: 132.3 MB / 1.014 GB, free: 6.453 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.7595, allocations: 69.95 kB / 1.014 GB, free: 6.414 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.003848/0.7633, allocations: 1.064 MB / 1.015 GB, free: 5.5 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.414e-06/0.7634, allocations: 4 kB / 1.015 GB, free: 5.496 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006297/0.764, allocations: 416.9 kB / 1.015 GB, free: 5.051 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.7641, allocations: 8.031 kB / 1.015 GB, free: 5.043 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.575e-05/0.7641, allocations: 11.84 kB / 1.015 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001886/0.7643, allocations: 174.9 kB / 1.016 GB, free: 4.82 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.7643, allocations: 0 / 1.016 GB, free: 4.82 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.046e-05/0.7644, allocations: 7.984 kB / 1.016 GB, free: 4.812 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000125/0.7645, allocations: 48.61 kB / 1.016 GB, free: 4.781 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001227/0.7646, allocations: 63.42 kB / 1.016 GB, free: 4.723 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.7646, allocations: 7.938 kB / 1.016 GB, free: 4.715 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.7647, allocations: 0 / 1.016 GB, free: 4.715 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.7647, allocations: 3.938 kB / 1.016 GB, free: 4.711 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005456/0.7652, allocations: 331.6 kB / 1.016 GB, free: 4.379 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001863/0.7654, allocations: 67.75 kB / 1.016 GB, free: 4.32 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.323e-05/0.7655, allocations: 26.36 kB / 1.016 GB, free: 4.301 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.7655, allocations: 4 kB / 1.016 GB, free: 4.297 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001057/0.7656, allocations: 80.92 kB / 1.016 GB, free: 4.219 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.392e-06/0.7656, allocations: 0 / 1.016 GB, free: 4.219 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0002077/0.7658, allocations: 84.72 kB / 1.016 GB, free: 4.145 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.43e-05/0.7659, allocations: 55.59 kB / 1.016 GB, free: 4.078 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.515e-05/0.766, allocations: 122.6 kB / 1.016 GB, free: 3.957 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.766, allocations: 29.52 kB / 1.016 GB, free: 3.926 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.655e-05/0.7661, allocations: 88.12 kB / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.205e-05/0.7661, allocations: 30.53 kB / 1.017 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.514e-06/0.7661, allocations: 0 / 1.017 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.7662, allocations: 326.2 kB / 1.017 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.366e-05/0.7663, allocations: 26.69 kB / 1.017 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.272e-05/0.7664, allocations: 52.55 kB / 1.017 GB, free: 3.422 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.911e-05/0.7664, allocations: 29.05 kB / 1.017 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.7665, allocations: 0 / 1.017 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001734/0.7666, allocations: 109.3 kB / 1.017 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.7667, allocations: 4 kB / 1.017 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.7667, allocations: 0 / 1.017 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.7667, allocations: 4 kB / 1.017 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.7668, allocations: 39.94 kB / 1.017 GB, free: 3.262 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.7669, allocations: 0 / 1.017 GB, free: 3.262 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/0.767, allocations: 35.7 kB / 1.017 GB, free: 3.23 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.7671, allocations: 11.61 kB / 1.017 GB, free: 3.223 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$PRE.booPul1.pulseStart,booPul1.pulseStart,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * 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 7.473e-05/0.7671, allocations: 105 kB / 1.017 GB, free: 3.113 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.718e-05/0.7672, allocations: 7.906 kB / 1.017 GB, free: 3.105 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001858/0.7673, allocations: 103.3 kB / 1.017 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.7674, allocations: 0 / 1.017 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.7674, allocations: 0 / 1.017 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.7674, allocations: 3.906 kB / 1.017 GB, free: 3.012 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000344/0.7677, allocations: 358.4 kB / 1.018 GB, free: 2.648 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.7677, allocations: 3.906 kB / 1.018 GB, free: 2.645 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001274/0.7679, allocations: 27.97 kB / 1.018 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.7679, allocations: 4 kB / 1.018 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.7679, allocations: 0 / 1.018 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.7679, allocations: 0 / 1.018 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.7679, allocations: 3.938 kB / 1.018 GB, free: 2.609 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001822/0.7681, allocations: 184.9 kB / 1.018 GB, free: 2.43 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.214e-05/0.7682, allocations: 88.89 kB / 1.018 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.772e-05/0.7682, allocations: 4 kB / 1.018 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.7684, allocations: 31.88 kB / 1.018 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.785e-05/0.7685, allocations: 23.53 kB / 1.018 GB, free: 2.27 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.7685, allocations: 3.984 kB / 1.018 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.933e-05/0.7685, allocations: 97.72 kB / 1.018 GB, free: 2.176 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002315/0.7688, allocations: 16 kB / 1.018 GB, free: 2.16 MB / 0.6355 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 (triggeredSampler.trigger,$whenCondition2,$whenCondition1,booPul1.pulseStart,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.000132/0.7689, allocations: 108.3 kB / 1.018 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001671/0.7691, allocations: 72.86 kB / 1.018 GB, free: 2.004 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.7691, allocations: 4 kB / 1.018 GB, free: 2 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.968e-05/0.7692, allocations: 34.69 kB / 1.018 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.7694, allocations: 15.73 kB / 1.018 GB, free: 1.965 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003346/0.7697, allocations: 125.3 kB / 1.018 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000361/0.7701, allocations: 0.723 MB / 1.019 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of SimCode: time 2.5e-07/0.7701, allocations: 0 / 1.019 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of Templates: time 0.0034/0.7735, allocations: 1.294 MB / 1.02 GB, free: 15.82 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches