Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.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.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",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.828/1.828, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.0009308/0.0009309, allocations: 173.3 kB / 487 MB, free: 5.371 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.193/1.193, allocations: 221.3 MB / 0.7819 GB, free: 1.32 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.0008567/0.0008567, allocations: 102.9 kB / 0.9213 GB, free: 2.566 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4525/0.4534, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1907/0.6441, allocations: 142.3 MB / 1.205 GB, free: 26.1 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5241/1.168, allocations: 148.7 MB / 1.351 GB, free: 15.87 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001774/1.168, allocations: 68.91 kB / 1.351 GB, free: 15.87 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.006918/1.175, allocations: 2.529 MB / 1.353 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/1.175, allocations: 8.688 kB / 1.353 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.622e-05/1.175, allocations: 6.188 kB / 1.353 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.652e-05/1.176, allocations: 174.8 kB / 1.353 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/1.176, allocations: 2.797 kB / 1.353 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/1.176, allocations: 5.438 kB / 1.353 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.434e-05/1.176, allocations: 33.02 kB / 1.353 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.88e-05/1.176, allocations: 60.97 kB / 1.353 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/1.176, allocations: 0 / 1.353 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/1.176, allocations: 5.188 kB / 1.353 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/1.176, allocations: 1.25 kB / 1.353 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003923/1.176, allocations: 298.6 kB / 1.354 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/1.176, allocations: 60.61 kB / 1.354 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.862e-05/1.176, allocations: 34.06 kB / 1.354 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 7.304e-06/1.176, allocations: 0 / 1.354 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001092/1.177, allocations: 83.55 kB / 1.354 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=9): time 1.693e-06/1.177, allocations: 5.562 kB / 1.354 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9): time 0.0002136/1.177, allocations: 103.6 kB / 1.354 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.997e-05/1.177, allocations: 53.56 kB / 1.354 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.804e-05/1.177, allocations: 104.9 kB / 1.354 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/1.177, allocations: 27.92 kB / 1.354 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.849e-05/1.177, allocations: 84.73 kB / 1.354 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/1.177, allocations: 24.06 kB / 1.354 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.538e-05/1.177, allocations: 2.219 kB / 1.354 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.213e-05/1.177, allocations: 318.9 kB / 1.355 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.866e-05/1.177, allocations: 46.66 kB / 1.355 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.835e-05/1.177, allocations: 62.47 kB / 1.355 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002024/1.177, allocations: 56.31 kB / 1.355 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/1.177, allocations: 1.031 kB / 1.355 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005474/1.178, allocations: 200.6 kB / 1.355 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/1.178, allocations: 8.625 kB / 1.355 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/1.178, allocations: 1.453 kB / 1.355 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000129/1.178, allocations: 40.88 kB / 1.355 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.398e-05/1.178, allocations: 9.266 kB / 1.355 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008567/1.179, allocations: 1.329 MB / 1.356 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/1.179, allocations: 46.55 kB / 1.356 GB, free: 12.76 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/1.179, allocations: 14.59 kB / 1.356 GB, free: 12.75 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$whenCondition2,$whenCondition4,$whenCondition3,$PRE.booPul.y,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 7.493e-05/1.179, allocations: 109.7 kB / 1.356 GB, free: 12.65 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.762e-05/1.18, allocations: 8.062 kB / 1.356 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.956e-05/1.18, allocations: 9.797 kB / 1.356 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/1.18, allocations: 5.062 kB / 1.356 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/1.18, allocations: 1.031 kB / 1.356 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/1.18, allocations: 0.7031 kB / 1.356 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000266/1.18, allocations: 336.2 kB / 1.357 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/1.18, allocations: 1.031 kB / 1.357 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.079e-05/1.18, allocations: 6.219 kB / 1.357 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/1.18, allocations: 0 / 1.357 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/1.18, allocations: 3.594 kB / 1.357 GB, free: 12.36 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/1.18, allocations: 11.88 kB / 1.357 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/1.18, allocations: 1.094 kB / 1.357 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001778/1.18, allocations: 197.9 kB / 1.357 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002048/1.18, allocations: 0.5616 MB / 1.357 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.98e-05/1.18, allocations: 83.64 kB / 1.358 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/1.18, allocations: 6.359 kB / 1.358 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/1.18, allocations: 4.672 kB / 1.358 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.573e-05/1.181, allocations: 9.812 kB / 1.358 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/1.181, allocations: 4.219 kB / 1.358 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.87e-05/1.181, allocations: 86.83 kB / 1.358 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0009253/1.182, allocations: 26.02 kB / 1.358 GB, free: 11.52 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: 8 ($whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 1 (triggeredTrapezoid1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001395/1.182, allocations: 129.1 kB / 1.358 GB, free: 11.43 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003334/1.182, allocations: 218.2 kB / 1.358 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/1.182, allocations: 4.594 kB / 1.358 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 8.162e-05/1.182, allocations: 42.28 kB / 1.358 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001979/1.182, allocations: 15.8 kB / 1.358 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002839/1.183, allocations: 115.2 kB / 1.358 GB, free: 11.2 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001828/1.183, allocations: 0.7048 MB / 1.359 GB, free: 10.5 MB / 0.8073 GB Notification: Performance of SimCode: time 2.21e-07/1.183, allocations: 0 / 1.359 GB, free: 10.5 MB / 0.8073 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat does not exist to compare? outputFormat=mat