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.001222/0.001222, allocations: 105.1 kB / 16.35 MB, free: 5.824 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.001305/0.001305, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.413/1.413, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.302/2.302, allocations: 390.3 MB / 0.6655 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.00136, allocations: 64.25 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.3184, allocations: 140.4 MB / 0.9511 GB, free: 8.012 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002069/0.3205, allocations: 0.6811 MB / 0.9518 GB, free: 7.332 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001317/0.3219, allocations: 1.072 MB / 0.9528 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.664e-05/0.3219, allocations: 0 / 0.9528 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.945e-05/0.322, allocations: 3.938 kB / 0.9528 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.311e-05/0.3221, allocations: 7.938 kB / 0.9528 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002893/0.3223, allocations: 39.83 kB / 0.9529 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.3225, allocations: 51.84 kB / 0.9529 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.3226, allocations: 8 kB / 0.9529 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.277e-05/0.3226, allocations: 19.92 kB / 0.953 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.331e-05/0.3227, allocations: 35.83 kB / 0.953 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.649e-05/0.3227, allocations: 8 kB / 0.953 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.607e-05/0.3228, allocations: 15.98 kB / 0.953 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.994e-05/0.3228, allocations: 11.94 kB / 0.953 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.006e-05/0.3229, allocations: 23.86 kB / 0.953 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001405/0.323, allocations: 55.84 kB / 0.9531 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.323, allocations: 0 / 0.9531 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.624e-06/0.323, allocations: 0 / 0.9531 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.3231, allocations: 0 / 0.9531 GB, free: 5.969 MB / 0.7325 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.0006259/0.3237, allocations: 375.3 kB / 0.9535 GB, free: 5.551 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.3237, allocations: 8.031 kB / 0.9535 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.526e-05/0.3238, allocations: 4.938 kB / 0.9535 GB, free: 5.539 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.3239, allocations: 172.2 kB / 0.9536 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.3239, allocations: 4.375 kB / 0.9536 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.834e-05/0.324, allocations: 4.375 kB / 0.9536 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002079/0.3242, allocations: 70.14 kB / 0.9537 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.3242, allocations: 192 / 0.9537 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.3242, allocations: 11.94 kB / 0.9537 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.3242, allocations: 4 kB / 0.9537 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002321/0.3245, allocations: 39.95 kB / 0.9538 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004452/0.3249, allocations: 276.8 kB / 0.954 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000166/0.3251, allocations: 58.48 kB / 0.9541 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.641e-05/0.3252, allocations: 36.95 kB / 0.9541 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.403e-05/0.3252, allocations: 0 / 0.9541 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001872/0.3254, allocations: 75.38 kB / 0.9542 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.3254, allocations: 0 / 0.9542 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004223/0.3259, allocations: 137.5 kB / 0.9543 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.3259, allocations: 51.41 kB / 0.9544 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.189e-05/0.326, allocations: 101.9 kB / 0.9545 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.326, allocations: 29.69 kB / 0.9545 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.535e-05/0.3261, allocations: 88.14 kB / 0.9546 GB, free: 4.246 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.3261, allocations: 7.812 kB / 0.9546 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.541e-05/0.3262, allocations: 29.7 kB / 0.9546 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.3263, allocations: 314.8 kB / 0.9549 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.3264, allocations: 31.97 kB / 0.9549 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.3265, allocations: 56.27 kB / 0.955 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/0.3267, allocations: 100.1 kB / 0.9551 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3267, allocations: 256 / 0.9551 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002735/0.327, allocations: 113.5 kB / 0.9552 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.327, allocations: 10.33 kB / 0.9552 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/0.3271, allocations: 8 kB / 0.9552 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.3271, allocations: 7.938 kB / 0.9552 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.3272, allocations: 19.92 kB / 0.9552 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.3272, allocations: 0 / 0.9552 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.221e-05/0.3273, allocations: 15.98 kB / 0.9553 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.3273, allocations: 7.969 kB / 0.9553 GB, free: 3.488 MB / 0.7325 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 9.919e-05/0.3274, allocations: 125.3 kB / 0.9554 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.3274, allocations: 3.906 kB / 0.9554 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000278/0.3277, allocations: 110 kB / 0.9555 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.3277, allocations: 4 kB / 0.9555 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.3277, allocations: 0 / 0.9555 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.3278, allocations: 3.938 kB / 0.9555 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004506/0.3282, allocations: 358.4 kB / 0.9558 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3282, allocations: 0 / 0.9558 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.387e-05/0.3283, allocations: 15.98 kB / 0.9559 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3283, allocations: 0 / 0.9559 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.3283, allocations: 4 kB / 0.9559 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.3283, allocations: 8.453 kB / 0.9559 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3283, allocations: 0 / 0.9559 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002861/0.3286, allocations: 199.3 kB / 0.9561 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.438e-05/0.3287, allocations: 81.11 kB / 0.9561 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.3287, allocations: 7.984 kB / 0.9562 GB, free: 2.484 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.3288, allocations: 8 kB / 0.9562 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.3289, allocations: 3.984 kB / 0.9562 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.3289, allocations: 7.938 kB / 0.9562 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.739e-05/0.3289, allocations: 87.27 kB / 0.9563 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.329, allocations: 3.938 kB / 0.9563 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002492/0.3292, allocations: 12 kB / 0.9563 GB, free: 2.363 MB / 0.7325 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.0001686/0.3294, allocations: 111.2 kB / 0.9564 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002595/0.3296, allocations: 67.88 kB / 0.9564 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3297, allocations: 4 kB / 0.9564 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.3298, allocations: 27.98 kB / 0.9565 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/0.33, allocations: 8.234 kB / 0.9565 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003224/0.3304, allocations: 137.5 kB / 0.9566 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.3306, allocations: 0.6922 MB / 0.9573 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.284e-05/0.3307, allocations: 4 kB / 0.9573 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.671e-05/0.3307, allocations: 11.44 kB / 0.9573 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.3307, allocations: 0 / 0.9573 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of Templates: time 0.00316/0.3339, allocations: 0.8325 MB / 0.9581 GB, free: 424 kB / 0.7325 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 -s cvode -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