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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.008049/0.008049, allocations: 101.4 kB / 15.88 MB, free: 5.867 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.001702/0.001702, allocations: 188.5 kB / 16.79 MB, free: 5.809 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.429/1.429, allocations: 222.9 MB / 240.5 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.37/2.37, allocations: 390.2 MB / 0.6649 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 67.91 kB / 0.8125 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7625/0.7639, allocations: 140.4 MB / 0.9496 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002011/0.766, allocations: 0.7325 MB / 0.9503 GB, free: 8.555 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001254/0.7672, allocations: 1.059 MB / 0.9513 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.788e-05/0.7673, allocations: 3.938 kB / 0.9513 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.32e-05/0.7673, allocations: 0 / 0.9513 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.35e-05/0.7674, allocations: 5.125 kB / 0.9513 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002442/0.7677, allocations: 37.23 kB / 0.9514 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.414e-05/0.7678, allocations: 52.95 kB / 0.9514 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.7679, allocations: 12.16 kB / 0.9514 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.765e-05/0.7679, allocations: 20.27 kB / 0.9515 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.179e-05/0.768, allocations: 21.88 kB / 0.9515 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/0.768, allocations: 6.688 kB / 0.9515 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.772e-05/0.7681, allocations: 17.27 kB / 0.9515 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.931e-05/0.7681, allocations: 5.406 kB / 0.9515 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.432e-05/0.7682, allocations: 25.56 kB / 0.9515 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.7683, allocations: 45.89 kB / 0.9516 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.7683, allocations: 0 / 0.9516 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.054e-06/0.7683, allocations: 1.219 kB / 0.9516 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.09e-06/0.7683, allocations: 0 / 0.9516 GB, free: 7.531 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.0005665/0.7689, allocations: 362.9 kB / 0.9519 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.7689, allocations: 8.844 kB / 0.9519 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.397e-05/0.769, allocations: 7.25 kB / 0.9519 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.52e-05/0.7691, allocations: 170.9 kB / 0.9521 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.7691, allocations: 5.75 kB / 0.9521 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.634e-05/0.7691, allocations: 4.125 kB / 0.9521 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.7693, allocations: 64.91 kB / 0.9522 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.7693, allocations: 192 / 0.9522 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.7693, allocations: 7.938 kB / 0.9522 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.7694, allocations: 1.594 kB / 0.9522 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.7695, allocations: 43.06 kB / 0.9522 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004082/0.77, allocations: 280 kB / 0.9525 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001529/0.7701, allocations: 65.8 kB / 0.9526 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.599e-05/0.7702, allocations: 32.08 kB / 0.9526 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.7703, allocations: 1.375 kB / 0.9526 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.7705, allocations: 77.25 kB / 0.9527 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.7705, allocations: 3.938 kB / 0.9527 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004078/0.7709, allocations: 125.9 kB / 0.9528 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.7709, allocations: 56.66 kB / 0.9528 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.35e-05/0.771, allocations: 109.3 kB / 0.9529 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.107e-05/0.771, allocations: 27.05 kB / 0.953 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.044e-05/0.771, allocations: 85.33 kB / 0.9531 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.9e-05/0.7711, allocations: 18.36 kB / 0.9531 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-05/0.7711, allocations: 25.44 kB / 0.9531 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.569e-05/0.7712, allocations: 316.4 kB / 0.9534 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.7713, allocations: 22.17 kB / 0.9534 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.7714, allocations: 65.98 kB / 0.9535 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.7716, allocations: 98.72 kB / 0.9536 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.7716, allocations: 1.875 kB / 0.9536 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00026/0.7719, allocations: 113.8 kB / 0.9537 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.7719, allocations: 13.38 kB / 0.9537 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.7719, allocations: 5.812 kB / 0.9537 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.7719, allocations: 1.25 kB / 0.9537 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.7721, allocations: 19.92 kB / 0.9537 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.7721, allocations: 2.562 kB / 0.9537 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.049e-05/0.7721, allocations: 13.14 kB / 0.9537 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.7722, allocations: 2.594 kB / 0.9537 GB, free: 5.445 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 7.637e-05/0.7722, allocations: 125.4 kB / 0.9539 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.352e-05/0.7723, allocations: 5.406 kB / 0.9539 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002779/0.7725, allocations: 106.9 kB / 0.954 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.7726, allocations: 5.047 kB / 0.954 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.7726, allocations: 7.969 kB / 0.954 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.7726, allocations: 1.344 kB / 0.954 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003772/0.773, allocations: 359.6 kB / 0.9543 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.773, allocations: 0 / 0.9543 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.47e-05/0.773, allocations: 10.86 kB / 0.9543 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.7731, allocations: 1.438 kB / 0.9543 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.7731, allocations: 4 kB / 0.9543 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.7731, allocations: 5.812 kB / 0.9543 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.7731, allocations: 0 / 0.9543 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002646/0.7733, allocations: 206.9 kB / 0.9545 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.286e-05/0.7734, allocations: 82.45 kB / 0.9546 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.947e-05/0.7734, allocations: 1.312 kB / 0.9546 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.7735, allocations: 17.05 kB / 0.9546 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.764e-05/0.7736, allocations: 6.547 kB / 0.9546 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.7736, allocations: 6.531 kB / 0.9547 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.284e-05/0.7736, allocations: 84.06 kB / 0.9547 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7736, allocations: 0 / 0.9547 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002486/0.7739, allocations: 12.03 kB / 0.9547 GB, free: 4.496 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.0001478/0.774, allocations: 110.2 kB / 0.9548 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002698/0.7743, allocations: 68.73 kB / 0.9549 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.7743, allocations: 0 / 0.9549 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.7744, allocations: 36.41 kB / 0.9549 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.7747, allocations: 4.312 kB / 0.955 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003227/0.775, allocations: 174.3 kB / 0.9551 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001435/0.7752, allocations: 0.6875 MB / 0.9558 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.256e-05/0.7752, allocations: 15.5 kB / 0.9558 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of SimCode: time 1.453e-06/0.7752, allocations: 0 / 0.9558 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of Templates: time 0.002416/0.7777, allocations: 0.9005 MB / 0.9567 GB, free: 3 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/jenkins1/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