Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.536/2.536, allocations: 393.5 MB / 408.4 MB, free: 11.06 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.001005/0.001005, allocations: 187.9 kB / 0.4901 GB, free: 2.242 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.546/1.546, allocations: 223.1 MB / 0.7992 GB, free: 15.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009257/0.0009256, allocations: 96.2 kB / 0.9396 GB, free: 2.809 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003725, allocations: 9.281 kB / 1.09 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2702, allocations: 143 MB / 1.229 GB, free: 85.37 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1916/0.4618, allocations: 150.6 MB / 1.376 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/0.4621, allocations: 75.94 kB / 1.376 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01167/0.4738, allocations: 3.988 MB / 1.38 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.244e-06/0.4738, allocations: 4 kB / 1.38 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.314e-05/0.4739, allocations: 4 kB / 1.38 GB, free: 10.48 MB / 0.8855 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.0007355/0.4746, allocations: 494.9 kB / 1.381 GB, free: 9.93 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.4747, allocations: 12.56 kB / 1.381 GB, free: 9.918 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.159e-05/0.4747, allocations: 50.53 kB / 1.381 GB, free: 9.859 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.631e-05/0.4748, allocations: 19.91 kB / 1.381 GB, free: 9.84 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.4749, allocations: 171 kB / 1.381 GB, free: 9.633 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.96e-05/0.475, allocations: 23.98 kB / 1.381 GB, free: 9.609 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.308e-05/0.4751, allocations: 35.98 kB / 1.381 GB, free: 9.574 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003412/0.4754, allocations: 215.1 kB / 1.381 GB, free: 9.359 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.605e-06/0.4754, allocations: 0 / 1.381 GB, free: 9.359 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.282e-05/0.4755, allocations: 19.92 kB / 1.381 GB, free: 9.34 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.4755, allocations: 4 kB / 1.381 GB, free: 9.336 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.4757, allocations: 96.16 kB / 1.381 GB, free: 9.242 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007569/0.4764, allocations: 0.5509 MB / 1.382 GB, free: 8.641 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004425/0.4769, allocations: 298.6 kB / 1.382 GB, free: 8.34 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.039e-05/0.4769, allocations: 4 kB / 1.382 GB, free: 8.336 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007174/0.4776, allocations: 0.5226 MB / 1.383 GB, free: 7.809 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=48): time 1.783e-06/0.4776, allocations: 0 / 1.383 GB, free: 7.809 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48): time 0.001031/0.4787, allocations: 0.6199 MB / 1.383 GB, free: 7.18 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.4787, allocations: 59.84 kB / 1.383 GB, free: 7.109 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.4788, allocations: 128.9 kB / 1.384 GB, free: 6.977 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.693e-05/0.4789, allocations: 61.62 kB / 1.384 GB, free: 6.91 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.589e-05/0.479, allocations: 101 kB / 1.384 GB, free: 6.809 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 9.922e-05/0.4791, allocations: 106.9 kB / 1.384 GB, free: 6.703 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-05/0.4792, allocations: 12 kB / 1.384 GB, free: 6.691 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.4793, allocations: 343.1 kB / 1.384 GB, free: 6.348 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003346/0.4796, allocations: 173.1 kB / 1.384 GB, free: 6.176 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003922/0.48, allocations: 280 kB / 1.385 GB, free: 5.875 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003121/0.4804, allocations: 193.6 kB / 1.385 GB, free: 5.672 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.4804, allocations: 0 / 1.385 GB, free: 5.672 MB / 0.8855 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008595/0.4812, allocations: 0.5565 MB / 1.385 GB, free: 5.098 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.769e-05/0.4813, allocations: 68.64 kB / 1.385 GB, free: 5.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.4813, allocations: 8.312 kB / 1.385 GB, free: 5.012 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.4813, allocations: 4 kB / 1.385 GB, free: 5.008 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.236e-05/0.4814, allocations: 27.86 kB / 1.385 GB, free: 4.98 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.4814, allocations: 7.984 kB / 1.385 GB, free: 4.973 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004089/0.4818, allocations: 83.94 kB / 1.386 GB, free: 4.891 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-05/0.4819, allocations: 27.98 kB / 1.386 GB, free: 4.863 MB / 0.8855 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 () * Number of clocked 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.0001836/0.4821, allocations: 178.8 kB / 1.386 GB, free: 4.68 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.783e-05/0.4822, allocations: 27.81 kB / 1.386 GB, free: 4.652 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.469e-05/0.4822, allocations: 34.28 kB / 1.386 GB, free: 4.621 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.4823, allocations: 4 kB / 1.386 GB, free: 4.617 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.4823, allocations: 4 kB / 1.386 GB, free: 4.613 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.4823, allocations: 3.984 kB / 1.386 GB, free: 4.609 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.4834, allocations: 0.8919 MB / 1.387 GB, free: 3.664 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.4834, allocations: 0 / 1.387 GB, free: 3.664 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.217e-05/0.4834, allocations: 15.92 kB / 1.387 GB, free: 3.648 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.4834, allocations: 7.938 kB / 1.387 GB, free: 3.641 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.855e-05/0.4835, allocations: 19.97 kB / 1.387 GB, free: 3.621 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.4835, allocations: 4 kB / 1.387 GB, free: 3.617 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.4835, allocations: 0 / 1.387 GB, free: 3.617 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000717/0.4842, allocations: 0.5817 MB / 1.387 GB, free: 3.016 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.203e-05/0.4843, allocations: 96.91 kB / 1.387 GB, free: 2.902 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.973e-05/0.4844, allocations: 19.98 kB / 1.387 GB, free: 2.883 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.945e-05/0.4845, allocations: 12 kB / 1.387 GB, free: 2.871 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.4846, allocations: 84.27 kB / 1.387 GB, free: 2.789 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-05/0.4847, allocations: 31.97 kB / 1.387 GB, free: 2.758 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.345e-05/0.4847, allocations: 95.27 kB / 1.388 GB, free: 2.664 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4848, allocations: 0 / 1.388 GB, free: 2.664 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004016/0.4852, allocations: 104 kB / 1.388 GB, free: 2.562 MB / 0.8855 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) * Number of clocked states: 0 () * 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.00108/0.4862, allocations: 1.163 MB / 1.389 GB, free: 1.375 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0007844/0.487, allocations: 0.594 MB / 1.389 GB, free: 0.7578 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4871, allocations: 0 / 1.389 GB, free: 0.7578 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003539/0.4874, allocations: 302.4 kB / 1.39 GB, free: 472 kB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.4877, allocations: 28.66 kB / 1.39 GB, free: 444 kB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001703/0.4894, allocations: 2.339 MB / 1.392 GB, free: 14 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.4897, allocations: 0.7416 MB / 1.393 GB, free: 13.23 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001155/0.4898, allocations: 30.97 kB / 1.393 GB, free: 13.2 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.49, allocations: 83.39 kB / 1.393 GB, free: 13.11 MB / 0.9011 GB Notification: Performance of SimCode: time 4.41e-07/0.49, allocations: 0 / 1.393 GB, free: 13.11 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0176/0.5076, allocations: 5.895 MB / 1.399 GB, free: 7.367 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000219/0.5078, allocations: 185.5 kB / 1.399 GB, free: 7.129 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/2.394, allocations: 0 / 1.399 GB, free: 7.129 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat does not exist to compare? outputFormat=mat