Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_PulsePositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_PulsePositiveStartTime",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 9.1.1-maint.9.1.x/package.mo): time 1.818/1.818, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.001012/0.001012, allocations: 175.9 kB / 487 MB, free: 5.41 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.157/1.157, allocations: 221.3 MB / 0.7819 GB, free: 1.438 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.0008144/0.0008144, allocations: 98.2 kB / 0.9213 GB, free: 2.691 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4443/0.4451, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.633, allocations: 142.3 MB / 1.205 GB, free: 26.15 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5371/1.17, allocations: 148.8 MB / 1.351 GB, free: 16.16 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001893/1.17, allocations: 74.23 kB / 1.351 GB, free: 16.16 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.04762/1.218, allocations: 18.13 MB / 1.368 GB, free: 8.617 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/1.218, allocations: 8 kB / 1.368 GB, free: 8.609 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001684/1.218, allocations: 63.62 kB / 1.368 GB, free: 8.547 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001109/1.218, allocations: 210.4 kB / 1.369 GB, free: 8.309 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/1.218, allocations: 3.984 kB / 1.369 GB, free: 8.305 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/1.219, allocations: 67.8 kB / 1.369 GB, free: 8.242 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.939e-05/1.219, allocations: 37.56 kB / 1.369 GB, free: 8.219 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001641/1.219, allocations: 209.8 kB / 1.369 GB, free: 7.98 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/1.219, allocations: 0 / 1.369 GB, free: 7.98 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/1.219, allocations: 11.8 kB / 1.369 GB, free: 7.973 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/1.219, allocations: 4 kB / 1.369 GB, free: 7.969 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000651/1.22, allocations: 0.8046 MB / 1.37 GB, free: 7.258 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/1.22, allocations: 309.5 kB / 1.37 GB, free: 6.84 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.474e-05/1.22, allocations: 130.9 kB / 1.37 GB, free: 6.684 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 5.891e-06/1.22, allocations: 4 kB / 1.37 GB, free: 6.68 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002632/1.22, allocations: 350 kB / 1.371 GB, free: 6.316 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=45): time 1.663e-06/1.22, allocations: 4 kB / 1.371 GB, free: 6.312 MB / 0.8073 GB Notification: Performance of matching and sorting (n=45): time 0.0005386/1.221, allocations: 351.7 kB / 1.371 GB, free: 6.016 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.936e-05/1.221, allocations: 430.6 kB / 1.371 GB, free: 5.5 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/1.221, allocations: 250.4 kB / 1.372 GB, free: 5.293 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.0001154/1.221, allocations: 60.31 kB / 1.372 GB, free: 5.234 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/1.221, allocations: 138.8 kB / 1.372 GB, free: 5.109 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.465e-05/1.221, allocations: 88.39 kB / 1.372 GB, free: 5.047 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/1.221, allocations: 31.23 kB / 1.372 GB, free: 5.02 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.207e-05/1.221, allocations: 352.5 kB / 1.372 GB, free: 4.684 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006546/1.222, allocations: 365.4 kB / 1.373 GB, free: 4.461 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000702/1.223, allocations: 0.6338 MB / 1.373 GB, free: 3.832 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001712/1.224, allocations: 0.5311 MB / 1.374 GB, free: 3.402 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/1.224, allocations: 0 / 1.374 GB, free: 3.402 MB / 0.8073 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002942/1.227, allocations: 1.256 MB / 1.375 GB, free: 2.387 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/1.227, allocations: 8.844 kB / 1.375 GB, free: 2.379 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/1.227, allocations: 8 kB / 1.375 GB, free: 2.371 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/1.227, allocations: 16 kB / 1.375 GB, free: 2.355 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.99e-05/1.228, allocations: 27.86 kB / 1.375 GB, free: 2.328 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/1.228, allocations: 19.92 kB / 1.375 GB, free: 2.309 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002112/1.23, allocations: 0.5952 MB / 1.376 GB, free: 1.719 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001551/1.23, allocations: 87.17 kB / 1.376 GB, free: 1.641 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.booPul_c5.y,booPul_c5.y,$whenCondition29,$whenCondition30,$PRE.booPul_b5.y,booPul_b5.y,$whenCondition27,$whenCondition28,$PRE.booPul_a5.y,booPul_a5.y,$whenCondition25,$whenCondition26,$PRE.booPul_c4.y,booPul_c4.y,$whenCondition23,$whenCondition24,$PRE.booPul_b4.y,booPul_b4.y,$whenCondition21,$whenCondition22,$PRE.booPul_a4.y,booPul_a4.y,$whenCondition19,$whenCondition20,$PRE.booPul_c3.y,booPul_c3.y,$whenCondition17,$whenCondition18,$PRE.booPul_b3.y,booPul_b3.y,$whenCondition15,$whenCondition16,$PRE.booPul_a3.y,booPul_a3.y,$whenCondition13,$whenCondition14,$PRE.booPul_c2.y,booPul_c2.y,$whenCondition11,$whenCondition12,$PRE.booPul_b2.y,booPul_b2.y,$whenCondition9,$whenCondition10,$PRE.booPul_a2.y,booPul_a2.y,$whenCondition7,$whenCondition8,$PRE.booPul_c1.y,booPul_c1.y,$whenCondition5,$whenCondition6,$PRE.booPul_b1.y,booPul_b1.y,$whenCondition3,$whenCondition4,$PRE.booPul_a1.y,booPul_a1.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 15 * 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 0.0001961/1.23, allocations: 181.8 kB / 1.376 GB, free: 1.469 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.665e-05/1.23, allocations: 47.5 kB / 1.376 GB, free: 1.422 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.473e-05/1.23, allocations: 43.98 kB / 1.376 GB, free: 1.395 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/1.23, allocations: 8 kB / 1.376 GB, free: 1.387 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/1.23, allocations: 4 kB / 1.376 GB, free: 1.383 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/1.23, allocations: 7.984 kB / 1.376 GB, free: 1.375 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/1.23, allocations: 289.4 kB / 1.376 GB, free: 1.105 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/1.23, allocations: 0 / 1.376 GB, free: 1.105 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.948e-05/1.23, allocations: 19.92 kB / 1.376 GB, free: 1.086 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/1.23, allocations: 12 kB / 1.376 GB, free: 1.074 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/1.23, allocations: 19.86 kB / 1.376 GB, free: 1.059 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/1.231, allocations: 4 kB / 1.376 GB, free: 1.055 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/1.231, allocations: 7.938 kB / 1.376 GB, free: 1.047 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003818/1.231, allocations: 0.5743 MB / 1.377 GB, free: 416 kB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005164/1.231, allocations: 0.955 MB / 1.378 GB, free: 15.38 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/1.231, allocations: 116.2 kB / 1.378 GB, free: 15.25 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.114e-05/1.232, allocations: 7.984 kB / 1.378 GB, free: 15.24 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/1.232, allocations: 11.98 kB / 1.378 GB, free: 15.23 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.73e-05/1.232, allocations: 53.53 kB / 1.378 GB, free: 15.2 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.792e-05/1.232, allocations: 31.8 kB / 1.378 GB, free: 15.17 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0001181/1.232, allocations: 173.9 kB / 1.378 GB, free: 15.02 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001189/1.233, allocations: 175 kB / 1.378 GB, free: 14.86 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition29,$whenCondition30,booPul_c5.y,$whenCondition27,$whenCondition28,booPul_b5.y,$whenCondition25,$whenCondition26,booPul_a5.y,$whenCondition23,$whenCondition24,booPul_c4.y,$whenCondition21,$whenCondition22,booPul_b4.y,$whenCondition19,$whenCondition20,booPul_a4.y,$whenCondition17,$whenCondition18,booPul_c3.y,$whenCondition15,$whenCondition16,booPul_b3.y,$whenCondition13,$whenCondition14,booPul_a3.y,$whenCondition11,$whenCondition12,booPul_c2.y,$whenCondition9,$whenCondition10,booPul_b2.y,$whenCondition7,$whenCondition8,booPul_a2.y,$whenCondition5,$whenCondition6,booPul_c1.y,$whenCondition3,$whenCondition4,booPul_b1.y,$whenCondition1,$whenCondition2,booPul_a1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 15 * 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.0001581/1.233, allocations: 134.1 kB / 1.378 GB, free: 14.72 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001305/1.235, allocations: 1.098 MB / 1.379 GB, free: 13.76 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/1.235, allocations: 0 / 1.379 GB, free: 13.76 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.000186/1.235, allocations: 163.4 kB / 1.38 GB, free: 13.64 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005409/1.235, allocations: 107.3 kB / 1.38 GB, free: 13.55 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006905/1.236, allocations: 481.4 kB / 1.38 GB, free: 13.07 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003106/1.236, allocations: 0.8251 MB / 1.381 GB, free: 12.23 MB / 0.823 GB Notification: Performance of SimCode: time 2.5e-07/1.236, allocations: 0 / 1.381 GB, free: 12.23 MB / 0.823 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_PulsePositiveStartTime_fmu --startTime=9 --stopTime=20 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_PulsePositiveStartTime.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime_res.mat does not exist to compare? outputFormat=mat