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/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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.266/2.266, allocations: 390.3 MB / 402.8 MB, free: 6.68 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.001154/0.001154, allocations: 176.5 kB / 496.1 MB, free: 12.89 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.684/1.684, allocations: 221.3 MB / 0.7915 GB, free: 5.406 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.0009299/0.0009301, allocations: 87.95 kB / 0.9317 GB, free: 5.719 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.832e-05/3.835e-05, allocations: 8 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.3478, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.171/1.519, allocations: 150 MB / 1.365 GB, free: 4.098 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/1.52, allocations: 72.61 kB / 1.365 GB, free: 4.059 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003393/1.523, allocations: 1.119 MB / 1.366 GB, free: 3.059 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.713e-06/1.523, allocations: 0 / 1.366 GB, free: 3.059 MB / 0.823 GB Notification: Performance of Transformations before backend: time 9.668e-06/1.523, allocations: 4 kB / 1.366 GB, free: 3.055 MB / 0.823 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.000482/1.523, allocations: 362.3 kB / 1.367 GB, free: 2.66 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/1.524, allocations: 12.03 kB / 1.367 GB, free: 2.648 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.112e-05/1.524, allocations: 11.84 kB / 1.367 GB, free: 2.641 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001357/1.524, allocations: 163 kB / 1.367 GB, free: 2.441 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/1.524, allocations: 7.688 kB / 1.367 GB, free: 2.438 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/1.524, allocations: 0 / 1.367 GB, free: 2.438 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001403/1.524, allocations: 57.36 kB / 1.367 GB, free: 2.383 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/1.524, allocations: 0.875 kB / 1.367 GB, free: 2.383 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/1.524, allocations: 0 / 1.367 GB, free: 2.383 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/1.524, allocations: 3.984 kB / 1.367 GB, free: 2.379 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.553e-05/1.524, allocations: 22.95 kB / 1.367 GB, free: 2.363 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005587/1.525, allocations: 303.7 kB / 1.367 GB, free: 2.035 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000105/1.525, allocations: 41.75 kB / 1.367 GB, free: 1.992 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.869e-05/1.525, allocations: 23.86 kB / 1.367 GB, free: 1.973 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/1.525, allocations: 4 kB / 1.367 GB, free: 1.969 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001286/1.525, allocations: 68.88 kB / 1.367 GB, free: 1.898 MB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/1.525, allocations: 0 / 1.367 GB, free: 1.898 MB / 0.823 GB Notification: Performance of matching and sorting (n=7): time 0.0002072/1.525, allocations: 73.44 kB / 1.367 GB, free: 1.828 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.96e-05/1.525, allocations: 62.39 kB / 1.368 GB, free: 1.758 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.306e-05/1.525, allocations: 96.62 kB / 1.368 GB, free: 1.66 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/1.525, allocations: 25.7 kB / 1.368 GB, free: 1.629 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 5.121e-05/1.525, allocations: 91.42 kB / 1.368 GB, free: 1.539 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 3.292e-05/1.525, allocations: 26.67 kB / 1.368 GB, free: 1.516 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-06/1.525, allocations: 0 / 1.368 GB, free: 1.516 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001333/1.526, allocations: 313.8 kB / 1.368 GB, free: 1.203 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.57e-05/1.526, allocations: 15.31 kB / 1.368 GB, free: 1.191 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.613e-05/1.526, allocations: 51.03 kB / 1.368 GB, free: 1.133 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.705e-05/1.526, allocations: 23.5 kB / 1.368 GB, free: 1.117 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/1.526, allocations: 0 / 1.368 GB, free: 1.117 MB / 0.823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001496/1.526, allocations: 88.98 kB / 1.368 GB, free: 1.035 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/1.526, allocations: 4 kB / 1.368 GB, free: 1.031 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/1.526, allocations: 0 / 1.368 GB, free: 1.031 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/1.526, allocations: 4 kB / 1.368 GB, free: 1.027 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/1.526, allocations: 28.05 kB / 1.368 GB, free: 1 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/1.526, allocations: 3.953 kB / 1.368 GB, free: 0.9961 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.598e-05/1.526, allocations: 19.77 kB / 1.368 GB, free: 0.9805 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/1.526, allocations: 4 kB / 1.368 GB, free: 0.9766 MB / 0.823 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.87e-05/1.526, allocations: 113.3 kB / 1.368 GB, free: 0.8633 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.005e-05/1.526, allocations: 0 / 1.368 GB, free: 0.8633 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001879/1.526, allocations: 90.59 kB / 1.369 GB, free: 0.7773 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/1.527, allocations: 0 / 1.369 GB, free: 0.7773 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/1.527, allocations: 0 / 1.369 GB, free: 0.7773 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/1.527, allocations: 3.953 kB / 1.369 GB, free: 0.7734 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003393/1.527, allocations: 337.9 kB / 1.369 GB, free: 420 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/1.527, allocations: 0 / 1.369 GB, free: 420 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.812e-05/1.527, allocations: 16.86 kB / 1.369 GB, free: 404 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/1.527, allocations: 0 / 1.369 GB, free: 404 kB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/1.527, allocations: 4 kB / 1.369 GB, free: 400 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/1.527, allocations: 3.953 kB / 1.369 GB, free: 396 kB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/1.527, allocations: 0 / 1.369 GB, free: 396 kB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001784/1.527, allocations: 175.3 kB / 1.369 GB, free: 220 kB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.488e-05/1.527, allocations: 88.95 kB / 1.369 GB, free: 112 kB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/1.527, allocations: 256 / 1.369 GB, free: 112 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/1.527, allocations: 15.98 kB / 1.369 GB, free: 96 kB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/1.527, allocations: 15.94 kB / 1.369 GB, free: 80 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.878e-06/1.527, allocations: 3.125 kB / 1.369 GB, free: 80 kB / 0.823 GB Notification: Performance of sorting global known variables: time 6.912e-05/1.528, allocations: 83.33 kB / 1.369 GB, free: 15.99 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.528, allocations: 0 / 1.369 GB, free: 15.99 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002338/1.528, allocations: 19.69 kB / 1.369 GB, free: 15.98 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.0002049/1.528, allocations: 111.2 kB / 1.369 GB, free: 15.86 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001349/1.528, allocations: 51.75 kB / 1.369 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/1.528, allocations: 4.25 kB / 1.369 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.486e-05/1.528, allocations: 29.47 kB / 1.369 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001759/1.528, allocations: 5.031 kB / 1.369 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002601/1.529, allocations: 90.8 kB / 1.37 GB, free: 15.69 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/1.529, allocations: 0.6887 MB / 1.37 GB, free: 14.97 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.562e-05/1.529, allocations: 4.188 kB / 1.37 GB, free: 14.97 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.363e-05/1.529, allocations: 15.44 kB / 1.37 GB, free: 14.96 MB / 0.8386 GB Notification: Performance of SimCode: time 4.11e-07/1.529, allocations: 0 / 1.37 GB, free: 14.96 MB / 0.8386 GB Notification: Performance of Templates: time 0.002913/1.532, allocations: 0.699 MB / 1.371 GB, free: 14.27 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches