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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001553/0.001553, allocations: 189.8 kB / 16.25 MB, free: 6.633 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.539/1.539, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.496/2.496, allocations: 390.2 MB / 0.6643 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 63.91 kB / 0.812 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7503/0.7517, allocations: 140.4 MB / 0.9491 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001824/0.7536, allocations: 0.7366 MB / 0.9498 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001078/0.7547, allocations: 1.058 MB / 0.9509 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.517e-05/0.7548, allocations: 0 / 0.9509 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.468e-05/0.7548, allocations: 5.344 kB / 0.9509 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.026e-05/0.7549, allocations: 4 kB / 0.9509 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003433/0.7552, allocations: 38.95 kB / 0.9509 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.648e-05/0.7554, allocations: 51.27 kB / 0.9509 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.7555, allocations: 12.89 kB / 0.951 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.189e-05/0.7556, allocations: 16.11 kB / 0.951 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.06e-05/0.7556, allocations: 26.38 kB / 0.951 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.7556, allocations: 5.281 kB / 0.951 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.401e-05/0.7557, allocations: 18.52 kB / 0.951 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.329e-05/0.7557, allocations: 9.203 kB / 0.951 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.617e-05/0.7558, allocations: 25.66 kB / 0.9511 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.7559, allocations: 57.8 kB / 0.9511 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.756, allocations: 0 / 0.9511 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.883e-06/0.756, allocations: 1.406 kB / 0.9511 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.756, allocations: 0 / 0.9511 GB, free: 7.516 MB / 0.7169 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.0005858/0.7566, allocations: 366.6 kB / 0.9515 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.7566, allocations: 9.562 kB / 0.9515 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.344e-05/0.7567, allocations: 11.53 kB / 0.9515 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.358e-05/0.7568, allocations: 169.8 kB / 0.9516 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.7568, allocations: 3.125 kB / 0.9516 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.567e-05/0.7568, allocations: 3.031 kB / 0.9517 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.757, allocations: 64.06 kB / 0.9517 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.757, allocations: 1.562 kB / 0.9517 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.757, allocations: 7.938 kB / 0.9517 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.7571, allocations: 1.375 kB / 0.9517 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001774/0.7572, allocations: 43.33 kB / 0.9518 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004384/0.7577, allocations: 284 kB / 0.952 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000164/0.7579, allocations: 65.73 kB / 0.9521 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.65e-05/0.758, allocations: 30.72 kB / 0.9521 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.758, allocations: 1.375 kB / 0.9521 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000233/0.7582, allocations: 74.62 kB / 0.9522 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.7582, allocations: 3.938 kB / 0.9522 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004262/0.7587, allocations: 133.2 kB / 0.9523 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.7587, allocations: 56.41 kB / 0.9524 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.627e-05/0.7588, allocations: 110.5 kB / 0.9525 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.7588, allocations: 25.7 kB / 0.9525 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.657e-05/0.7589, allocations: 89.45 kB / 0.9526 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.249e-05/0.7589, allocations: 15.61 kB / 0.9526 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.312e-05/0.7589, allocations: 23.75 kB / 0.9526 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.174e-05/0.759, allocations: 316.6 kB / 0.9529 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.995e-05/0.7591, allocations: 30.42 kB / 0.953 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.7592, allocations: 54.55 kB / 0.953 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002073/0.7595, allocations: 102.6 kB / 0.9531 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.7595, allocations: 1.562 kB / 0.9531 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002602/0.7597, allocations: 112.8 kB / 0.9532 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.7598, allocations: 6.438 kB / 0.9532 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.7598, allocations: 1.516 kB / 0.9532 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.7598, allocations: 9.828 kB / 0.9532 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.7599, allocations: 19.7 kB / 0.9533 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.7599, allocations: 2.344 kB / 0.9533 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.017e-05/0.76, allocations: 13.33 kB / 0.9533 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.76, allocations: 2.562 kB / 0.9533 GB, free: 5.422 MB / 0.7169 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 6.999e-05/0.7601, allocations: 120.5 kB / 0.9534 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.317e-05/0.7601, allocations: 6.125 kB / 0.9534 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002728/0.7604, allocations: 118.8 kB / 0.9535 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.7604, allocations: 1.219 kB / 0.9535 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.7604, allocations: 1.375 kB / 0.9535 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.7604, allocations: 0 / 0.9535 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003828/0.7608, allocations: 355.5 kB / 0.9539 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.7608, allocations: 0 / 0.9539 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.159e-05/0.7609, allocations: 19.86 kB / 0.9539 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.7609, allocations: 0 / 0.9539 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.7609, allocations: 1.594 kB / 0.9539 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.7609, allocations: 192 / 0.9539 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.7609, allocations: 0.9688 kB / 0.9539 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000254/0.7612, allocations: 206.3 kB / 0.9541 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.905e-05/0.7612, allocations: 79.83 kB / 0.9541 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.98e-05/0.7613, allocations: 11.94 kB / 0.9542 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.614e-05/0.7614, allocations: 9.891 kB / 0.9542 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.983e-05/0.7614, allocations: 7.391 kB / 0.9542 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.7614, allocations: 5.25 kB / 0.9542 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.445e-05/0.7615, allocations: 88.16 kB / 0.9543 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7615, allocations: 0 / 0.9543 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002475/0.7617, allocations: 11.62 kB / 0.9543 GB, free: 4.477 MB / 0.7169 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.000138/0.7619, allocations: 120.3 kB / 0.9544 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002561/0.7621, allocations: 70.53 kB / 0.9545 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.7621, allocations: 0 / 0.9545 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.7623, allocations: 32.53 kB / 0.9545 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002599/0.7625, allocations: 9.219 kB / 0.9545 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003111/0.7628, allocations: 153.6 kB / 0.9546 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001205/0.763, allocations: 0.6862 MB / 0.9553 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.471e-05/0.763, allocations: 7.984 kB / 0.9553 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.298e-05/0.763, allocations: 10.09 kB / 0.9553 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.763, allocations: 1.156 kB / 0.9553 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of Templates: time 0.00345/0.7665, allocations: 0.7704 MB / 0.9561 GB, free: 3.062 MB / 0.7169 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches