Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_10_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_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 107 kB / 16.36 MB, free: 6.336 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.001923/0.001923, allocations: 195.3 kB / 17.29 MB, free: 5.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.495/2.495, allocations: 437.1 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 63.12 kB / 0.8707 GB, free: 1.445 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3413, allocations: 151.7 MB / 1.019 GB, free: 9.852 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002164/0.3435, allocations: 0.6753 MB / 1.019 GB, free: 9.172 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001461/0.3449, allocations: 1.06 MB / 1.02 GB, free: 8.098 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.826e-05/0.345, allocations: 7.938 kB / 1.02 GB, free: 8.09 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.366e-05/0.3451, allocations: 0 / 1.02 GB, free: 8.09 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.981e-05/0.3451, allocations: 11.81 kB / 1.021 GB, free: 8.078 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.3455, allocations: 43.89 kB / 1.021 GB, free: 8.035 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001084/0.3456, allocations: 47.84 kB / 1.021 GB, free: 7.988 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.3457, allocations: 11.98 kB / 1.021 GB, free: 7.977 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.463e-05/0.3458, allocations: 19.92 kB / 1.021 GB, free: 7.957 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.385e-05/0.3459, allocations: 27.91 kB / 1.021 GB, free: 7.93 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.578e-05/0.3459, allocations: 4 kB / 1.021 GB, free: 7.926 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.925e-05/0.3459, allocations: 23.98 kB / 1.021 GB, free: 7.902 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.033e-05/0.346, allocations: 4 kB / 1.021 GB, free: 7.898 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.636e-05/0.346, allocations: 31.84 kB / 1.021 GB, free: 7.867 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000156/0.3462, allocations: 55.78 kB / 1.021 GB, free: 7.812 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.3462, allocations: 3.938 kB / 1.021 GB, free: 7.809 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.455e-06/0.3462, allocations: 0 / 1.021 GB, free: 7.809 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.3462, allocations: 0 / 1.021 GB, free: 7.809 MB / 0.795 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.0006196/0.3468, allocations: 375.3 kB / 1.021 GB, free: 7.391 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.3469, allocations: 8.625 kB / 1.021 GB, free: 7.383 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.619e-05/0.3469, allocations: 4.938 kB / 1.021 GB, free: 7.379 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000126/0.3471, allocations: 168.2 kB / 1.021 GB, free: 7.176 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.3471, allocations: 8.375 kB / 1.021 GB, free: 7.168 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.063e-05/0.3471, allocations: 8.359 kB / 1.021 GB, free: 7.16 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002032/0.3473, allocations: 58.23 kB / 1.021 GB, free: 7.098 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.3473, allocations: 192 / 1.021 GB, free: 7.098 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.3474, allocations: 3.938 kB / 1.021 GB, free: 7.094 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.3474, allocations: 8 kB / 1.021 GB, free: 7.086 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.3475, allocations: 47.89 kB / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004525/0.348, allocations: 268.9 kB / 1.022 GB, free: 6.727 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001574/0.3482, allocations: 58.48 kB / 1.022 GB, free: 6.66 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/0.3483, allocations: 40.95 kB / 1.022 GB, free: 6.617 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.3484, allocations: 0 / 1.022 GB, free: 6.617 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001794/0.3485, allocations: 83.38 kB / 1.022 GB, free: 6.523 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.3485, allocations: 0 / 1.022 GB, free: 6.523 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0004072/0.349, allocations: 125.5 kB / 1.022 GB, free: 6.395 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.349, allocations: 51.41 kB / 1.022 GB, free: 6.332 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.576e-05/0.3491, allocations: 113.8 kB / 1.022 GB, free: 6.211 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.3491, allocations: 25.7 kB / 1.022 GB, free: 6.18 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.405e-05/0.3492, allocations: 92.08 kB / 1.022 GB, free: 6.086 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.3492, allocations: 15.75 kB / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-05/0.3492, allocations: 25.7 kB / 1.022 GB, free: 6.039 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.3494, allocations: 318.8 kB / 1.023 GB, free: 5.719 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.62e-05/0.3495, allocations: 31.97 kB / 1.023 GB, free: 5.688 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.3496, allocations: 60.27 kB / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.3498, allocations: 96.12 kB / 1.023 GB, free: 5.504 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.3498, allocations: 4 kB / 1.023 GB, free: 5.5 MB / 0.795 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002477/0.35, allocations: 117.5 kB / 1.023 GB, free: 5.379 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.3501, allocations: 4 kB / 1.023 GB, free: 5.375 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3501, allocations: 12.05 kB / 1.023 GB, free: 5.363 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.3501, allocations: 4 kB / 1.023 GB, free: 5.359 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.3502, allocations: 15.98 kB / 1.023 GB, free: 5.344 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3502, allocations: 0 / 1.023 GB, free: 5.344 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.668e-05/0.3503, allocations: 11.98 kB / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.3503, allocations: 4 kB / 1.023 GB, free: 5.328 MB / 0.795 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 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001002/0.3504, allocations: 122.4 kB / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.178e-05/0.3504, allocations: 3.906 kB / 1.023 GB, free: 5.195 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002717/0.3507, allocations: 114.3 kB / 1.023 GB, free: 5.078 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.3507, allocations: 4 kB / 1.023 GB, free: 5.074 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3507, allocations: 0 / 1.023 GB, free: 5.074 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.3508, allocations: 0 / 1.023 GB, free: 5.074 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004047/0.3512, allocations: 366.4 kB / 1.024 GB, free: 4.66 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3512, allocations: 0 / 1.024 GB, free: 4.66 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.958e-05/0.3512, allocations: 12 kB / 1.024 GB, free: 4.648 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.3512, allocations: 3.984 kB / 1.024 GB, free: 4.645 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.926e-06/0.3513, allocations: 0 / 1.024 GB, free: 4.645 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3513, allocations: 4 kB / 1.024 GB, free: 4.641 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3513, allocations: 0 / 1.024 GB, free: 4.641 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002726/0.3515, allocations: 203.3 kB / 1.024 GB, free: 4.426 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.799e-05/0.3516, allocations: 77.11 kB / 1.024 GB, free: 4.332 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.82e-05/0.3516, allocations: 4 kB / 1.024 GB, free: 4.328 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.3517, allocations: 11.98 kB / 1.024 GB, free: 4.316 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.896e-05/0.3518, allocations: 256 / 1.024 GB, free: 4.316 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.3518, allocations: 11.94 kB / 1.024 GB, free: 4.305 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.023e-05/0.3518, allocations: 87.27 kB / 1.024 GB, free: 4.219 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3518, allocations: 192 / 1.024 GB, free: 4.219 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002378/0.3521, allocations: 16 kB / 1.024 GB, free: 4.203 MB / 0.795 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001544/0.3523, allocations: 111.1 kB / 1.024 GB, free: 4.086 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00026/0.3525, allocations: 71.88 kB / 1.024 GB, free: 4.016 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3525, allocations: 0 / 1.024 GB, free: 4.016 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.3526, allocations: 35.91 kB / 1.024 GB, free: 3.98 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.3529, allocations: 11.94 kB / 1.024 GB, free: 3.969 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003417/0.3533, allocations: 150.3 kB / 1.024 GB, free: 3.793 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.3535, allocations: 0.6807 MB / 1.025 GB, free: 3.086 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.162e-05/0.3535, allocations: 4 kB / 1.025 GB, free: 3.082 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.476e-05/0.3536, allocations: 11.44 kB / 1.025 GB, free: 3.07 MB / 0.795 GB Notification: Performance of SimCode: time 2.31e-07/0.3536, allocations: 0 / 1.025 GB, free: 3.07 MB / 0.795 GB Notification: Performance of Templates: time 0.00351/0.3571, allocations: 0.8319 MB / 1.026 GB, free: 2.246 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches