Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.392/2.392, allocations: 251.1 MB / 266.7 MB, free: 11.62 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.001365/0.001365, allocations: 180.2 kB / 326.3 MB, free: 2.867 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.458/2.458, allocations: 205.4 MB / 0.5772 GB, free: 20.8 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.0009539/0.0009533, allocations: 83.16 kB / 0.6817 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005282/0.0005284, allocations: 15.23 kB / 0.7957 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2458, allocations: 106.3 MB / 0.8995 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001684/0.2476, allocations: 1.096 MB / 0.9006 GB, free: 64.39 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005524/0.2482, allocations: 233.4 kB / 0.9008 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.198e-05/0.2483, allocations: 0 / 0.9008 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.598e-05/0.2483, allocations: 3.938 kB / 0.9008 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.2484, allocations: 11.92 kB / 0.9008 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002004/0.2486, allocations: 19.98 kB / 0.9008 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.507e-05/0.2487, allocations: 47.78 kB / 0.9009 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.065e-05/0.2488, allocations: 11.98 kB / 0.9009 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.409e-05/0.2489, allocations: 11.94 kB / 0.9009 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.426e-05/0.249, allocations: 23.91 kB / 0.9009 GB, free: 64.03 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.917e-05/0.249, allocations: 4 kB / 0.9009 GB, free: 64.03 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.368e-05/0.249, allocations: 0 / 0.9009 GB, free: 64.03 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.928e-05/0.2491, allocations: 8 kB / 0.9009 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.914e-05/0.2491, allocations: 33.64 kB / 0.901 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.129e-05/0.2492, allocations: 31.91 kB / 0.901 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2492, allocations: 0 / 0.901 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.126e-06/0.2492, allocations: 4 kB / 0.901 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.2492, allocations: 0 / 0.901 GB, free: 63.95 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.0006015/0.2499, allocations: 363.6 kB / 0.9013 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.2499, allocations: 8.031 kB / 0.9014 GB, free: 63.53 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.949e-05/0.25, allocations: 8.844 kB / 0.9014 GB, free: 63.52 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.741e-05/0.2501, allocations: 160.4 kB / 0.9015 GB, free: 63.33 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.2501, allocations: 8.375 kB / 0.9015 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.01e-05/0.2501, allocations: 384 / 0.9015 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002759/0.2504, allocations: 78.16 kB / 0.9016 GB, free: 63.24 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.2504, allocations: 192 / 0.9016 GB, free: 63.24 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.2504, allocations: 3.938 kB / 0.9016 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.2505, allocations: 4 kB / 0.9016 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000305/0.2508, allocations: 55.95 kB / 0.9017 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004421/0.2512, allocations: 280.8 kB / 0.9019 GB, free: 62.85 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.2515, allocations: 62.48 kB / 0.902 GB, free: 62.78 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.2517, allocations: 36.91 kB / 0.902 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.2517, allocations: 8 kB / 0.902 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002664/0.252, allocations: 75.36 kB / 0.9021 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 2.415e-06/0.252, allocations: 8 kB / 0.9021 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0006567/0.2527, allocations: 133.6 kB / 0.9022 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.2527, allocations: 55.41 kB / 0.9023 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.949e-05/0.2528, allocations: 109.8 kB / 0.9024 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/0.2528, allocations: 29.7 kB / 0.9024 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.587e-05/0.2529, allocations: 91.98 kB / 0.9025 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.832e-05/0.2529, allocations: 23.86 kB / 0.9025 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.653e-06/0.2529, allocations: 3.938 kB / 0.9025 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.835e-05/0.253, allocations: 310.8 kB / 0.9028 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.2532, allocations: 39.97 kB / 0.9029 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.2533, allocations: 60.2 kB / 0.9029 GB, free: 61.74 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.2535, allocations: 39.98 kB / 0.903 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.2536, allocations: 3.938 kB / 0.903 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004194/0.254, allocations: 129.5 kB / 0.9031 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.254, allocations: 8 kB / 0.9031 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.254, allocations: 0 / 0.9031 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.2541, allocations: 0 / 0.9031 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.2542, allocations: 20.23 kB / 0.9031 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.2543, allocations: 3.938 kB / 0.9031 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.2544, allocations: 19.98 kB / 0.9031 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.2544, allocations: 8 kB / 0.9032 GB, free: 61.5 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 ($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 8.998e-05/0.2545, allocations: 123.1 kB / 0.9033 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.856e-05/0.2545, allocations: 4 kB / 0.9033 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004358/0.255, allocations: 114.3 kB / 0.9034 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.255, allocations: 8 kB / 0.9034 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.255, allocations: 0 / 0.9034 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.936e-05/0.2551, allocations: 85 kB / 0.9035 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.402e-05/0.2551, allocations: 0 / 0.9035 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.2552, allocations: 11.98 kB / 0.9035 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.746e-05/0.2553, allocations: 11.94 kB / 0.9035 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004661/0.2558, allocations: 201 kB / 0.9037 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004308/0.2562, allocations: 286.6 kB / 0.904 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002087/0.2564, allocations: 35.98 kB / 0.904 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.664e-05/0.2565, allocations: 87.27 kB / 0.9041 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of Backend: time 7.01e-07/0.2565, allocations: 0 / 0.9041 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005644/0.2571, allocations: 128.2 kB / 0.9042 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of SimCode: time 0.0004943/0.2576, allocations: 0.588 MB / 0.9048 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of Templates: time 0.00357/0.2612, allocations: 0.6714 MB / 0.9054 GB, free: 59.07 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)