Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) [: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.82/1.82, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0009784/0.0009784, allocations: 178.8 kB / 490.8 MB, free: 1.957 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.209/1.209, allocations: 221.4 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.0008635/0.0008635, allocations: 84.67 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4303/0.4312, allocations: 149.1 MB / 1.072 GB, free: 180 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.6137, allocations: 143 MB / 1.212 GB, free: 37.56 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5101/1.124, allocations: 149.9 MB / 1.358 GB, free: 16.8 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001662/1.124, allocations: 72.11 kB / 1.358 GB, free: 16.8 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.007307/1.131, allocations: 2.629 MB / 1.361 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/1.131, allocations: 8.625 kB / 1.361 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.326e-05/1.131, allocations: 11.86 kB / 1.361 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.263e-05/1.132, allocations: 175.5 kB / 1.361 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/1.132, allocations: 2.75 kB / 1.361 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.02e-05/1.132, allocations: 8 kB / 1.361 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001173/1.132, allocations: 39.53 kB / 1.361 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001055/1.132, allocations: 65.2 kB / 1.361 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/1.132, allocations: 0 / 1.361 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/1.132, allocations: 8.859 kB / 1.361 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/1.132, allocations: 7.891 kB / 1.361 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004868/1.132, allocations: 349.8 kB / 1.361 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001183/1.133, allocations: 67.38 kB / 1.361 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.784e-05/1.133, allocations: 32.2 kB / 1.361 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/1.133, allocations: 1.5 kB / 1.361 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001035/1.133, allocations: 83.16 kB / 1.361 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.743e-06/1.133, allocations: 0 / 1.361 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0002198/1.133, allocations: 105 kB / 1.362 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.801e-05/1.133, allocations: 58.3 kB / 1.362 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.485e-05/1.133, allocations: 116.2 kB / 1.362 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/1.133, allocations: 29.77 kB / 1.362 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.303e-05/1.133, allocations: 94.89 kB / 1.362 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.861e-05/1.133, allocations: 28.3 kB / 1.362 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.577e-05/1.133, allocations: 1.219 kB / 1.362 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.995e-05/1.133, allocations: 323 kB / 1.362 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/1.133, allocations: 47.34 kB / 1.362 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/1.134, allocations: 84.33 kB / 1.362 GB, free: 31 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/1.134, allocations: 52.31 kB / 1.362 GB, free: 31 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/1.134, allocations: 3.906 kB / 1.362 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004114/1.134, allocations: 185.1 kB / 1.363 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/1.134, allocations: 7.031 kB / 1.363 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/1.134, allocations: 5.359 kB / 1.363 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/1.134, allocations: 2.406 kB / 1.363 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001562/1.134, allocations: 26.53 kB / 1.363 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/1.134, allocations: 5.625 kB / 1.363 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002706/1.135, allocations: 60.97 kB / 1.363 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.84e-05/1.135, allocations: 12.67 kB / 1.363 GB, free: 30.93 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: 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 8.754e-05/1.135, allocations: 110.5 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.948e-05/1.135, allocations: 13.36 kB / 1.363 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001812/1.135, allocations: 105.2 kB / 1.363 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/1.135, allocations: 1.531 kB / 1.363 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.381e-06/1.135, allocations: 1.125 kB / 1.363 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/1.135, allocations: 5.312 kB / 1.363 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000301/1.135, allocations: 353.1 kB / 1.363 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/1.135, allocations: 0 / 1.363 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/1.136, allocations: 35.83 kB / 1.363 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/1.136, allocations: 0 / 1.363 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/1.136, allocations: 7.766 kB / 1.363 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/1.136, allocations: 1 kB / 1.363 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/1.136, allocations: 1.547 kB / 1.363 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001704/1.136, allocations: 191.6 kB / 1.363 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000259/1.136, allocations: 0.5673 MB / 1.364 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.932e-05/1.136, allocations: 91.39 kB / 1.364 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/1.136, allocations: 2.875 kB / 1.364 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/1.136, allocations: 25.69 kB / 1.364 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/1.136, allocations: 18.05 kB / 1.364 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/1.136, allocations: 4.297 kB / 1.364 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.083e-05/1.136, allocations: 98.44 kB / 1.364 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0008139/1.137, allocations: 31.33 kB / 1.364 GB, free: 29.64 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: 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.0001535/1.137, allocations: 123.2 kB / 1.364 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002421/1.138, allocations: 136 kB / 1.365 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/1.138, allocations: 0 / 1.365 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.58e-05/1.138, allocations: 48.97 kB / 1.365 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002075/1.138, allocations: 12.08 kB / 1.365 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003223/1.138, allocations: 126.5 kB / 1.365 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003325/1.139, allocations: 0.7156 MB / 1.365 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/1.139, allocations: 0 / 1.365 GB, free: 28.71 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat does not exist to compare? outputFormat=mat