Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001082/0.001082, 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.001125/0.001125, allocations: 191.1 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.753/1.753, allocations: 205.1 MB / 222.1 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.653/1.653, allocations: 251.6 MB / 0.5089 GB, free: 3.305 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001925, allocations: 67.91 kB / 0.6218 GB, free: 1.852 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7491/0.7511, allocations: 104.7 MB / 0.724 GB, free: 13.1 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.00314/0.7543, allocations: 1.451 MB / 0.7254 GB, free: 11.64 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0005779/0.7549, allocations: 232.1 kB / 0.7256 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.729e-05/0.7549, allocations: 0 / 0.7256 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.045e-05/0.755, allocations: 0 / 0.7256 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.829e-05/0.7551, allocations: 11.86 kB / 0.7256 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002051/0.7553, allocations: 19.98 kB / 0.7257 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.7554, allocations: 51.78 kB / 0.7257 GB, free: 11.32 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001368/0.7556, allocations: 16 kB / 0.7257 GB, free: 11.31 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.621e-05/0.7557, allocations: 19.91 kB / 0.7257 GB, free: 11.29 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.187e-05/0.7557, allocations: 23.92 kB / 0.7258 GB, free: 11.27 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.066e-05/0.7558, allocations: 4 kB / 0.7258 GB, free: 11.26 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.538e-05/0.7558, allocations: 4 kB / 0.7258 GB, free: 11.26 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.958e-05/0.7558, allocations: 7.984 kB / 0.7258 GB, free: 11.25 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.828e-05/0.7559, allocations: 27.86 kB / 0.7258 GB, free: 11.22 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001151/0.756, allocations: 39.86 kB / 0.7259 GB, free: 11.18 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.756, allocations: 0 / 0.7259 GB, free: 11.18 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.162e-06/0.756, allocations: 0 / 0.7259 GB, free: 11.18 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.111e-06/0.756, allocations: 0 / 0.7259 GB, free: 11.18 MB / 0.545 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.0006637/0.7567, allocations: 377.3 kB / 0.7262 GB, free: 10.77 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.7567, allocations: 8.031 kB / 0.7262 GB, free: 10.76 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.567e-05/0.7568, allocations: 4.938 kB / 0.7262 GB, free: 10.75 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.7569, allocations: 172.2 kB / 0.7264 GB, free: 10.55 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.757, allocations: 4.375 kB / 0.7264 GB, free: 10.54 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.757, allocations: 384 / 0.7264 GB, free: 10.54 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002282/0.7572, allocations: 70.22 kB / 0.7265 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.7572, allocations: 192 / 0.7265 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.7572, allocations: 7.938 kB / 0.7265 GB, free: 10.46 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.7573, allocations: 0 / 0.7265 GB, free: 10.46 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001799/0.7574, allocations: 39.95 kB / 0.7265 GB, free: 10.42 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004669/0.7579, allocations: 280.8 kB / 0.7268 GB, free: 10.1 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001652/0.7581, allocations: 62.48 kB / 0.7268 GB, free: 10.03 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.7582, allocations: 28.95 kB / 0.7269 GB, free: 9.996 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.7582, allocations: 7.938 kB / 0.7269 GB, free: 9.988 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001915/0.7584, allocations: 79.38 kB / 0.7269 GB, free: 9.898 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.7585, allocations: 0 / 0.7269 GB, free: 9.898 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0004361/0.7589, allocations: 125.5 kB / 0.7271 GB, free: 9.77 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.759, allocations: 55.41 kB / 0.7271 GB, free: 9.703 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.7591, allocations: 109.8 kB / 0.7272 GB, free: 9.586 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.527e-05/0.7591, allocations: 29.7 kB / 0.7272 GB, free: 9.551 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.221e-05/0.7592, allocations: 80.14 kB / 0.7273 GB, free: 9.469 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.516e-05/0.7592, allocations: 23.88 kB / 0.7273 GB, free: 9.445 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.532e-05/0.7593, allocations: 25.7 kB / 0.7274 GB, free: 9.414 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.7594, allocations: 314.8 kB / 0.7277 GB, free: 9.098 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.991e-05/0.7595, allocations: 27.97 kB / 0.7277 GB, free: 9.07 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.7596, allocations: 68.14 kB / 0.7278 GB, free: 8.988 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.7599, allocations: 100.1 kB / 0.7279 GB, free: 8.875 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.7599, allocations: 0 / 0.7279 GB, free: 8.875 MB / 0.545 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002584/0.7601, allocations: 109.5 kB / 0.728 GB, free: 8.762 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.7602, allocations: 4 kB / 0.728 GB, free: 8.758 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.7602, allocations: 0 / 0.728 GB, free: 8.758 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.7602, allocations: 7.984 kB / 0.728 GB, free: 8.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.7603, allocations: 19.94 kB / 0.728 GB, free: 8.73 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.7603, allocations: 3.984 kB / 0.728 GB, free: 8.727 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.349e-05/0.7604, allocations: 8 kB / 0.728 GB, free: 8.719 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.729e-06/0.7604, allocations: 8.125 kB / 0.728 GB, free: 8.711 MB / 0.545 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 0.0001123/0.7605, allocations: 127.6 kB / 0.7281 GB, free: 8.578 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.538e-05/0.7606, allocations: 7.891 kB / 0.7281 GB, free: 8.57 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003169/0.7609, allocations: 106 kB / 0.7282 GB, free: 8.461 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.7609, allocations: 4 kB / 0.7282 GB, free: 8.457 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.7609, allocations: 0 / 0.7282 GB, free: 8.457 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.7609, allocations: 0 / 0.7282 GB, free: 8.457 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004861/0.7614, allocations: 366.4 kB / 0.7286 GB, free: 8.043 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.7614, allocations: 0 / 0.7286 GB, free: 8.043 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.191e-05/0.7615, allocations: 11.98 kB / 0.7286 GB, free: 8.031 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.7615, allocations: 0 / 0.7286 GB, free: 8.031 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.7615, allocations: 4 kB / 0.7286 GB, free: 8.027 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.7615, allocations: 480 / 0.7286 GB, free: 8.027 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.7615, allocations: 0 / 0.7286 GB, free: 8.027 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002745/0.7618, allocations: 211.3 kB / 0.7288 GB, free: 7.805 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.152e-05/0.7619, allocations: 77.11 kB / 0.7289 GB, free: 7.711 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.7619, allocations: 256 / 0.7289 GB, free: 7.711 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.85e-05/0.762, allocations: 15.98 kB / 0.7289 GB, free: 7.695 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.79e-05/0.762, allocations: 7.922 kB / 0.7289 GB, free: 7.688 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.272e-05/0.7621, allocations: 11.94 kB / 0.7289 GB, free: 7.676 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.563e-05/0.7621, allocations: 83.28 kB / 0.729 GB, free: 7.594 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.7621, allocations: 0 / 0.729 GB, free: 7.594 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002361/0.7624, allocations: 16 kB / 0.729 GB, free: 7.578 MB / 0.545 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.0002/0.7626, allocations: 99.23 kB / 0.7291 GB, free: 7.473 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002902/0.7629, allocations: 67.89 kB / 0.7292 GB, free: 7.406 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.7629, allocations: 256 / 0.7292 GB, free: 7.406 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.763, allocations: 39.95 kB / 0.7292 GB, free: 7.367 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.7633, allocations: 16.06 kB / 0.7292 GB, free: 7.352 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003654/0.7637, allocations: 153.1 kB / 0.7294 GB, free: 7.172 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.764, allocations: 0.6807 MB / 0.73 GB, free: 6.465 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.809e-05/0.764, allocations: 8 kB / 0.73 GB, free: 6.457 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.568e-05/0.7641, allocations: 15.42 kB / 0.7301 GB, free: 6.441 MB / 0.545 GB Notification: Performance of SimCode: time 4.01e-07/0.7641, allocations: 0 / 0.7301 GB, free: 6.441 MB / 0.545 GB Notification: Performance of Templates: time 0.003381/0.7675, allocations: 0.6346 MB / 0.7307 GB, free: 5.812 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)