Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.23/2.23, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.0009859/0.000986, allocations: 184.8 kB / 487.4 MB, free: 5.043 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.534/1.534, allocations: 221.5 MB / 0.7824 GB, free: 1.008 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 102.1 kB / 0.9219 GB, free: 2.242 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.343e-05/2.357e-05, allocations: 6.812 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.356, allocations: 142.3 MB / 1.206 GB, free: 43.99 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.059/1.415, allocations: 148.5 MB / 1.351 GB, free: 18.48 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/1.415, allocations: 69.34 kB / 1.351 GB, free: 18.48 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004011/1.419, allocations: 1.114 MB / 1.352 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.773e-06/1.419, allocations: 1.344 kB / 1.352 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.554e-06/1.419, allocations: 0 / 1.352 GB, free: 34.13 MB / 0.8386 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.0004954/1.419, allocations: 370.6 kB / 1.352 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/1.42, allocations: 13.59 kB / 1.353 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.72e-05/1.42, allocations: 3.281 kB / 1.353 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.743e-05/1.42, allocations: 166.8 kB / 1.353 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/1.42, allocations: 1.828 kB / 1.353 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.906e-05/1.42, allocations: 3.234 kB / 1.353 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.675e-05/1.42, allocations: 18.2 kB / 1.353 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.88e-05/1.42, allocations: 51.48 kB / 1.353 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/1.42, allocations: 0 / 1.353 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/1.42, allocations: 0.6094 kB / 1.353 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/1.42, allocations: 1.938 kB / 1.353 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005027/1.421, allocations: 279.6 kB / 1.353 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.918e-05/1.421, allocations: 40.2 kB / 1.353 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.84e-05/1.421, allocations: 21.16 kB / 1.353 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/1.421, allocations: 5.344 kB / 1.353 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001201/1.421, allocations: 60.59 kB / 1.353 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/1.421, allocations: 0 / 1.353 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0001918/1.421, allocations: 79.02 kB / 1.353 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.988e-05/1.421, allocations: 51.41 kB / 1.353 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.133e-05/1.421, allocations: 97.45 kB / 1.353 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/1.421, allocations: 25.7 kB / 1.353 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.117e-05/1.421, allocations: 93.17 kB / 1.353 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/1.421, allocations: 20.84 kB / 1.353 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-06/1.421, allocations: 0 / 1.353 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001091/1.421, allocations: 316.4 kB / 1.354 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.752e-05/1.421, allocations: 14.92 kB / 1.354 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.334e-05/1.421, allocations: 44.98 kB / 1.354 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/1.422, allocations: 33.14 kB / 1.354 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/1.422, allocations: 0 / 1.354 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001787/1.422, allocations: 89.38 kB / 1.354 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/1.422, allocations: 8.391 kB / 1.354 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/1.422, allocations: 0 / 1.354 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/1.422, allocations: 3.922 kB / 1.354 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/1.422, allocations: 33.23 kB / 1.354 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/1.422, allocations: 4.734 kB / 1.354 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.216e-05/1.422, allocations: 9.859 kB / 1.354 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/1.422, allocations: 3.844 kB / 1.354 GB, free: 32.47 MB / 0.8386 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 () * 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 7.751e-05/1.422, allocations: 110.5 kB / 1.354 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.062e-05/1.422, allocations: 0.5156 kB / 1.354 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001458/1.422, allocations: 79.64 kB / 1.354 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/1.422, allocations: 0 / 1.354 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/1.422, allocations: 0.7969 kB / 1.354 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/1.422, allocations: 3.938 kB / 1.354 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002388/1.423, allocations: 317.2 kB / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/1.423, allocations: 0 / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.361e-05/1.423, allocations: 14.95 kB / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/1.423, allocations: 0 / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/1.423, allocations: 4.75 kB / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/1.423, allocations: 0 / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/1.423, allocations: 2.422 kB / 1.355 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/1.423, allocations: 181.8 kB / 1.355 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.629e-05/1.423, allocations: 85.66 kB / 1.355 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/1.423, allocations: 4.578 kB / 1.355 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/1.423, allocations: 15.27 kB / 1.355 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.229e-05/1.423, allocations: 2.859 kB / 1.355 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/1.423, allocations: 3.812 kB / 1.355 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.988e-05/1.423, allocations: 88.17 kB / 1.355 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.423, allocations: 0 / 1.355 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000236/1.423, allocations: 16.14 kB / 1.355 GB, free: 31.71 MB / 0.8386 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) * 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.000152/1.424, allocations: 111.7 kB / 1.355 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001064/1.424, allocations: 43.06 kB / 1.355 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/1.424, allocations: 4.25 kB / 1.355 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.069e-05/1.424, allocations: 20.05 kB / 1.355 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001839/1.424, allocations: 14.59 kB / 1.355 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002184/1.424, allocations: 82.06 kB / 1.355 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/1.424, allocations: 0.6864 MB / 1.356 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.381e-05/1.424, allocations: 9.312 kB / 1.356 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.343e-05/1.424, allocations: 16.11 kB / 1.356 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.424, allocations: 0 / 1.356 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of Templates: time 0.002828/1.427, allocations: 0.6669 MB / 1.357 GB, free: 30.75 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches