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/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009103/0.009102, allocations: 97.27 kB / 15.73 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001619/0.001619, allocations: 195.9 kB / 16.68 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.695/1.695, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.705/1.705, allocations: 251.7 MB / 0.5094 GB, free: 2.984 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001638, allocations: 67.89 kB / 0.7258 GB, free: 8.977 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2788, allocations: 104.7 MB / 0.8281 GB, free: 164 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.003084/0.2819, allocations: 1.499 MB / 0.8295 GB, free: 14.65 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0008128/0.2828, allocations: 344 kB / 0.8299 GB, free: 14.31 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.965e-05/0.2828, allocations: 4 kB / 0.8299 GB, free: 14.31 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.817e-05/0.2829, allocations: 11.81 kB / 0.8299 GB, free: 14.3 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.283, allocations: 23.78 kB / 0.8299 GB, free: 14.27 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002964/0.2833, allocations: 119.8 kB / 0.83 GB, free: 14.16 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002661/0.2836, allocations: 247.5 kB / 0.8303 GB, free: 13.91 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002187/0.2838, allocations: 53.08 kB / 0.8303 GB, free: 13.86 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.284, allocations: 103.8 kB / 0.8304 GB, free: 13.76 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.2841, allocations: 103.7 kB / 0.8305 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 4.958e-05/0.2842, allocations: 27.94 kB / 0.8305 GB, free: 13.63 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 4.086e-05/0.2842, allocations: 24 kB / 0.8306 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 6.917e-05/0.2843, allocations: 71.8 kB / 0.8306 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.2844, allocations: 103.7 kB / 0.8307 GB, free: 13.43 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003259/0.2847, allocations: 247 kB / 0.831 GB, free: 13.19 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.2847, allocations: 0 / 0.831 GB, free: 13.19 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.784e-06/0.2848, allocations: 0 / 0.831 GB, free: 13.19 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.564e-06/0.2848, allocations: 0 / 0.831 GB, free: 13.19 MB / 0.6544 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.0008893/0.2857, allocations: 0.4946 MB / 0.8314 GB, free: 12.64 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.2857, allocations: 12.03 kB / 0.8314 GB, free: 12.63 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.721e-05/0.2858, allocations: 24.83 kB / 0.8315 GB, free: 12.61 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000419/0.2862, allocations: 248 kB / 0.8317 GB, free: 12.33 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.347e-05/0.2863, allocations: 28.3 kB / 0.8317 GB, free: 12.3 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.53e-05/0.2863, allocations: 28.36 kB / 0.8318 GB, free: 12.27 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003622/0.2867, allocations: 206.7 kB / 0.832 GB, free: 12.07 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.2867, allocations: 192 / 0.832 GB, free: 12.07 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.2868, allocations: 19.91 kB / 0.832 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.2868, allocations: 0 / 0.832 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001962/0.287, allocations: 99.94 kB / 0.8321 GB, free: 11.95 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009421/0.2879, allocations: 0.5236 MB / 0.8326 GB, free: 11.38 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006605/0.2886, allocations: 278.5 kB / 0.8329 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001857/0.2888, allocations: 116.9 kB / 0.833 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.2888, allocations: 3.938 kB / 0.833 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008075/0.2896, allocations: 474.2 kB / 0.8334 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=42): time 1.823e-06/0.2896, allocations: 0 / 0.8334 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of matching and sorting (n=42): time 0.001046/0.2907, allocations: 0.5243 MB / 0.8339 GB, free: 9.965 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.857e-05/0.2908, allocations: 59.39 kB / 0.834 GB, free: 9.895 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001888/0.291, allocations: 168.3 kB / 0.8341 GB, free: 9.719 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.551e-05/0.2911, allocations: 45.7 kB / 0.8342 GB, free: 9.668 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 9.778e-05/0.2912, allocations: 125 kB / 0.8343 GB, free: 9.543 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 9.674e-05/0.2913, allocations: 95.36 kB / 0.8344 GB, free: 9.449 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.2914, allocations: 94.25 kB / 0.8345 GB, free: 9.352 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001923/0.2916, allocations: 338.8 kB / 0.8348 GB, free: 9.012 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002537/0.2919, allocations: 140.9 kB / 0.8349 GB, free: 8.875 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002975/0.2922, allocations: 219.6 kB / 0.8352 GB, free: 8.629 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003514/0.2925, allocations: 259.6 kB / 0.8354 GB, free: 8.34 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2925, allocations: 0 / 0.8354 GB, free: 8.34 MB / 0.6544 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0006137/0.2932, allocations: 398.6 kB / 0.8358 GB, free: 7.945 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.163e-05/0.2932, allocations: 4 kB / 0.8358 GB, free: 7.941 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.2932, allocations: 4 kB / 0.8358 GB, free: 7.938 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.111e-05/0.2933, allocations: 8.25 kB / 0.8358 GB, free: 7.93 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.2934, allocations: 35.86 kB / 0.8358 GB, free: 7.895 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.584e-05/0.2934, allocations: 7.984 kB / 0.8358 GB, free: 7.887 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001606/0.2936, allocations: 31.84 kB / 0.8359 GB, free: 7.855 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.605e-05/0.2936, allocations: 20 kB / 0.8359 GB, free: 7.836 MB / 0.6544 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.falCle.y,$PRE.truCle.y,$PRE.iniFalOut.y,$PRE.iniTruOut.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition26,$whenCondition25,tru.y,fal.y,truCle.clr,$PRE.truCle.clr,falCle.clr,$PRE.falCle.clr,iniFalOut.clr,$PRE.iniFalOut.clr,iniTruOut.clr,$PRE.iniTruOut.clr,latInp.pulseStart,$PRE.latInp.pulseStart,cleInp.pulseStart,$PRE.cleInp.pulseStart,swiCleInp1.y,swiCleInp1.clr,$PRE.swiCleInp1.clr,swiCleInp1.u,$PRE.swiCleInp1.u,swiCleInp.y,swiCleInp.clr,$PRE.swiCleInp.clr,swiCleInp.u,$PRE.swiCleInp.u,iniTruOut.y,iniTruOut.u,$PRE.iniTruOut.u,iniFalOut.y,iniFalOut.u,$PRE.iniFalOut.u,truCle.y,truCle.u,$PRE.truCle.u,falCle.y,falCle.u,$PRE.falCle.u,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002168/0.2939, allocations: 175.8 kB / 0.8361 GB, free: 7.652 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.834e-05/0.2939, allocations: 27.89 kB / 0.8361 GB, free: 7.625 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.294, allocations: 30.31 kB / 0.8361 GB, free: 7.594 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.294, allocations: 7.938 kB / 0.8361 GB, free: 7.586 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.2941, allocations: 0 / 0.8361 GB, free: 7.586 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.2941, allocations: 7.984 kB / 0.8361 GB, free: 7.578 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001186/0.2953, allocations: 0.8034 MB / 0.8369 GB, free: 6.719 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2953, allocations: 4 kB / 0.8369 GB, free: 6.715 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.33e-05/0.2953, allocations: 19.86 kB / 0.8369 GB, free: 6.695 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.2953, allocations: 8 kB / 0.8369 GB, free: 6.688 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.911e-05/0.2954, allocations: 19.97 kB / 0.837 GB, free: 6.668 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.2954, allocations: 0 / 0.837 GB, free: 6.668 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2954, allocations: 3.984 kB / 0.837 GB, free: 6.664 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006908/0.2961, allocations: 0.499 MB / 0.8375 GB, free: 6.148 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 7.351e-05/0.2962, allocations: 104.8 kB / 0.8376 GB, free: 6.027 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.683e-05/0.2963, allocations: 19.98 kB / 0.8376 GB, free: 6.008 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.2964, allocations: 23.97 kB / 0.8376 GB, free: 5.984 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.2966, allocations: 59.69 kB / 0.8377 GB, free: 5.926 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.046e-05/0.2966, allocations: 31.97 kB / 0.8377 GB, free: 5.895 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 9.059e-05/0.2967, allocations: 106.1 kB / 0.8378 GB, free: 5.793 MB / 0.6544 GB Notification: Performance of sort global known variables: time 3.586e-06/0.2967, allocations: 0 / 0.8378 GB, free: 5.793 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003463/0.2971, allocations: 79.92 kB / 0.8379 GB, free: 5.715 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($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.y,truCle.u,truCle.y,iniFalOut.u,iniFalOut.y,iniTruOut.u,iniTruOut.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.pulseStart,latInp.pulseStart) * Number of discrete states: 14 (iniFalOut.u,iniTruOut.u,falCle.u,truCle.u,swiCleInp.u,swiCleInp.clr,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp.y,iniTruOut.y,iniFalOut.y,truCle.y,falCle.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002206/0.2973, allocations: 141.8 kB / 0.838 GB, free: 5.566 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005871/0.2979, allocations: 359.5 kB / 0.8383 GB, free: 5.215 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.2979, allocations: 0 / 0.8383 GB, free: 5.215 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0003126/0.2982, allocations: 223.6 kB / 0.8386 GB, free: 4.996 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.2986, allocations: 44.52 kB / 0.8386 GB, free: 4.953 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.2997, allocations: 474.7 kB / 0.839 GB, free: 4.465 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.3, allocations: 0.7293 MB / 0.8398 GB, free: 3.711 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001152/0.3002, allocations: 42.95 kB / 0.8398 GB, free: 3.668 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.3003, allocations: 39.42 kB / 0.8398 GB, free: 3.629 MB / 0.6544 GB Notification: Performance of SimCode: time 3e-07/0.3003, allocations: 0 / 0.8398 GB, free: 3.629 MB / 0.6544 GB Notification: Performance of Templates: time 0.007829/0.3081, allocations: 3.297 MB / 0.8431 GB, free: 340 kB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)