Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.Latch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",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.867/1.867, allocations: 387.2 MB / 394.5 MB, free: 13.62 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.0009818/0.0009818, allocations: 173.3 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.221/1.221, allocations: 221.3 MB / 0.7819 GB, free: 1.359 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.0008312/0.0008312, allocations: 109.9 kB / 0.9213 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4395/0.4403, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2055/0.6458, allocations: 142.3 MB / 1.205 GB, free: 26.12 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5264/1.172, allocations: 149 MB / 1.351 GB, free: 15.94 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001934/1.173, allocations: 69.88 kB / 1.351 GB, free: 15.94 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.01098/1.184, allocations: 4.13 MB / 1.355 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/1.184, allocations: 9.188 kB / 1.355 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.693e-05/1.184, allocations: 23.12 kB / 1.355 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.506e-05/1.184, allocations: 175.8 kB / 1.355 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.366e-05/1.184, allocations: 10.39 kB / 1.355 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.502e-05/1.184, allocations: 35.8 kB / 1.355 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001887/1.184, allocations: 79.62 kB / 1.355 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003073/1.184, allocations: 197.1 kB / 1.355 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/1.184, allocations: 0.5625 kB / 1.355 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/1.184, allocations: 20.45 kB / 1.355 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/1.184, allocations: 3.469 kB / 1.355 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006806/1.185, allocations: 0.4966 MB / 1.356 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003995/1.186, allocations: 265.1 kB / 1.356 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001867/1.186, allocations: 132.3 kB / 1.356 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/1.186, allocations: 2.969 kB / 1.356 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004333/1.186, allocations: 304.3 kB / 1.357 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=48): time 1.703e-06/1.186, allocations: 4 kB / 1.357 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of matching and sorting (n=48): time 0.0006236/1.187, allocations: 351.2 kB / 1.357 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.723e-05/1.187, allocations: 58.7 kB / 1.357 GB, free: 14.6 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.95e-05/1.187, allocations: 117.4 kB / 1.357 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.324e-05/1.187, allocations: 50.88 kB / 1.357 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.715e-05/1.187, allocations: 98.81 kB / 1.357 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 8.337e-05/1.187, allocations: 101.5 kB / 1.357 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.148e-05/1.187, allocations: 2.906 kB / 1.357 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.073e-05/1.187, allocations: 338.4 kB / 1.358 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/1.188, allocations: 159.4 kB / 1.358 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003147/1.188, allocations: 243.7 kB / 1.358 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004404/1.188, allocations: 140 kB / 1.358 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/1.188, allocations: 4.75 kB / 1.358 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009131/1.189, allocations: 463.8 kB / 1.359 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/1.189, allocations: 5.125 kB / 1.359 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/1.189, allocations: 3.375 kB / 1.359 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/1.189, allocations: 4.906 kB / 1.359 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.379e-05/1.189, allocations: 27.48 kB / 1.359 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/1.189, allocations: 12.91 kB / 1.359 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004126/1.19, allocations: 79.67 kB / 1.359 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.247e-05/1.19, allocations: 24.83 kB / 1.359 GB, free: 13.81 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 68 ($PRE.falCleTruIni.y,$PRE.truCleTruIni.y,$PRE.falCleFalIni.y,$PRE.truCleFalIni.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.falCleTruIni.u,falCleTruIni.u,$PRE.falCleTruIni.clr,falCleTruIni.clr,falCleTruIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,$PRE.truCleTruIni.clr,truCleTruIni.clr,truCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,$PRE.falCleFalIni.clr,falCleFalIni.clr,falCleFalIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,$PRE.truCleFalIni.clr,truCleFalIni.clr,truCleFalIni.y,$PRE.swiCleInp.u,swiCleInp.u,$PRE.swiCleInp.clr,swiCleInp.clr,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,$PRE.swiCleInp1.clr,swiCleInp1.clr,swiCleInp1.y,$PRE.cleInp.y,cleInp.y,$PRE.latInp.y,latInp.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 2 * 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.0001326/1.19, allocations: 153.2 kB / 1.359 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.65e-05/1.19, allocations: 25.05 kB / 1.359 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.575e-05/1.19, allocations: 29.66 kB / 1.359 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/1.19, allocations: 9.125 kB / 1.359 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/1.19, allocations: 0 / 1.359 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/1.19, allocations: 3.547 kB / 1.359 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008008/1.191, allocations: 0.7244 MB / 1.36 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/1.191, allocations: 0.7188 kB / 1.36 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.283e-05/1.191, allocations: 12.45 kB / 1.36 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/1.191, allocations: 1.938 kB / 1.36 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.529e-05/1.191, allocations: 21.12 kB / 1.36 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/1.191, allocations: 1.906 kB / 1.36 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/1.191, allocations: 0 / 1.36 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005343/1.192, allocations: 462.8 kB / 1.36 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005507/1.192, allocations: 0.8254 MB / 1.361 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.576e-05/1.192, allocations: 95.19 kB / 1.361 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.642e-05/1.192, allocations: 18.81 kB / 1.361 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.861e-05/1.192, allocations: 9.188 kB / 1.361 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/1.193, allocations: 77.83 kB / 1.361 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.269e-05/1.193, allocations: 32.94 kB / 1.361 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.083e-05/1.193, allocations: 93.59 kB / 1.361 GB, free: 12.51 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0009228/1.194, allocations: 86.02 kB / 1.361 GB, free: 12.5 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: 48 ($whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,falCleTruIni.u,falCleTruIni.clr,falCleTruIni.y,truCleTruIni.u,truCleTruIni.clr,truCleTruIni.y,falCleFalIni.u,falCleFalIni.clr,falCleFalIni.y,truCleFalIni.u,truCleFalIni.clr,truCleFalIni.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 18 (truCleFalIni.u,truCleFalIni.clr,truCleFalIni.y,falCleTruIni.u,falCleTruIni.clr,falCleTruIni.y,truCleTruIni.u,truCleTruIni.clr,truCleTruIni.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,falCleFalIni.u,falCleFalIni.clr,falCleFalIni.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0002175/1.194, allocations: 145.9 kB / 1.362 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0007681/1.195, allocations: 473 kB / 1.362 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/1.195, allocations: 0.625 kB / 1.362 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0002585/1.195, allocations: 293.4 kB / 1.362 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/1.195, allocations: 18 kB / 1.362 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007332/1.196, allocations: 362.9 kB / 1.363 GB, free: 11.83 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000417/1.196, allocations: 0.7863 MB / 1.363 GB, free: 27.05 MB / 0.823 GB Notification: Performance of SimCode: time 2.81e-07/1.196, allocations: 0 / 1.363 GB, free: 27.05 MB / 0.823 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat does not exist to compare? outputFormat=mat