Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.177/2.177, allocations: 284.8 MB / 292.1 MB, free: 10.73 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002665/0.002665, allocations: 185.2 kB / 360.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.657/1.657, allocations: 205.1 MB / 0.6187 GB, free: 13.2 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001221/0.001221, allocations: 81.59 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2448/0.2461, allocations: 121.4 MB / 0.8502 GB, free: 3.914 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5399/0.786, allocations: 115.2 MB / 0.9628 GB, free: 78.44 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2044/0.9905, allocations: 137.6 MB / 1.097 GB, free: 3.266 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/0.9909, allocations: 73.14 kB / 1.097 GB, free: 3.195 MB / 0.698 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.02061/1.011, allocations: 4.121 MB / 1.101 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/1.012, allocations: 12.44 kB / 1.101 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/1.012, allocations: 30.81 kB / 1.101 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001627/1.012, allocations: 180.3 kB / 1.101 GB, free: 14.85 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.643e-05/1.012, allocations: 7.984 kB / 1.101 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/1.012, allocations: 30.12 kB / 1.101 GB, free: 14.82 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003265/1.012, allocations: 87.92 kB / 1.102 GB, free: 14.73 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000497/1.013, allocations: 185.5 kB / 1.102 GB, free: 14.54 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/1.013, allocations: 4.516 kB / 1.102 GB, free: 14.54 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.724e-05/1.013, allocations: 11.97 kB / 1.102 GB, free: 14.53 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/1.013, allocations: 4 kB / 1.102 GB, free: 14.52 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/1.014, allocations: 0.4975 MB / 1.102 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006566/1.015, allocations: 263.5 kB / 1.102 GB, free: 13.72 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003263/1.015, allocations: 129.5 kB / 1.103 GB, free: 13.59 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.306e-05/1.015, allocations: 4 kB / 1.103 GB, free: 13.59 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007414/1.016, allocations: 308.3 kB / 1.103 GB, free: 13.28 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 2.956e-06/1.016, allocations: 0 / 1.103 GB, free: 13.28 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.00112/1.017, allocations: 351 kB / 1.103 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.787e-05/1.017, allocations: 60.06 kB / 1.103 GB, free: 12.86 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/1.017, allocations: 124.8 kB / 1.103 GB, free: 12.73 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001328/1.017, allocations: 49.69 kB / 1.103 GB, free: 12.67 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 9.473e-05/1.018, allocations: 109 kB / 1.104 GB, free: 12.56 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/1.018, allocations: 98.81 kB / 1.104 GB, free: 12.46 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.508e-05/1.018, allocations: 4 kB / 1.104 GB, free: 12.46 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001954/1.018, allocations: 334.8 kB / 1.104 GB, free: 12.12 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005169/1.019, allocations: 157.3 kB / 1.104 GB, free: 11.97 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006158/1.019, allocations: 244.7 kB / 1.104 GB, free: 11.7 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007352/1.02, allocations: 145.3 kB / 1.104 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/1.02, allocations: 0 / 1.104 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001555/1.021, allocations: 460.2 kB / 1.105 GB, free: 11.1 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/1.022, allocations: 7.984 kB / 1.105 GB, free: 11.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/1.022, allocations: 0 / 1.105 GB, free: 11.09 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/1.022, allocations: 9.125 kB / 1.105 GB, free: 11.08 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/1.022, allocations: 23.92 kB / 1.105 GB, free: 11.06 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/1.022, allocations: 7.938 kB / 1.105 GB, free: 11.05 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007793/1.023, allocations: 84 kB / 1.105 GB, free: 10.97 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.153e-05/1.023, allocations: 25.16 kB / 1.105 GB, free: 10.95 MB / 0.7136 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.00026/1.023, allocations: 153.7 kB / 1.105 GB, free: 10.79 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.978e-05/1.023, allocations: 23.8 kB / 1.105 GB, free: 10.77 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001233/1.023, allocations: 34.06 kB / 1.105 GB, free: 10.73 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/1.023, allocations: 4 kB / 1.105 GB, free: 10.73 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/1.023, allocations: 1.75 kB / 1.105 GB, free: 10.73 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/1.023, allocations: 3.984 kB / 1.105 GB, free: 10.73 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001432/1.025, allocations: 0.7198 MB / 1.106 GB, free: 9.965 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.942e-06/1.025, allocations: 3.281 kB / 1.106 GB, free: 9.965 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.299e-05/1.025, allocations: 15.94 kB / 1.106 GB, free: 9.949 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/1.025, allocations: 3.938 kB / 1.106 GB, free: 9.945 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.158e-05/1.025, allocations: 19.97 kB / 1.106 GB, free: 9.926 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/1.025, allocations: 0 / 1.106 GB, free: 9.926 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.708e-06/1.025, allocations: 4 kB / 1.106 GB, free: 9.922 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009326/1.026, allocations: 462.9 kB / 1.106 GB, free: 9.453 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00114/1.027, allocations: 0.8197 MB / 1.107 GB, free: 8.613 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.809e-05/1.027, allocations: 100.8 kB / 1.107 GB, free: 8.496 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/1.027, allocations: 17.36 kB / 1.107 GB, free: 8.48 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/1.027, allocations: 8 kB / 1.107 GB, free: 8.473 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002455/1.028, allocations: 80.27 kB / 1.107 GB, free: 8.395 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-05/1.028, allocations: 31.92 kB / 1.107 GB, free: 8.363 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7.377e-05/1.028, allocations: 91.27 kB / 1.108 GB, free: 8.273 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001489/1.029, allocations: 79.98 kB / 1.108 GB, free: 8.195 MB / 0.7136 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.0003223/1.03, allocations: 154.3 kB / 1.108 GB, free: 8.031 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001217/1.031, allocations: 466.9 kB / 1.108 GB, free: 7.566 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/1.031, allocations: 4 kB / 1.108 GB, free: 7.562 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0005554/1.031, allocations: 285.6 kB / 1.109 GB, free: 7.285 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/1.032, allocations: 15.89 kB / 1.109 GB, free: 7.27 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/1.033, allocations: 360.6 kB / 1.109 GB, free: 6.895 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005714/1.034, allocations: 0.7839 MB / 1.11 GB, free: 6.082 MB / 0.7136 GB Notification: Performance of SimCode: time 8.62e-07/1.034, allocations: 0 / 1.11 GB, free: 6.082 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)