Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",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.001038/0.001039, allocations: 99.86 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.001099/0.001099, allocations: 177.3 kB / 15.94 MB, free: 228 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.621/1.621, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 3.071/3.071, allocations: 409.2 MB / 0.6838 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003462/0.0003463, allocations: 12 kB / 0.8375 GB, free: 6.566 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8615/0.8619, allocations: 146.8 MB / 0.9809 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0008298/0.8627, allocations: 393.1 kB / 0.9813 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001211/0.864, allocations: 1.041 MB / 0.9823 GB, free: 4.883 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.807e-05/0.864, allocations: 4 kB / 0.9823 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.273e-05/0.8641, allocations: 11.92 kB / 0.9823 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.444e-05/0.8641, allocations: 7.984 kB / 0.9823 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.8644, allocations: 23.92 kB / 0.9823 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.196e-05/0.8645, allocations: 35.89 kB / 0.9823 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.8646, allocations: 15.97 kB / 0.9824 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.902e-05/0.8647, allocations: 15.92 kB / 0.9824 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.549e-05/0.8648, allocations: 23.91 kB / 0.9824 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.498e-05/0.8648, allocations: 0 / 0.9824 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.663e-05/0.8649, allocations: 19.98 kB / 0.9824 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.209e-05/0.865, allocations: 11.98 kB / 0.9824 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.468e-05/0.865, allocations: 25.7 kB / 0.9825 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001189/0.8651, allocations: 39.91 kB / 0.9825 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.8651, allocations: 0 / 0.9825 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.176e-06/0.8652, allocations: 0 / 0.9825 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.8652, allocations: 3.938 kB / 0.9825 GB, free: 4.641 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000622/0.8658, allocations: 373.4 kB / 0.9829 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.8658, allocations: 15.97 kB / 0.9829 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.934e-05/0.8659, allocations: 34.56 kB / 0.9829 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.13e-05/0.8659, allocations: 7.906 kB / 0.9829 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/0.8661, allocations: 163.1 kB / 0.9831 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.8661, allocations: 4 kB / 0.9831 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.8661, allocations: 0 / 0.9831 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002145/0.8664, allocations: 77.61 kB / 0.9831 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.8664, allocations: 0 / 0.9831 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.8664, allocations: 0 / 0.9831 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.8664, allocations: 4 kB / 0.9831 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001982/0.8666, allocations: 55.89 kB / 0.9832 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006894/0.8673, allocations: 276.8 kB / 0.9835 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001765/0.8675, allocations: 66.5 kB / 0.9835 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.646e-05/0.8675, allocations: 3.984 kB / 0.9835 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002426/0.8678, allocations: 87.52 kB / 0.9836 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.8678, allocations: 0 / 0.9836 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004318/0.8682, allocations: 133.6 kB / 0.9837 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001923/0.8684, allocations: 59.39 kB / 0.9838 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.8685, allocations: 102 kB / 0.9839 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/0.8686, allocations: 25.7 kB / 0.9839 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.801e-05/0.8687, allocations: 95.97 kB / 0.984 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.8687, allocations: 15.81 kB / 0.984 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-06/0.8687, allocations: 4 kB / 0.984 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001716/0.8689, allocations: 318.8 kB / 0.9843 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.869, allocations: 27.98 kB / 0.9844 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.8692, allocations: 72.2 kB / 0.9844 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001574/0.8693, allocations: 35.97 kB / 0.9845 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.8693, allocations: 0 / 0.9845 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002998/0.8696, allocations: 129.4 kB / 0.9846 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.8697, allocations: 7.984 kB / 0.9846 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.8697, allocations: 8.062 kB / 0.9846 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.8697, allocations: 0 / 0.9846 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.8698, allocations: 32.05 kB / 0.9846 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.8699, allocations: 0 / 0.9846 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.005e-05/0.8699, allocations: 8 kB / 0.9846 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.87, allocations: 7.984 kB / 0.9846 GB, free: 2.191 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: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001324/0.8701, allocations: 121.9 kB / 0.9848 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.409e-05/0.8701, allocations: 7.953 kB / 0.9848 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003343/0.8705, allocations: 121.9 kB / 0.9849 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.902e-06/0.8705, allocations: 4 kB / 0.9849 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.8705, allocations: 0 / 0.9849 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.8705, allocations: 48 / 0.9849 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006442/0.8712, allocations: 382.3 kB / 0.9853 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.8712, allocations: 0 / 0.9853 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.874e-05/0.8713, allocations: 15.98 kB / 0.9853 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.8713, allocations: 0 / 0.9853 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.8713, allocations: 0 / 0.9853 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.8713, allocations: 3.984 kB / 0.9853 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.8713, allocations: 8 kB / 0.9853 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003635/0.8717, allocations: 203.9 kB / 0.9855 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.873e-05/0.8718, allocations: 81.02 kB / 0.9856 GB, free: 1.152 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.8718, allocations: 7.984 kB / 0.9856 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.36e-05/0.8719, allocations: 8 kB / 0.9856 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.61e-05/0.872, allocations: 7.984 kB / 0.9856 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.872, allocations: 4 kB / 0.9856 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.468e-05/0.8721, allocations: 87.27 kB / 0.9857 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8721, allocations: 0 / 0.9857 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002512/0.8723, allocations: 16 kB / 0.9857 GB, free: 1.023 MB / 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0006829/0.873, allocations: 0.7476 MB / 0.9864 GB, free: 256 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002551/0.8733, allocations: 83.88 kB / 0.9865 GB, free: 172 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.8733, allocations: 4 kB / 0.9865 GB, free: 168 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.8734, allocations: 36.23 kB / 0.9865 GB, free: 132 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001967/0.8736, allocations: 5.562 kB / 0.9865 GB, free: 128 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001032/0.8747, allocations: 0.9788 MB / 0.9875 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003677/0.8751, allocations: 0.6887 MB / 0.9882 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.754e-05/0.8751, allocations: 8.188 kB / 0.9882 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.431e-05/0.8752, allocations: 11.44 kB / 0.9882 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of SimCode: time 2.3e-07/0.8752, allocations: 0 / 0.9882 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03472/0.9099, allocations: 1.527 MB / 0.9897 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/0.9102, allocations: 192.4 kB / 0.9899 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.513/3.423, allocations: 0 / 0.9899 GB, free: 12.73 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat does not exist to compare? outputFormat=mat