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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) 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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.377/1.377, allocations: 251.5 MB / 267.4 MB, free: 11.06 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001057/0.001057, allocations: 175.3 kB / 326.5 MB, free: 2.707 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.102/2.102, allocations: 205 MB / 0.5766 GB, free: 21.02 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00124/0.00124, allocations: 83.94 kB / 0.6803 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003768/0.0003774, allocations: 10.41 kB / 0.7938 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2298, allocations: 105.4 MB / 0.8968 GB, free: 68.17 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002076/0.2319, allocations: 1.116 MB / 0.8978 GB, free: 67.04 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006153/0.2326, allocations: 233.8 kB / 0.8981 GB, free: 66.81 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.694e-05/0.2327, allocations: 0 / 0.8981 GB, free: 66.81 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 4.367e-05/0.2328, allocations: 11.92 kB / 0.8981 GB, free: 66.8 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.82e-05/0.2329, allocations: 0 / 0.8981 GB, free: 66.8 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.2331, allocations: 27.91 kB / 0.8981 GB, free: 66.77 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.182e-05/0.2332, allocations: 43.86 kB / 0.8982 GB, free: 66.73 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.2333, allocations: 11.98 kB / 0.8982 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.456e-05/0.2334, allocations: 12 kB / 0.8982 GB, free: 66.7 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.408e-05/0.2335, allocations: 23.84 kB / 0.8982 GB, free: 66.68 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.2336, allocations: 4 kB / 0.8982 GB, free: 66.68 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.419e-05/0.2336, allocations: 4 kB / 0.8982 GB, free: 66.67 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.548e-05/0.2336, allocations: 7.922 kB / 0.8982 GB, free: 66.66 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.38e-05/0.2337, allocations: 23.86 kB / 0.8982 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.216e-05/0.2338, allocations: 32.16 kB / 0.8983 GB, free: 66.61 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.2338, allocations: 0 / 0.8983 GB, free: 66.61 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.384e-06/0.2338, allocations: 0 / 0.8983 GB, free: 66.61 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.2338, allocations: 0 / 0.8983 GB, free: 66.61 MB / 0.6042 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.0005819/0.2344, allocations: 363.4 kB / 0.8986 GB, free: 66.2 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.2344, allocations: 8.031 kB / 0.8986 GB, free: 66.2 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.716e-05/0.2345, allocations: 4.938 kB / 0.8986 GB, free: 66.19 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.679e-05/0.2346, allocations: 172.3 kB / 0.8988 GB, free: 65.98 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.2346, allocations: 4.375 kB / 0.8988 GB, free: 65.98 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.554e-05/0.2346, allocations: 4.375 kB / 0.8988 GB, free: 65.98 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002111/0.2349, allocations: 78.2 kB / 0.8989 GB, free: 65.89 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.2349, allocations: 192 / 0.8989 GB, free: 65.89 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.2349, allocations: 7.938 kB / 0.8989 GB, free: 65.89 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.2349, allocations: 0 / 0.8989 GB, free: 65.89 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/0.2351, allocations: 59.89 kB / 0.8989 GB, free: 65.83 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004043/0.2355, allocations: 272.8 kB / 0.8992 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001581/0.2357, allocations: 62.48 kB / 0.8993 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.54e-05/0.2358, allocations: 44.89 kB / 0.8993 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.2358, allocations: 0 / 0.8993 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002056/0.236, allocations: 83.31 kB / 0.8994 GB, free: 65.3 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.236, allocations: 0 / 0.8994 GB, free: 65.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0004033/0.2365, allocations: 149.6 kB / 0.8995 GB, free: 65.15 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.2365, allocations: 51.41 kB / 0.8996 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.301e-05/0.2366, allocations: 109.8 kB / 0.8997 GB, free: 64.97 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.09e-05/0.2366, allocations: 25.7 kB / 0.8997 GB, free: 64.94 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.211e-05/0.2366, allocations: 88.14 kB / 0.8998 GB, free: 64.85 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.2367, allocations: 11.75 kB / 0.8998 GB, free: 64.84 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.596e-05/0.2367, allocations: 21.7 kB / 0.8998 GB, free: 64.81 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.806e-05/0.2367, allocations: 314.8 kB / 0.9001 GB, free: 64.49 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.369e-05/0.2368, allocations: 43.84 kB / 0.9002 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.237, allocations: 64.27 kB / 0.9002 GB, free: 64.37 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001895/0.2372, allocations: 100.1 kB / 0.9003 GB, free: 64.26 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2372, allocations: 0 / 0.9003 GB, free: 64.26 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002537/0.2374, allocations: 129.4 kB / 0.9004 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.2375, allocations: 8 kB / 0.9004 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2375, allocations: 0 / 0.9004 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.2375, allocations: 4 kB / 0.9004 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.2376, allocations: 16.11 kB / 0.9005 GB, free: 64.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.2376, allocations: 8 kB / 0.9005 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.493e-05/0.2377, allocations: 15.98 kB / 0.9005 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.2377, allocations: 0 / 0.9005 GB, free: 64.07 MB / 0.6042 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.253e-05/0.2378, allocations: 128.7 kB / 0.9006 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.371e-05/0.2378, allocations: 7.938 kB / 0.9006 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002667/0.2381, allocations: 118 kB / 0.9007 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.237e-06/0.2381, allocations: 3.984 kB / 0.9007 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2381, allocations: 0 / 0.9007 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.2381, allocations: 0 / 0.9007 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003704/0.2385, allocations: 378.4 kB / 0.9011 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2385, allocations: 0 / 0.9011 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.218e-05/0.2386, allocations: 11.98 kB / 0.9011 GB, free: 63.37 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.2386, allocations: 4 kB / 0.9011 GB, free: 63.37 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.2386, allocations: 4.25 kB / 0.9011 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2386, allocations: 0 / 0.9011 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2386, allocations: 4.188 kB / 0.9011 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002437/0.2388, allocations: 219.7 kB / 0.9013 GB, free: 63.13 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.059e-05/0.2389, allocations: 81.05 kB / 0.9014 GB, free: 63.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.2389, allocations: 4 kB / 0.9014 GB, free: 63.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.057e-05/0.239, allocations: 15.98 kB / 0.9014 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.864e-05/0.239, allocations: 7.984 kB / 0.9014 GB, free: 63 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.2391, allocations: 3.938 kB / 0.9014 GB, free: 63 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.741e-05/0.2391, allocations: 87.28 kB / 0.9015 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2391, allocations: 0 / 0.9015 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002356/0.2394, allocations: 8 kB / 0.9015 GB, free: 62.91 MB / 0.6042 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.0001135/0.2395, allocations: 99.25 kB / 0.9016 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002416/0.2397, allocations: 83.88 kB / 0.9017 GB, free: 62.72 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2397, allocations: 3.938 kB / 0.9017 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.2398, allocations: 44.25 kB / 0.9017 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000249/0.2401, allocations: 9.188 kB / 0.9018 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003298/0.2404, allocations: 176.8 kB / 0.9019 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001189/0.2406, allocations: 0.6848 MB / 0.9026 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.082e-05/0.2406, allocations: 15.44 kB / 0.9026 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of SimCode: time 2.71e-07/0.2406, allocations: 0 / 0.9026 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of Templates: time 0.002133/0.2428, allocations: 0.8079 MB / 0.9034 GB, free: 60.93 MB / 0.6042 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)