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.0009386/0.0009389, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001059/0.001059, allocations: 168.7 kB / 15.95 MB, free: 204 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.467/1.467, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.788/2.788, allocations: 409.4 MB / 0.684 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005246/0.000525, allocations: 8 kB / 0.8378 GB, free: 6.508 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7853/0.7859, allocations: 146.8 MB / 0.9811 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0008674/0.7868, allocations: 397.1 kB / 0.9815 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001384/0.7882, allocations: 1.045 MB / 0.9825 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.515e-05/0.7882, allocations: 4 kB / 0.9825 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.702e-05/0.7882, allocations: 0 / 0.9825 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.076e-05/0.7883, allocations: 3.938 kB / 0.9825 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000233/0.7886, allocations: 35.89 kB / 0.9826 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.917e-05/0.7886, allocations: 43.86 kB / 0.9826 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.141e-05/0.7887, allocations: 15.98 kB / 0.9826 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.824e-05/0.7888, allocations: 19.92 kB / 0.9827 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.649e-05/0.7889, allocations: 19.91 kB / 0.9827 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.323e-05/0.7889, allocations: 4 kB / 0.9827 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.695e-05/0.789, allocations: 11.98 kB / 0.9827 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.606e-05/0.789, allocations: 7.984 kB / 0.9827 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.665e-05/0.7891, allocations: 33.64 kB / 0.9827 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 9.415e-05/0.7892, allocations: 47.84 kB / 0.9828 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.7892, allocations: 0 / 0.9828 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.575e-06/0.7892, allocations: 0 / 0.9828 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.7892, allocations: 0 / 0.9828 GB, free: 4.586 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.0006096/0.7898, allocations: 365.5 kB / 0.9831 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.7899, allocations: 12.03 kB / 0.9831 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.811e-05/0.7899, allocations: 38.56 kB / 0.9832 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.895e-05/0.7899, allocations: 7.906 kB / 0.9832 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.7901, allocations: 167 kB / 0.9833 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-06/0.7901, allocations: 8 kB / 0.9833 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.522e-05/0.7901, allocations: 4 kB / 0.9834 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.7903, allocations: 69.62 kB / 0.9834 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.7903, allocations: 7.922 kB / 0.9834 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.265e-06/0.7903, allocations: 0 / 0.9834 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.7903, allocations: 4 kB / 0.9834 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001926/0.7905, allocations: 47.97 kB / 0.9835 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004629/0.791, allocations: 284.8 kB / 0.9837 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001587/0.7912, allocations: 66.5 kB / 0.9838 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.987e-05/0.7913, allocations: 40.89 kB / 0.9839 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.7913, allocations: 0 / 0.9839 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002137/0.7915, allocations: 83.38 kB / 0.9839 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.7916, allocations: 0 / 0.9839 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004067/0.792, allocations: 137.6 kB / 0.9841 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.188e-05/0.792, allocations: 55.41 kB / 0.9841 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.759e-05/0.7921, allocations: 101.8 kB / 0.9842 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.7921, allocations: 33.64 kB / 0.9842 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.7923, allocations: 91.98 kB / 0.9843 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.7923, allocations: 19.86 kB / 0.9843 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.533e-06/0.7923, allocations: 4 kB / 0.9844 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.7924, allocations: 314.8 kB / 0.9847 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.7925, allocations: 35.97 kB / 0.9847 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00012/0.7927, allocations: 60.27 kB / 0.9847 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001013/0.7928, allocations: 35.98 kB / 0.9848 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.7928, allocations: 0 / 0.9848 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002651/0.793, allocations: 137.4 kB / 0.9849 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.7931, allocations: 5.094 kB / 0.9849 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.7931, allocations: 192 / 0.9849 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.7931, allocations: 4 kB / 0.9849 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.7932, allocations: 23.92 kB / 0.9849 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.7932, allocations: 4.25 kB / 0.9849 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.971e-05/0.7933, allocations: 20.11 kB / 0.985 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.7933, allocations: 4 kB / 0.985 GB, free: 2.094 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 9.403e-05/0.7934, allocations: 121.8 kB / 0.9851 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.468e-05/0.7935, allocations: 7.953 kB / 0.9851 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003043/0.7938, allocations: 125.9 kB / 0.9852 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.7938, allocations: 0 / 0.9852 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.7938, allocations: 7.984 kB / 0.9852 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.7938, allocations: 0 / 0.9852 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000506/0.7943, allocations: 370.4 kB / 0.9856 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.7943, allocations: 256 / 0.9856 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.711e-05/0.7944, allocations: 15.98 kB / 0.9856 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.7944, allocations: 4 kB / 0.9856 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.7944, allocations: 4 kB / 0.9856 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.7944, allocations: 3.938 kB / 0.9856 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.7944, allocations: 0 / 0.9856 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003254/0.7948, allocations: 207.5 kB / 0.9858 GB, free: 1.152 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.965e-05/0.7948, allocations: 81.02 kB / 0.9859 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.7949, allocations: 4 kB / 0.9859 GB, free: 1.051 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.572e-05/0.795, allocations: 15.98 kB / 0.9859 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.256e-05/0.795, allocations: 7.984 kB / 0.9859 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.795, allocations: 4 kB / 0.9859 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.185e-05/0.7951, allocations: 83.28 kB / 0.986 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7951, allocations: 0 / 0.986 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002518/0.7953, allocations: 16 kB / 0.986 GB, free: 0.9258 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.0006369/0.796, allocations: 0.7514 MB / 0.9867 GB, free: 152 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002307/0.7962, allocations: 75.89 kB / 0.9868 GB, free: 76 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.7962, allocations: 0 / 0.9868 GB, free: 76 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.7963, allocations: 43.97 kB / 0.9868 GB, free: 32 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.7966, allocations: 5.797 kB / 0.9869 GB, free: 28 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009448/0.7976, allocations: 0.5257 MB / 0.9874 GB, free: 15.44 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002534/0.7978, allocations: 0.6865 MB / 0.988 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.43e-05/0.7979, allocations: 4.188 kB / 0.988 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.258e-05/0.7979, allocations: 19.42 kB / 0.9881 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of SimCode: time 5.41e-07/0.7979, allocations: 0 / 0.9881 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01154/0.8095, allocations: 1.536 MB / 0.9896 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000303/0.8098, allocations: 207.7 kB / 0.9898 GB, free: 13.07 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.823/2.633, allocations: 0 / 0.9898 GB, free: 13.07 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