Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.227/1.227, allocations: 249.4 MB / 256.7 MB, free: 0.6875 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009574/0.0009574, allocations: 180.1 kB / 316 MB, free: 8.922 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.114/1.114, allocations: 205.1 MB / 0.5667 GB, free: 13.42 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008663/0.0008659, allocations: 89.25 kB / 0.671 GB, free: 51.63 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1845/0.1854, allocations: 112.5 MB / 0.7808 GB, free: 9.848 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4574/0.6428, allocations: 106.3 MB / 0.8847 GB, free: 89.34 MB / 0.6434 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1416/0.7845, allocations: 131.2 MB / 1.013 GB, free: 14.58 MB / 0.659 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/0.7848, allocations: 67.95 kB / 1.013 GB, free: 14.52 MB / 0.659 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.005758/0.7905, allocations: 2.101 MB / 1.015 GB, free: 12.43 MB / 0.659 GB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.7906, allocations: 9.25 kB / 1.015 GB, free: 12.43 MB / 0.659 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.184e-05/0.7907, allocations: 23.8 kB / 1.015 GB, free: 12.4 MB / 0.659 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.7908, allocations: 171 kB / 1.015 GB, free: 12.2 MB / 0.659 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.7908, allocations: 11.98 kB / 1.015 GB, free: 12.18 MB / 0.659 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.214e-05/0.7909, allocations: 20.86 kB / 1.015 GB, free: 12.16 MB / 0.659 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001867/0.7911, allocations: 91.83 kB / 1.015 GB, free: 12.07 MB / 0.659 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002911/0.7914, allocations: 186.1 kB / 1.015 GB, free: 11.89 MB / 0.659 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.7914, allocations: 0 / 1.015 GB, free: 11.89 MB / 0.659 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.366e-05/0.7914, allocations: 17.08 kB / 1.015 GB, free: 11.88 MB / 0.659 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.7914, allocations: 4.75 kB / 1.015 GB, free: 11.87 MB / 0.659 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007743/0.7922, allocations: 497.6 kB / 1.016 GB, free: 11.36 MB / 0.659 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004395/0.7927, allocations: 251.9 kB / 1.016 GB, free: 11.1 MB / 0.659 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001859/0.7929, allocations: 136.2 kB / 1.016 GB, free: 10.97 MB / 0.659 GB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.7929, allocations: 4 kB / 1.016 GB, free: 10.96 MB / 0.659 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003936/0.7933, allocations: 289.9 kB / 1.016 GB, free: 10.67 MB / 0.659 GB Notification: Performance of pre-optimization done (n=46): time 1.543e-06/0.7933, allocations: 0 / 1.016 GB, free: 10.67 MB / 0.659 GB Notification: Performance of matching and sorting (n=46): time 0.0005287/0.7938, allocations: 337.7 kB / 1.017 GB, free: 10.34 MB / 0.659 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.7939, allocations: 59.41 kB / 1.017 GB, free: 10.27 MB / 0.659 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.874e-05/0.794, allocations: 125.2 kB / 1.017 GB, free: 10.13 MB / 0.659 GB Notification: Performance of collectPreVariables (initialization): time 5.376e-05/0.794, allocations: 41.7 kB / 1.017 GB, free: 10.09 MB / 0.659 GB Notification: Performance of collectInitialEqns (initialization): time 5.544e-05/0.7941, allocations: 97.03 kB / 1.017 GB, free: 9.988 MB / 0.659 GB Notification: Performance of collectInitialBindings (initialization): time 7.676e-05/0.7942, allocations: 98.84 kB / 1.017 GB, free: 9.891 MB / 0.659 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.754e-05/0.7942, allocations: 0 / 1.017 GB, free: 9.891 MB / 0.659 GB Notification: Performance of setup shared object (initialization): time 9.787e-05/0.7943, allocations: 348.3 kB / 1.018 GB, free: 9.543 MB / 0.659 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.7945, allocations: 117.3 kB / 1.018 GB, free: 9.426 MB / 0.659 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002178/0.7947, allocations: 190.5 kB / 1.018 GB, free: 9.215 MB / 0.659 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001187/0.7948, allocations: 76.05 kB / 1.018 GB, free: 9.148 MB / 0.659 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.7948, allocations: 0 / 1.018 GB, free: 9.148 MB / 0.659 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0004434/0.7953, allocations: 328.1 kB / 1.018 GB, free: 8.82 MB / 0.659 GB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.7953, allocations: 4 kB / 1.018 GB, free: 8.816 MB / 0.659 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.7953, allocations: 4 kB / 1.018 GB, free: 8.812 MB / 0.659 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.7953, allocations: 11.31 kB / 1.018 GB, free: 8.805 MB / 0.659 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.915e-05/0.7954, allocations: 27.86 kB / 1.018 GB, free: 8.777 MB / 0.659 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.7954, allocations: 4 kB / 1.018 GB, free: 8.773 MB / 0.659 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.7956, allocations: 15.98 kB / 1.018 GB, free: 8.758 MB / 0.659 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.068e-05/0.7956, allocations: 22.25 kB / 1.018 GB, free: 8.738 MB / 0.659 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 66 ($PRE.falCle.y,$PRE.truCle.y,$PRE.iniFalOut.y,$PRE.iniTruOut.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.falCle.u,falCle.u,$PRE.falCle.clr,falCle.clr,falCle.y,$PRE.truCle.u,truCle.u,$PRE.truCle.clr,truCle.clr,truCle.y,$PRE.iniFalOut.u,iniFalOut.u,$PRE.iniFalOut.clr,iniFalOut.clr,iniFalOut.y,$PRE.iniTruOut.u,iniTruOut.u,$PRE.iniTruOut.clr,iniTruOut.clr,iniTruOut.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.pulseStart,cleInp.pulseStart,$PRE.latInp.pulseStart,latInp.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * 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.0001294/0.7957, allocations: 146 kB / 1.018 GB, free: 8.59 MB / 0.659 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.118e-05/0.7958, allocations: 24.03 kB / 1.018 GB, free: 8.566 MB / 0.659 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.125e-05/0.7959, allocations: 29.86 kB / 1.019 GB, free: 8.539 MB / 0.659 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.7959, allocations: 7.938 kB / 1.019 GB, free: 8.531 MB / 0.659 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.7959, allocations: 3.906 kB / 1.019 GB, free: 8.527 MB / 0.659 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.758e-06/0.7959, allocations: 0 / 1.019 GB, free: 8.527 MB / 0.659 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007769/0.7967, allocations: 0.6978 MB / 1.019 GB, free: 7.785 MB / 0.659 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.7967, allocations: 3.984 kB / 1.019 GB, free: 7.781 MB / 0.659 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.553e-05/0.7967, allocations: 7.938 kB / 1.019 GB, free: 7.773 MB / 0.659 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.7967, allocations: 4 kB / 1.019 GB, free: 7.77 MB / 0.659 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.835e-05/0.7968, allocations: 19.97 kB / 1.019 GB, free: 7.75 MB / 0.659 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.7968, allocations: 0 / 1.019 GB, free: 7.75 MB / 0.659 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.7968, allocations: 7.844 kB / 1.019 GB, free: 7.742 MB / 0.659 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004994/0.7973, allocations: 438.8 kB / 1.02 GB, free: 7.297 MB / 0.659 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006558/0.798, allocations: 0.8002 MB / 1.02 GB, free: 6.477 MB / 0.659 GB Notification: Performance of postOpt removeConstants (simulation): time 4.617e-05/0.798, allocations: 96.83 kB / 1.021 GB, free: 6.363 MB / 0.659 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.333e-05/0.7981, allocations: 19.98 kB / 1.021 GB, free: 6.344 MB / 0.659 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.7983, allocations: 19.97 kB / 1.021 GB, free: 6.324 MB / 0.659 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.7985, allocations: 79.59 kB / 1.021 GB, free: 6.246 MB / 0.659 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-05/0.7985, allocations: 34.41 kB / 1.021 GB, free: 6.215 MB / 0.659 GB Notification: Performance of sort global known variables: time 6.331e-05/0.7986, allocations: 106.6 kB / 1.021 GB, free: 6.113 MB / 0.659 GB Notification: Performance of remove unused functions: time 0.0008493/0.7995, allocations: 59.91 kB / 1.021 GB, free: 6.055 MB / 0.659 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,falCle.u,falCle.clr,falCle.y,truCle.u,truCle.clr,truCle.y,iniFalOut.u,iniFalOut.clr,iniFalOut.y,iniTruOut.u,iniTruOut.clr,iniTruOut.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.pulseStart,latInp.pulseStart) * Number of discrete states: 18 (iniTruOut.u,iniTruOut.clr,iniFalOut.u,iniFalOut.clr,truCle.u,truCle.clr,falCle.u,falCle.clr,swiCleInp1.u,swiCleInp1.clr,swiCleInp.u,swiCleInp.clr,swiCleInp1.y,swiCleInp.y,iniTruOut.y,iniFalOut.y,truCle.y,falCle.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 38 * 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.0001933/0.7997, allocations: 139.9 kB / 1.021 GB, free: 5.91 MB / 0.659 GB Notification: Performance of simCode: created initialization part: time 0.0005125/0.8002, allocations: 341.5 kB / 1.021 GB, free: 5.578 MB / 0.659 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.8002, allocations: 4.125 kB / 1.021 GB, free: 5.574 MB / 0.659 GB Notification: Performance of simCode: created simulation system equations: time 0.0002776/0.8005, allocations: 243.9 kB / 1.022 GB, free: 5.336 MB / 0.659 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.8007, allocations: 27.48 kB / 1.022 GB, free: 5.312 MB / 0.659 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008698/0.8016, allocations: 376.7 kB / 1.022 GB, free: 4.918 MB / 0.659 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004554/0.8021, allocations: 0.7878 MB / 1.023 GB, free: 4.098 MB / 0.659 GB Notification: Performance of SimCode: time 2.51e-07/0.8021, allocations: 0 / 1.023 GB, free: 4.098 MB / 0.659 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)