Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.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.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.772/1.772, allocations: 387.2 MB / 394.5 MB, free: 13.61 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.0009823/0.0009823, allocations: 185.2 kB / 487 MB, free: 5.336 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.123/1.123, allocations: 221.3 MB / 0.7819 GB, free: 1.324 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007991/0.0007991, allocations: 91.34 kB / 0.9213 GB, free: 2.578 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.294e-06/7.324e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1838/0.1838, allocations: 142.3 MB / 1.205 GB, free: 26.19 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5209/0.7047, allocations: 149.1 MB / 1.351 GB, free: 15.9 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001752/0.7049, allocations: 75.55 kB / 1.351 GB, free: 15.9 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.00659/0.7115, allocations: 2.203 MB / 1.353 GB, free: 15.76 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.895e-06/0.7116, allocations: 1.094 kB / 1.353 GB, free: 15.76 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004778/0.7121, allocations: 433.7 kB / 1.353 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.7121, allocations: 8.906 kB / 1.353 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.069e-05/0.7122, allocations: 16.55 kB / 1.353 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.734e-05/0.7122, allocations: 174.6 kB / 1.354 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.7123, allocations: 3.281 kB / 1.354 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.149e-05/0.7123, allocations: 11.41 kB / 1.354 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001211/0.7124, allocations: 42.48 kB / 1.354 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001103/0.7125, allocations: 71.36 kB / 1.354 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.7126, allocations: 0 / 1.354 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.7126, allocations: 1.375 kB / 1.354 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.7126, allocations: 2.406 kB / 1.354 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004846/0.7131, allocations: 353.2 kB / 1.354 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001162/0.7132, allocations: 59 kB / 1.354 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.461e-05/0.7133, allocations: 32.05 kB / 1.354 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.7133, allocations: 0.9688 kB / 1.354 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001038/0.7134, allocations: 89.31 kB / 1.354 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=12): time 1.313e-06/0.7134, allocations: 4.594 kB / 1.354 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of matching and sorting (n=12): time 0.0002171/0.7136, allocations: 99.72 kB / 1.354 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.976e-05/0.7137, allocations: 54.53 kB / 1.354 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.952e-05/0.7137, allocations: 111.4 kB / 1.355 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.7138, allocations: 32.67 kB / 1.355 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.503e-05/0.7138, allocations: 95.09 kB / 1.355 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.578e-05/0.7138, allocations: 26.83 kB / 1.355 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.535e-05/0.7139, allocations: 1.969 kB / 1.355 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.367e-05/0.7139, allocations: 324.2 kB / 1.355 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.768e-05/0.714, allocations: 50.2 kB / 1.355 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.7141, allocations: 80.77 kB / 1.355 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002054/0.7143, allocations: 62.52 kB / 1.355 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.7143, allocations: 0 / 1.355 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003796/0.7147, allocations: 175.2 kB / 1.355 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.7147, allocations: 4.75 kB / 1.355 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.7148, allocations: 2.484 kB / 1.355 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.7148, allocations: 1.875 kB / 1.355 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001588/0.7149, allocations: 35.09 kB / 1.355 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.715, allocations: 1.562 kB / 1.355 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002608/0.7152, allocations: 65.98 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.6e-05/0.7153, allocations: 12.16 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,$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 (17): * Single equations (assignments): 16 * 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.317e-05/0.7153, allocations: 110.1 kB / 1.356 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.73e-05/0.7153, allocations: 8.5 kB / 1.356 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001938/0.7155, allocations: 113.5 kB / 1.356 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.7156, allocations: 6.391 kB / 1.356 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.7156, allocations: 0.9062 kB / 1.356 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.7156, allocations: 0.75 kB / 1.356 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002941/0.7159, allocations: 358.7 kB / 1.356 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.7159, allocations: 3.938 kB / 1.356 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.716, allocations: 31.11 kB / 1.356 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.716, allocations: 5.641 kB / 1.356 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.716, allocations: 1.766 kB / 1.356 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.716, allocations: 1 kB / 1.356 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.7161, allocations: 0 / 1.356 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000162/0.7162, allocations: 189.7 kB / 1.356 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.244e-05/0.7163, allocations: 92.8 kB / 1.356 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.7163, allocations: 1.391 kB / 1.356 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.7164, allocations: 22.12 kB / 1.356 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.03e-05/0.7165, allocations: 18.72 kB / 1.356 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.7165, allocations: 3.203 kB / 1.356 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.207e-05/0.7166, allocations: 94.06 kB / 1.356 GB, free: 13.26 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002616/0.7168, allocations: 39.08 kB / 1.357 GB, free: 13.25 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (triggeredSampler.trigger,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,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 (12): * Single equations (assignments): 10 * 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.0001528/0.717, allocations: 119.4 kB / 1.357 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002468/0.7172, allocations: 140.8 kB / 1.357 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.7173, allocations: 0 / 1.357 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 8.272e-05/0.7173, allocations: 45.56 kB / 1.357 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.7176, allocations: 12.75 kB / 1.357 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003139/0.7179, allocations: 129.2 kB / 1.357 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001715/0.7181, allocations: 0.7142 MB / 1.358 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of SimCode: time 2.2e-07/0.7181, allocations: 0.9062 kB / 1.358 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of Templates: time 0.004297/0.7224, allocations: 1.758 MB / 1.359 GB, free: 12.2 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches