Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.38/1.38, allocations: 289.8 MB / 297.1 MB, free: 6.699 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.001025/0.001025, allocations: 177.3 kB / 366.3 MB, free: 2.035 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.06/1.06, allocations: 205.1 MB / 0.6256 GB, free: 7.477 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.0007983/0.0007985, allocations: 88.77 kB / 0.7396 GB, free: 39.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2009/0.2017, allocations: 122.4 MB / 0.8591 GB, free: 13.51 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4626/0.6643, allocations: 116.3 MB / 0.9727 GB, free: 76.02 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1434/0.8078, allocations: 138.7 MB / 1.108 GB, free: 11.8 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.808, allocations: 77.23 kB / 1.108 GB, free: 11.72 MB / 0.7136 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.01117/0.8192, allocations: 4.119 MB / 1.112 GB, free: 7.602 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.8192, allocations: 8 kB / 1.112 GB, free: 7.594 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.862e-05/0.8193, allocations: 27.81 kB / 1.112 GB, free: 7.566 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.8194, allocations: 171 kB / 1.112 GB, free: 7.359 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.11e-05/0.8195, allocations: 7.984 kB / 1.112 GB, free: 7.352 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.125e-05/0.8195, allocations: 27.98 kB / 1.112 GB, free: 7.324 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001806/0.8197, allocations: 84.83 kB / 1.113 GB, free: 7.242 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002775/0.82, allocations: 189.5 kB / 1.113 GB, free: 7.051 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.82, allocations: 3.906 kB / 1.113 GB, free: 7.047 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.8201, allocations: 7.984 kB / 1.113 GB, free: 7.039 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.8201, allocations: 4 kB / 1.113 GB, free: 7.035 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000676/0.8208, allocations: 0.5124 MB / 1.113 GB, free: 6.484 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003623/0.8211, allocations: 254.7 kB / 1.113 GB, free: 6.227 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.8213, allocations: 128.1 kB / 1.114 GB, free: 6.102 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.8213, allocations: 8 kB / 1.114 GB, free: 6.094 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003927/0.8217, allocations: 307.6 kB / 1.114 GB, free: 5.781 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 2.114e-06/0.8217, allocations: 0 / 1.114 GB, free: 5.781 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.0005727/0.8223, allocations: 347 kB / 1.114 GB, free: 5.434 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/0.8224, allocations: 63.84 kB / 1.114 GB, free: 5.359 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.8225, allocations: 121.2 kB / 1.114 GB, free: 5.234 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 7.003e-05/0.8226, allocations: 49.69 kB / 1.114 GB, free: 5.18 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.793e-05/0.8226, allocations: 105 kB / 1.115 GB, free: 5.07 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 8.005e-05/0.8227, allocations: 98.81 kB / 1.115 GB, free: 4.973 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.133e-05/0.8227, allocations: 8.75 kB / 1.115 GB, free: 4.965 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.441e-05/0.8228, allocations: 334.8 kB / 1.115 GB, free: 4.629 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.8231, allocations: 153.3 kB / 1.115 GB, free: 4.48 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003006/0.8234, allocations: 247.1 kB / 1.115 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004185/0.8238, allocations: 137.4 kB / 1.115 GB, free: 4.078 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.8239, allocations: 4 kB / 1.115 GB, free: 4.074 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008668/0.8247, allocations: 460 kB / 1.116 GB, free: 3.617 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.8248, allocations: 4 kB / 1.116 GB, free: 3.613 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.8248, allocations: 1.438 kB / 1.116 GB, free: 3.613 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.8248, allocations: 12 kB / 1.116 GB, free: 3.602 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.763e-05/0.8249, allocations: 27.86 kB / 1.116 GB, free: 3.574 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.497e-05/0.8249, allocations: 4 kB / 1.116 GB, free: 3.57 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004068/0.8253, allocations: 83.94 kB / 1.116 GB, free: 3.488 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.377e-05/0.8254, allocations: 23.98 kB / 1.116 GB, free: 3.465 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.0001473/0.8255, allocations: 149.9 kB / 1.116 GB, free: 3.309 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.152e-05/0.8256, allocations: 23.81 kB / 1.116 GB, free: 3.285 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.228e-05/0.8256, allocations: 38.05 kB / 1.116 GB, free: 3.246 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.249e-06/0.8257, allocations: 4 kB / 1.116 GB, free: 3.242 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.8257, allocations: 0 / 1.116 GB, free: 3.242 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.8257, allocations: 0 / 1.116 GB, free: 3.242 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008331/0.8265, allocations: 0.7283 MB / 1.117 GB, free: 2.469 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.8265, allocations: 1.438 kB / 1.117 GB, free: 2.469 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.384e-05/0.8266, allocations: 19.92 kB / 1.117 GB, free: 2.449 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.8266, allocations: 0 / 1.117 GB, free: 2.449 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.691e-05/0.8266, allocations: 19.97 kB / 1.117 GB, free: 2.43 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.8266, allocations: 0 / 1.117 GB, free: 2.43 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.8266, allocations: 0 / 1.117 GB, free: 2.43 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005213/0.8272, allocations: 465.5 kB / 1.117 GB, free: 1.965 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006757/0.8279, allocations: 0.8243 MB / 1.118 GB, free: 1.121 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.548e-05/0.8279, allocations: 100.8 kB / 1.118 GB, free: 1.004 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.857e-05/0.828, allocations: 19.98 kB / 1.118 GB, free: 0.9844 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.8281, allocations: 5.984 kB / 1.118 GB, free: 0.9805 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.8283, allocations: 76.28 kB / 1.118 GB, free: 0.9062 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.553e-05/0.8283, allocations: 35.97 kB / 1.119 GB, free: 0.8711 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.097e-05/0.8284, allocations: 88.27 kB / 1.119 GB, free: 0.7852 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001045/0.8294, allocations: 91.97 kB / 1.119 GB, free: 0.6953 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.0002425/0.8297, allocations: 134.9 kB / 1.119 GB, free: 0.5547 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0006293/0.8303, allocations: 475.2 kB / 1.119 GB, free: 80 kB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.8303, allocations: 0 / 1.119 GB, free: 80 kB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.000317/0.8306, allocations: 293.5 kB / 1.12 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/0.8309, allocations: 30.58 kB / 1.12 GB, free: 15.76 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000716/0.8316, allocations: 353.6 kB / 1.12 GB, free: 15.39 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004282/0.8321, allocations: 0.788 MB / 1.121 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of SimCode: time 2.61e-07/0.8321, allocations: 0 / 1.121 GB, free: 14.57 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)