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.001117/0.001117, allocations: 102.8 kB / 15.06 MB, free: 1.098 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.001343/0.001343, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 223.2 MB / 239.9 MB, free: 5.438 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.411/2.411, allocations: 390.3 MB / 0.6653 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003361/0.0003361, allocations: 8 kB / 0.8145 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7246/0.725, allocations: 142.3 MB / 0.9535 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001276/0.7263, allocations: 396.3 kB / 0.9539 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001811/0.7282, allocations: 1.032 MB / 0.9549 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.945e-05/0.7283, allocations: 1.062 kB / 0.9549 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.576e-05/0.7283, allocations: 3.938 kB / 0.9549 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001228/0.7284, allocations: 9.344 kB / 0.9549 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004035/0.7289, allocations: 34.38 kB / 0.955 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001382/0.729, allocations: 28.94 kB / 0.955 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001724/0.7292, allocations: 17.39 kB / 0.955 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.7293, allocations: 22.78 kB / 0.955 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.681e-05/0.7294, allocations: 18.8 kB / 0.955 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.851e-05/0.7294, allocations: 1.062 kB / 0.955 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.377e-05/0.7295, allocations: 16.08 kB / 0.9551 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.088e-05/0.7296, allocations: 10.19 kB / 0.9551 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.993e-05/0.7296, allocations: 32.55 kB / 0.9551 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000113/0.7297, allocations: 37.73 kB / 0.9551 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.7297, allocations: 0.9062 kB / 0.9551 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.635e-06/0.7297, allocations: 0 / 0.9551 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.036e-05/0.7298, allocations: 0 / 0.9551 GB, free: 7.059 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.000631/0.7304, allocations: 375.3 kB / 0.9555 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.7305, allocations: 8.219 kB / 0.9555 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.022e-05/0.7305, allocations: 14.67 kB / 0.9555 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.7307, allocations: 161 kB / 0.9557 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.913e-05/0.7307, allocations: 2.219 kB / 0.9557 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.7307, allocations: 6.406 kB / 0.9557 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002459/0.731, allocations: 69.66 kB / 0.9557 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.731, allocations: 0 / 0.9557 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.731, allocations: 4 kB / 0.9557 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.731, allocations: 1.219 kB / 0.9557 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002256/0.7312, allocations: 65.45 kB / 0.9558 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004683/0.7317, allocations: 275.2 kB / 0.9561 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001671/0.7319, allocations: 70.41 kB / 0.9561 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.7319, allocations: 2.25 kB / 0.9561 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002097/0.7322, allocations: 85.62 kB / 0.9562 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.7322, allocations: 0 / 0.9562 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004318/0.7326, allocations: 143.6 kB / 0.9564 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.7326, allocations: 52.72 kB / 0.9564 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.085e-05/0.7327, allocations: 105.9 kB / 0.9565 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.7327, allocations: 34.95 kB / 0.9565 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.807e-05/0.7328, allocations: 85.17 kB / 0.9566 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.099e-05/0.7328, allocations: 22.14 kB / 0.9566 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.949e-06/0.7328, allocations: 1.031 kB / 0.9566 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.59e-05/0.7329, allocations: 316.1 kB / 0.9569 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.988e-05/0.733, allocations: 32.19 kB / 0.957 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.7331, allocations: 70.2 kB / 0.957 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001075/0.7332, allocations: 37.42 kB / 0.9571 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.7332, allocations: 1.281 kB / 0.9571 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002598/0.7335, allocations: 123.5 kB / 0.9572 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.7335, allocations: 8.469 kB / 0.9572 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.7335, allocations: 2 kB / 0.9572 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.7335, allocations: 6.297 kB / 0.9572 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.7337, allocations: 18.14 kB / 0.9572 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.7337, allocations: 2 kB / 0.9572 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.283e-05/0.7338, allocations: 15.61 kB / 0.9572 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.7338, allocations: 3.938 kB / 0.9573 GB, free: 5.066 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 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.138e-05/0.7339, allocations: 123.1 kB / 0.9574 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.215e-05/0.7339, allocations: 2.25 kB / 0.9574 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002888/0.7342, allocations: 117.3 kB / 0.9575 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.7342, allocations: 1.125 kB / 0.9575 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.7342, allocations: 11.89 kB / 0.9575 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.7342, allocations: 4 kB / 0.9575 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000407/0.7346, allocations: 380.9 kB / 0.9579 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.7346, allocations: 0 / 0.9579 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.395e-05/0.7347, allocations: 18.17 kB / 0.9579 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.7347, allocations: 1.281 kB / 0.9579 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.7347, allocations: 3.953 kB / 0.9579 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.7347, allocations: 5.281 kB / 0.9579 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.7347, allocations: 0 / 0.9579 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002789/0.735, allocations: 212.5 kB / 0.9581 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.694e-05/0.7351, allocations: 82.33 kB / 0.9582 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.7351, allocations: 1.281 kB / 0.9582 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.937e-05/0.7352, allocations: 16.59 kB / 0.9582 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.172e-05/0.7352, allocations: 6.734 kB / 0.9582 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.7353, allocations: 5.812 kB / 0.9582 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.969e-05/0.7353, allocations: 84.62 kB / 0.9583 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7353, allocations: 0 / 0.9583 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002462/0.7356, allocations: 14.47 kB / 0.9583 GB, free: 4.105 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001534/0.7357, allocations: 102.5 kB / 0.9584 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002754/0.736, allocations: 82.7 kB / 0.9585 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.736, allocations: 0 / 0.9585 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.7361, allocations: 40.38 kB / 0.9585 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001873/0.7363, allocations: 7.703 kB / 0.9585 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002988/0.7366, allocations: 144.7 kB / 0.9587 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.7368, allocations: 0.6842 MB / 0.9593 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.377e-05/0.7368, allocations: 12.06 kB / 0.9593 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.22e-05/0.7368, allocations: 9.281 kB / 0.9593 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.7368, allocations: 0 / 0.9593 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of Templates: time 0.002986/0.7398, allocations: 0.72 MB / 0.96 GB, free: 2.738 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches