Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001171, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 197.2 kB / 16.53 MB, free: 6.672 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.524/1.524, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.022/3.022, allocations: 472.6 MB / 0.7451 GB, free: 4.801 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 64.92 kB / 0.912 GB, free: 33.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.513/0.515, allocations: 159.9 MB / 1.068 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.004023/0.5191, allocations: 0.6657 MB / 1.069 GB, free: 9.844 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002464/0.5216, allocations: 1.071 MB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.085e-05/0.5217, allocations: 4 kB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.906e-05/0.5218, allocations: 3.938 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001093/0.5219, allocations: 3.938 kB / 1.07 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005512/0.5225, allocations: 51.81 kB / 1.07 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000142/0.5227, allocations: 43.86 kB / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.5228, allocations: 15.98 kB / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.523, allocations: 15.94 kB / 1.07 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001/0.5231, allocations: 31.89 kB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/0.5231, allocations: 8 kB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.5233, allocations: 19.98 kB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.981e-05/0.5233, allocations: 7.938 kB / 1.07 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.14e-05/0.5234, allocations: 19.92 kB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002458/0.5236, allocations: 55.84 kB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.5237, allocations: 0 / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.766e-06/0.5237, allocations: 0 / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.398e-06/0.5237, allocations: 0 / 1.07 GB, free: 8.484 MB / 0.8262 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.0009423/0.5247, allocations: 375.6 kB / 1.071 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.104e-05/0.5247, allocations: 8.031 kB / 1.071 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.249e-05/0.5248, allocations: 8.844 kB / 1.071 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002247/0.525, allocations: 168.3 kB / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.5251, allocations: 8.375 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.517e-05/0.5251, allocations: 8.312 kB / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003112/0.5254, allocations: 66.2 kB / 1.071 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.5255, allocations: 4.172 kB / 1.071 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.296e-05/0.5255, allocations: 3.938 kB / 1.071 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.5255, allocations: 8 kB / 1.071 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002604/0.5258, allocations: 43.95 kB / 1.071 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006456/0.5264, allocations: 276.7 kB / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002297/0.5267, allocations: 62.48 kB / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.5268, allocations: 36.95 kB / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 6.698e-05/0.5269, allocations: 0 / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003464/0.5273, allocations: 75.38 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.974e-06/0.5273, allocations: 0 / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005673/0.5279, allocations: 129.6 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/0.5279, allocations: 51.41 kB / 1.071 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.5281, allocations: 105.8 kB / 1.072 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.5281, allocations: 25.7 kB / 1.072 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.712e-05/0.5282, allocations: 92.05 kB / 1.072 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.737e-05/0.5282, allocations: 15.75 kB / 1.072 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.016e-05/0.5283, allocations: 25.7 kB / 1.072 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.5284, allocations: 322.8 kB / 1.072 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/0.5285, allocations: 23.97 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.5287, allocations: 64.2 kB / 1.072 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002283/0.5289, allocations: 96.12 kB / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.529, allocations: 4 kB / 1.072 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003108/0.5293, allocations: 105.7 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.5293, allocations: 8 kB / 1.072 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.5293, allocations: 0 / 1.072 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.5293, allocations: 4 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.5295, allocations: 23.92 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.5295, allocations: 0 / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.867e-05/0.5296, allocations: 19.83 kB / 1.072 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.5296, allocations: 4.25 kB / 1.072 GB, free: 6 MB / 0.8262 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.0001075/0.5297, allocations: 120 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.484e-05/0.5297, allocations: 4 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003333/0.5301, allocations: 106 kB / 1.073 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.5301, allocations: 8 kB / 1.073 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.5301, allocations: 192 / 1.073 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.5301, allocations: 0 / 1.073 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005595/0.5307, allocations: 378.6 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.5307, allocations: 0 / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.721e-05/0.5308, allocations: 8 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.5308, allocations: 3.984 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.5308, allocations: 4 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.5308, allocations: 0 / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.5308, allocations: 0 / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00038/0.5312, allocations: 207.5 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.097e-05/0.5313, allocations: 85.05 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.522e-05/0.5313, allocations: 0 / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.5314, allocations: 11.98 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.72e-05/0.5315, allocations: 3.938 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.45e-05/0.5315, allocations: 11.94 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.454e-05/0.5316, allocations: 83.27 kB / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.01e-07/0.5316, allocations: 0 / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002878/0.5319, allocations: 16 kB / 1.073 GB, free: 4.867 MB / 0.8262 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.0002625/0.5322, allocations: 111.2 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003285/0.5325, allocations: 71.88 kB / 1.074 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5325, allocations: 0 / 1.074 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000138/0.5327, allocations: 31.97 kB / 1.074 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.533, allocations: 16.19 kB / 1.074 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005139/0.5335, allocations: 138 kB / 1.074 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.5339, allocations: 0.6807 MB / 1.074 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.136e-05/0.5339, allocations: 4 kB / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.276e-05/0.5339, allocations: 11.44 kB / 1.074 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.5339, allocations: 4 kB / 1.074 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of Templates: time 0.004542/0.5385, allocations: 0.841 MB / 1.075 GB, free: 2.91 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1)