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.001509/0.001509, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.001309/0.001309, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.402/1.402, allocations: 222.9 MB / 240.6 MB, free: 4.539 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.433/2.433, allocations: 390.2 MB / 0.665 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 63.89 kB / 0.8127 GB, free: 14.73 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.739/0.7405, allocations: 140.4 MB / 0.9498 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001796/0.7424, allocations: 0.737 MB / 0.9505 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001006/0.7434, allocations: 1.05 MB / 0.9515 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.771e-05/0.7434, allocations: 0 / 0.9515 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.451e-05/0.7435, allocations: 5.312 kB / 0.9515 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.508e-05/0.7435, allocations: 11.92 kB / 0.9515 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.7438, allocations: 38.91 kB / 0.9516 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.406e-05/0.7439, allocations: 55.25 kB / 0.9516 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.754e-05/0.744, allocations: 5.062 kB / 0.9516 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.882e-05/0.7441, allocations: 21.14 kB / 0.9517 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.515e-05/0.7441, allocations: 25.28 kB / 0.9517 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.39e-05/0.7441, allocations: 5.25 kB / 0.9517 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.869e-05/0.7442, allocations: 17.55 kB / 0.9517 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.606e-05/0.7442, allocations: 10.7 kB / 0.9517 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.14e-05/0.7442, allocations: 29.2 kB / 0.9517 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.602e-05/0.7443, allocations: 38.48 kB / 0.9518 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.7443, allocations: 0 / 0.9518 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.333e-06/0.7444, allocations: 1.125 kB / 0.9518 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.7444, allocations: 0 / 0.9518 GB, free: 7.602 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.0004861/0.7449, allocations: 366.9 kB / 0.9521 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.7449, allocations: 8.969 kB / 0.9521 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.097e-05/0.7449, allocations: 11.41 kB / 0.9521 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.863e-05/0.745, allocations: 171 kB / 0.9523 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.745, allocations: 1.812 kB / 0.9523 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.354e-05/0.7451, allocations: 4.188 kB / 0.9523 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.7452, allocations: 65.16 kB / 0.9524 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.7453, allocations: 192 / 0.9524 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.7453, allocations: 7.922 kB / 0.9524 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.7453, allocations: 1.344 kB / 0.9524 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.7455, allocations: 46.73 kB / 0.9524 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003603/0.7458, allocations: 284.5 kB / 0.9527 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001528/0.746, allocations: 61.52 kB / 0.9528 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.233e-05/0.7461, allocations: 27.56 kB / 0.9528 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.7461, allocations: 9.297 kB / 0.9528 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001908/0.7463, allocations: 69.95 kB / 0.9529 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.7463, allocations: 0 / 0.9529 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000395/0.7467, allocations: 130.2 kB / 0.953 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.176e-05/0.7468, allocations: 60.98 kB / 0.953 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.755e-05/0.7468, allocations: 100.9 kB / 0.9531 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.7469, allocations: 30.77 kB / 0.9532 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.539e-05/0.7469, allocations: 93.03 kB / 0.9533 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.7469, allocations: 14.91 kB / 0.9533 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.707e-05/0.747, allocations: 24.08 kB / 0.9533 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.413e-05/0.747, allocations: 317 kB / 0.9536 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.63e-05/0.7471, allocations: 26.31 kB / 0.9536 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.7472, allocations: 71.36 kB / 0.9537 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.7474, allocations: 94.27 kB / 0.9538 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.7474, allocations: 0 / 0.9538 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002455/0.7477, allocations: 114.4 kB / 0.9539 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.7477, allocations: 5.156 kB / 0.9539 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.7477, allocations: 1.344 kB / 0.9539 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.7477, allocations: 9.672 kB / 0.9539 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.7478, allocations: 21.39 kB / 0.9539 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.7478, allocations: 5.281 kB / 0.9539 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.764e-05/0.7479, allocations: 5.406 kB / 0.9539 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.898e-06/0.7479, allocations: 2.812 kB / 0.9539 GB, free: 5.512 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.325e-05/0.748, allocations: 128.9 kB / 0.9541 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.405e-05/0.748, allocations: 6.312 kB / 0.9541 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002639/0.7483, allocations: 118.7 kB / 0.9542 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.7483, allocations: 1.438 kB / 0.9542 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.7483, allocations: 0 / 0.9542 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.778e-06/0.7483, allocations: 0 / 0.9542 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003777/0.7487, allocations: 360.1 kB / 0.9545 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.7487, allocations: 0 / 0.9545 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.087e-05/0.7488, allocations: 11.36 kB / 0.9545 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.7488, allocations: 5.312 kB / 0.9545 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.7488, allocations: 1.625 kB / 0.9545 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.7488, allocations: 0 / 0.9545 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.7488, allocations: 0 / 0.9545 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002435/0.7491, allocations: 199.7 kB / 0.9547 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.974e-05/0.7491, allocations: 78.34 kB / 0.9548 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.7491, allocations: 9.125 kB / 0.9548 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.663e-05/0.7492, allocations: 12.34 kB / 0.9548 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.785e-05/0.7493, allocations: 11.36 kB / 0.9548 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.7493, allocations: 6.156 kB / 0.9548 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.694e-05/0.7493, allocations: 79.56 kB / 0.9549 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7493, allocations: 5.062 kB / 0.9549 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002474/0.7496, allocations: 18.95 kB / 0.9549 GB, free: 4.559 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.0001379/0.7497, allocations: 106.1 kB / 0.955 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002636/0.75, allocations: 78.19 kB / 0.9551 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.75, allocations: 0 / 0.9551 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.7501, allocations: 36.17 kB / 0.9552 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.7504, allocations: 12.77 kB / 0.9552 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003008/0.7507, allocations: 176.2 kB / 0.9553 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001423/0.7508, allocations: 0.6898 MB / 0.956 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.886e-05/0.7509, allocations: 10.31 kB / 0.956 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.7509, allocations: 1.5 kB / 0.956 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of Templates: time 0.002401/0.7533, allocations: 0.8919 MB / 0.9569 GB, free: 3.055 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