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.001209/0.001209, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001143/0.001143, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.444/1.444, allocations: 222.9 MB / 241 MB, free: 15.16 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.559/2.559, allocations: 437.1 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 62.94 kB / 0.8707 GB, free: 1.41 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3643, allocations: 151.6 MB / 1.019 GB, free: 9.82 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002327/0.3667, allocations: 0.67 MB / 1.019 GB, free: 9.148 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001461/0.3682, allocations: 1.067 MB / 1.02 GB, free: 8.066 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.872e-05/0.3682, allocations: 0 / 1.02 GB, free: 8.066 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.092e-05/0.3683, allocations: 0 / 1.02 GB, free: 8.066 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.578e-05/0.3684, allocations: 15.86 kB / 1.021 GB, free: 8.051 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003896/0.3688, allocations: 39.89 kB / 1.021 GB, free: 8.012 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001376/0.3689, allocations: 47.86 kB / 1.021 GB, free: 7.965 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.369, allocations: 11.98 kB / 1.021 GB, free: 7.953 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.685e-05/0.3691, allocations: 23.92 kB / 1.021 GB, free: 7.93 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.193e-05/0.3692, allocations: 23.91 kB / 1.021 GB, free: 7.906 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.866e-05/0.3693, allocations: 4 kB / 1.021 GB, free: 7.902 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.131e-05/0.3693, allocations: 19.98 kB / 1.021 GB, free: 7.883 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.907e-05/0.3694, allocations: 11.92 kB / 1.021 GB, free: 7.871 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.962e-05/0.3694, allocations: 19.94 kB / 1.021 GB, free: 7.852 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002084/0.3697, allocations: 67.7 kB / 1.021 GB, free: 7.785 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 1.069e-05/0.3697, allocations: 0 / 1.021 GB, free: 7.785 MB / 0.795 GB Notification: Performance of FrontEnd: time 6.743e-06/0.3697, allocations: 4 kB / 1.021 GB, free: 7.781 MB / 0.795 GB Notification: Performance of Transformations before backend: time 9.918e-06/0.3697, allocations: 0 / 1.021 GB, free: 7.781 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.0009259/0.3706, allocations: 367.3 kB / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.3707, allocations: 8.625 kB / 1.021 GB, free: 7.363 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.782e-05/0.3708, allocations: 4.938 kB / 1.021 GB, free: 7.359 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001953/0.371, allocations: 176.2 kB / 1.021 GB, free: 7.148 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.371, allocations: 384 / 1.021 GB, free: 7.148 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.636e-05/0.371, allocations: 4.375 kB / 1.021 GB, free: 7.145 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002686/0.3713, allocations: 74.19 kB / 1.021 GB, free: 7.066 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.3713, allocations: 4.125 kB / 1.021 GB, free: 7.062 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.3713, allocations: 11.88 kB / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.3713, allocations: 0 / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00018/0.3715, allocations: 43.95 kB / 1.021 GB, free: 7.008 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005761/0.3721, allocations: 268.9 kB / 1.022 GB, free: 6.695 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000175/0.3723, allocations: 70.47 kB / 1.022 GB, free: 6.617 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.3724, allocations: 28.97 kB / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.3724, allocations: 3.938 kB / 1.022 GB, free: 6.582 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002138/0.3727, allocations: 79.38 kB / 1.022 GB, free: 6.492 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.3727, allocations: 4 kB / 1.022 GB, free: 6.488 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0005072/0.3732, allocations: 125.6 kB / 1.022 GB, free: 6.359 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.875e-05/0.3733, allocations: 59.34 kB / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.3734, allocations: 109.8 kB / 1.022 GB, free: 6.172 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.054e-05/0.3734, allocations: 25.7 kB / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.683e-05/0.3735, allocations: 84.14 kB / 1.022 GB, free: 6.055 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.3735, allocations: 23.67 kB / 1.022 GB, free: 6.031 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.731e-05/0.3736, allocations: 29.72 kB / 1.022 GB, free: 5.996 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3737, allocations: 318.8 kB / 1.023 GB, free: 5.676 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.3738, allocations: 19.98 kB / 1.023 GB, free: 5.656 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.3739, allocations: 60.27 kB / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.3742, allocations: 96.12 kB / 1.023 GB, free: 5.473 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3742, allocations: 4 kB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002827/0.3745, allocations: 121.4 kB / 1.023 GB, free: 5.344 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.3745, allocations: 4 kB / 1.023 GB, free: 5.34 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.3745, allocations: 0 / 1.023 GB, free: 5.34 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.3745, allocations: 4 kB / 1.023 GB, free: 5.336 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.3747, allocations: 15.98 kB / 1.023 GB, free: 5.32 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.3747, allocations: 0 / 1.023 GB, free: 5.32 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.837e-05/0.3748, allocations: 15.98 kB / 1.023 GB, free: 5.305 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.3748, allocations: 4 kB / 1.023 GB, free: 5.301 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.0001177/0.3749, allocations: 128.3 kB / 1.023 GB, free: 5.168 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.404e-05/0.3749, allocations: 7.891 kB / 1.023 GB, free: 5.16 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002819/0.3752, allocations: 106 kB / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3752, allocations: 0 / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3752, allocations: 0 / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3752, allocations: 0 / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004562/0.3757, allocations: 362.6 kB / 1.024 GB, free: 4.641 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3757, allocations: 0 / 1.024 GB, free: 4.641 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.879e-05/0.3758, allocations: 15.92 kB / 1.024 GB, free: 4.625 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3758, allocations: 0 / 1.024 GB, free: 4.625 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.3758, allocations: 4 kB / 1.024 GB, free: 4.621 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3758, allocations: 0 / 1.024 GB, free: 4.621 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3758, allocations: 0 / 1.024 GB, free: 4.621 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003014/0.3761, allocations: 211.3 kB / 1.024 GB, free: 4.398 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.019e-05/0.3762, allocations: 81.05 kB / 1.024 GB, free: 4.301 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.3762, allocations: 0 / 1.024 GB, free: 4.301 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.535e-05/0.3763, allocations: 16.23 kB / 1.024 GB, free: 4.285 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/0.3763, allocations: 3.984 kB / 1.024 GB, free: 4.281 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.3764, allocations: 11.94 kB / 1.024 GB, free: 4.27 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.025e-05/0.3764, allocations: 83.28 kB / 1.024 GB, free: 4.188 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3764, allocations: 4 kB / 1.024 GB, free: 4.184 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002439/0.3767, allocations: 12 kB / 1.024 GB, free: 4.172 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.0001655/0.3768, allocations: 115.2 kB / 1.024 GB, free: 4.051 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002667/0.3771, allocations: 63.89 kB / 1.024 GB, free: 3.988 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3771, allocations: 0 / 1.024 GB, free: 3.988 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.3772, allocations: 40.7 kB / 1.024 GB, free: 3.949 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.3775, allocations: 8 kB / 1.024 GB, free: 3.941 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003584/0.3779, allocations: 142.1 kB / 1.024 GB, free: 3.773 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/0.3782, allocations: 0.6807 MB / 1.025 GB, free: 3.066 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.271e-05/0.3782, allocations: 7.984 kB / 1.025 GB, free: 3.059 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.871e-05/0.3782, allocations: 15.44 kB / 1.025 GB, free: 3.043 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.3782, allocations: 4 kB / 1.025 GB, free: 3.039 MB / 0.795 GB Notification: Performance of Templates: time 0.003521/0.3818, allocations: 0.8326 MB / 1.026 GB, free: 2.215 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 gbode -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