Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001613/0.001613, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.812/1.812, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.986/2.986, allocations: 409.2 MB / 0.6838 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005899/0.0005902, allocations: 12 kB / 0.8375 GB, free: 6.547 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.156/1.156, allocations: 146.8 MB / 0.9809 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.001287/1.158, allocations: 483.3 kB / 0.9813 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002206/1.16, allocations: 1.117 MB / 0.9824 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.041e-05/1.16, allocations: 0 / 0.9824 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.747e-05/1.16, allocations: 0 / 0.9824 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001275/1.16, allocations: 11.92 kB / 0.9824 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007285/1.161, allocations: 113.4 kB / 0.9825 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001294/1.161, allocations: 59.86 kB / 0.9826 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/1.161, allocations: 19.98 kB / 0.9826 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001417/1.161, allocations: 43.84 kB / 0.9827 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/1.161, allocations: 31.89 kB / 0.9827 GB, free: 4.43 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.763e-05/1.162, allocations: 4 kB / 0.9827 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.262e-05/1.162, allocations: 15.98 kB / 0.9827 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.384e-05/1.162, allocations: 19.91 kB / 0.9827 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.181e-05/1.162, allocations: 33.7 kB / 0.9828 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001934/1.162, allocations: 75.77 kB / 0.9828 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 9.518e-06/1.162, allocations: 4 kB / 0.9828 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.748e-06/1.162, allocations: 0 / 0.9828 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.346e-06/1.162, allocations: 0 / 0.9828 GB, free: 4.273 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0008372/1.163, allocations: 399.1 kB / 0.9832 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.78e-05/1.163, allocations: 12.03 kB / 0.9832 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.237e-05/1.163, allocations: 34.56 kB / 0.9833 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.482e-05/1.163, allocations: 7.906 kB / 0.9833 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002213/1.163, allocations: 178.9 kB / 0.9834 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/1.163, allocations: 7.984 kB / 0.9834 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.953e-05/1.163, allocations: 8 kB / 0.9835 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000237/1.164, allocations: 69.62 kB / 0.9835 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/1.164, allocations: 0 / 0.9835 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/1.164, allocations: 7.984 kB / 0.9835 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/1.164, allocations: 0 / 0.9835 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000204/1.164, allocations: 51.97 kB / 0.9836 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006686/1.165, allocations: 332.6 kB / 0.9839 GB, free: 3.031 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/1.165, allocations: 66.56 kB / 0.984 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.216e-05/1.165, allocations: 0 / 0.984 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002436/1.165, allocations: 95.55 kB / 0.984 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 2.775e-06/1.165, allocations: 4 kB / 0.9841 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0004721/1.166, allocations: 157.5 kB / 0.9842 GB, free: 2.688 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.063e-05/1.166, allocations: 51.41 kB / 0.9843 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/1.166, allocations: 125.8 kB / 0.9844 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.951e-05/1.166, allocations: 33.7 kB / 0.9844 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000109/1.166, allocations: 88.14 kB / 0.9845 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.285e-05/1.166, allocations: 19.73 kB / 0.9845 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.425e-05/1.166, allocations: 4 kB / 0.9845 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001562/1.166, allocations: 318.8 kB / 0.9848 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/1.166, allocations: 59.95 kB / 0.9849 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/1.167, allocations: 88.27 kB / 0.985 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/1.167, allocations: 89.61 kB / 0.985 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/1.167, allocations: 0 / 0.985 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004987/1.167, allocations: 223.2 kB / 0.9853 GB, free: 1.535 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.129e-05/1.167, allocations: 37.69 kB / 0.9853 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/1.167, allocations: 4 kB / 0.9853 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/1.167, allocations: 8 kB / 0.9853 GB, free: 1.48 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/1.167, allocations: 11.98 kB / 0.9853 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/1.167, allocations: 4 kB / 0.9853 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00024/1.168, allocations: 57.58 kB / 0.9854 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/1.168, allocations: 4 kB / 0.9854 GB, free: 1.406 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul.y,booPul.y,$PRE.change.u,change.u,change.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001194/1.168, allocations: 127 kB / 0.9855 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.575e-05/1.168, allocations: 11.89 kB / 0.9855 GB, free: 1.262 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.541e-05/1.168, allocations: 12.36 kB / 0.9855 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/1.168, allocations: 4 kB / 0.9855 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/1.168, allocations: 4 kB / 0.9855 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/1.168, allocations: 0 / 0.9855 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005064/1.168, allocations: 390.4 kB / 0.9859 GB, free: 0.8008 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/1.169, allocations: 4 kB / 0.9859 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.669e-05/1.169, allocations: 11.94 kB / 0.9859 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/1.169, allocations: 0 / 0.9859 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/1.169, allocations: 3.984 kB / 0.9859 GB, free: 0.7812 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/1.169, allocations: 0 / 0.9859 GB, free: 0.7812 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/1.169, allocations: 3.938 kB / 0.9859 GB, free: 0.7773 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003183/1.169, allocations: 223.8 kB / 0.9861 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.241e-05/1.169, allocations: 85.05 kB / 0.9862 GB, free: 452 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/1.169, allocations: 4 kB / 0.9862 GB, free: 448 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.021e-05/1.169, allocations: 7.984 kB / 0.9862 GB, free: 440 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.78e-05/1.169, allocations: 4 kB / 0.9862 GB, free: 436 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/1.169, allocations: 11.98 kB / 0.9862 GB, free: 424 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.378e-05/1.169, allocations: 91.28 kB / 0.9863 GB, free: 332 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/1.169, allocations: 0 / 0.9863 GB, free: 332 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002636/1.17, allocations: 23.98 kB / 0.9864 GB, free: 308 kB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (change.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,change.u,triggeredSampler.y) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000711/1.17, allocations: 0.7631 MB / 0.9871 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004143/1.171, allocations: 187.3 kB / 0.9873 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.171, allocations: 0 / 0.9873 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.00013/1.171, allocations: 47.91 kB / 0.9873 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/1.171, allocations: 13.72 kB / 0.9873 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/1.172, allocations: 0.9955 MB / 0.9883 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004951/1.173, allocations: 0.6887 MB / 0.989 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.126e-05/1.173, allocations: 7.938 kB / 0.989 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.434e-05/1.173, allocations: 23.42 kB / 0.989 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of SimCode: time 9.31e-07/1.173, allocations: 4 kB / 0.989 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01999/1.193, allocations: 2.194 MB / 0.9912 GB, free: 11.39 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003639/1.193, allocations: 182.2 kB / 0.9913 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.375/3.569, allocations: 0 / 0.9913 GB, free: 11.16 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat does not exist to compare? outputFormat=mat