Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 8.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.794/1.794, allocations: 297.4 MB / 312.6 MB, free: 2.926 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009591/0.0009591, allocations: 182 kB / 382.3 MB, free: 14.82 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.598/1.598, allocations: 225.7 MB / 0.6617 GB, free: 7.227 MB / 490.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 96.03 kB / 0.7789 GB, free: 46.91 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003836/0.0003836, allocations: 12 kB / 0.9059 GB, free: 4.926 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7386/0.739, allocations: 119.2 MB / 1.022 GB, free: 58.11 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0009341/0.74, allocations: 416.9 kB / 1.023 GB, free: 57.93 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001532/0.7415, allocations: 1.122 MB / 1.024 GB, free: 57.31 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.008e-05/0.7416, allocations: 0.8125 kB / 1.024 GB, free: 57.31 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.152e-05/0.7416, allocations: 3.938 kB / 1.024 GB, free: 57.3 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 6.532e-05/0.7417, allocations: 6.469 kB / 1.024 GB, free: 57.3 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002581/0.742, allocations: 38.55 kB / 1.024 GB, free: 57.29 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 9.93e-05/0.7421, allocations: 73.3 kB / 1.024 GB, free: 57.25 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 9.691e-05/0.7422, allocations: 7.219 kB / 1.024 GB, free: 57.25 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 7.329e-05/0.7423, allocations: 25.08 kB / 1.024 GB, free: 57.25 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 6.215e-05/0.7423, allocations: 30.33 kB / 1.024 GB, free: 57.23 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.582e-05/0.7423, allocations: 4.062 kB / 1.024 GB, free: 57.23 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.105e-05/0.7424, allocations: 21.45 kB / 1.024 GB, free: 57.23 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.206e-05/0.7424, allocations: 16.7 kB / 1.024 GB, free: 57.22 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 4.912e-05/0.7425, allocations: 44.89 kB / 1.024 GB, free: 57.18 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.7427, allocations: 69.94 kB / 1.024 GB, free: 57.16 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.7427, allocations: 1.031 kB / 1.024 GB, free: 57.16 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.755e-06/0.7427, allocations: 0.8438 kB / 1.024 GB, free: 57.16 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.7427, allocations: 0.5312 kB / 1.024 GB, free: 57.16 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006489/0.7433, allocations: 375.7 kB / 1.024 GB, free: 56.79 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/0.7434, allocations: 11.55 kB / 1.024 GB, free: 56.79 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.67e-05/0.7435, allocations: 9.75 kB / 1.024 GB, free: 56.79 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.7436, allocations: 168.7 kB / 1.025 GB, free: 56.59 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/0.7436, allocations: 9.906 kB / 1.025 GB, free: 56.59 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.414e-05/0.7437, allocations: 7.078 kB / 1.025 GB, free: 56.59 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.7439, allocations: 82.42 kB / 1.025 GB, free: 56.54 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.7439, allocations: 5.594 kB / 1.025 GB, free: 56.54 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.744, allocations: 9.422 kB / 1.025 GB, free: 56.53 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.744, allocations: 1.344 kB / 1.025 GB, free: 56.53 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002363/0.7442, allocations: 61.08 kB / 1.025 GB, free: 56.52 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005728/0.7448, allocations: 318.5 kB / 1.025 GB, free: 56.23 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002473/0.7451, allocations: 91 kB / 1.025 GB, free: 56.18 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001486/0.7452, allocations: 45.59 kB / 1.025 GB, free: 56.16 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.325e-05/0.7453, allocations: 3.766 kB / 1.025 GB, free: 56.16 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003115/0.7456, allocations: 103.5 kB / 1.025 GB, free: 56.1 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 2.945e-06/0.7456, allocations: 2.297 kB / 1.025 GB, free: 56.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0005755/0.7462, allocations: 189.7 kB / 1.026 GB, free: 56.03 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/0.7462, allocations: 58.86 kB / 1.026 GB, free: 55.96 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.7464, allocations: 106.8 kB / 1.026 GB, free: 55.86 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.7464, allocations: 33.11 kB / 1.026 GB, free: 55.82 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.345e-05/0.7464, allocations: 84 kB / 1.026 GB, free: 55.74 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.928e-05/0.7465, allocations: 29.66 kB / 1.026 GB, free: 55.72 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.977e-06/0.7465, allocations: 4.688 kB / 1.026 GB, free: 55.71 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.7466, allocations: 319.8 kB / 1.026 GB, free: 55.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.7468, allocations: 41.06 kB / 1.026 GB, free: 55.39 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.7469, allocations: 67.59 kB / 1.026 GB, free: 55.35 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002537/0.7472, allocations: 118.6 kB / 1.026 GB, free: 55.29 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.7472, allocations: 112 / 1.026 GB, free: 55.29 MB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003098/0.7475, allocations: 153.9 kB / 1.026 GB, free: 55.22 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.7475, allocations: 9.812 kB / 1.027 GB, free: 55.22 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.7475, allocations: 1.281 kB / 1.027 GB, free: 55.22 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.7476, allocations: 1.312 kB / 1.027 GB, free: 55.22 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.7477, allocations: 26.69 kB / 1.027 GB, free: 55.21 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.7477, allocations: 3.953 kB / 1.027 GB, free: 55.21 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.583e-05/0.7478, allocations: 16.05 kB / 1.027 GB, free: 55.21 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.7478, allocations: 4.188 kB / 1.027 GB, free: 55.21 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 9.132e-05/0.7479, allocations: 132.3 kB / 1.027 GB, free: 55.08 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.189e-05/0.7479, allocations: 2.438 kB / 1.027 GB, free: 55.08 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003786/0.7483, allocations: 152.8 kB / 1.027 GB, free: 55.01 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.7483, allocations: 9.266 kB / 1.027 GB, free: 55.01 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.7484, allocations: 0 / 1.027 GB, free: 55.01 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.7484, allocations: 1.547 kB / 1.027 GB, free: 55.01 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005254/0.7489, allocations: 421.7 kB / 1.027 GB, free: 54.66 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.7489, allocations: 0 / 1.027 GB, free: 54.66 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.799e-05/0.749, allocations: 21.8 kB / 1.027 GB, free: 54.65 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.749, allocations: 5.828 kB / 1.027 GB, free: 54.65 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.749, allocations: 8.547 kB / 1.027 GB, free: 54.64 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.749, allocations: 2.078 kB / 1.027 GB, free: 54.64 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.749, allocations: 0 / 1.027 GB, free: 54.64 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000338/0.7494, allocations: 244.3 kB / 1.028 GB, free: 54.48 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.382e-05/0.7494, allocations: 84.03 kB / 1.028 GB, free: 54.38 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.807e-05/0.7495, allocations: 8.359 kB / 1.028 GB, free: 54.38 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.7496, allocations: 9.094 kB / 1.028 GB, free: 54.38 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.066e-05/0.7497, allocations: 6.484 kB / 1.028 GB, free: 54.38 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.357e-05/0.7497, allocations: 13.62 kB / 1.028 GB, free: 54.37 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.387e-05/0.7497, allocations: 83.31 kB / 1.028 GB, free: 54.29 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7497, allocations: 0 / 1.028 GB, free: 54.29 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002457/0.75, allocations: 19.91 kB / 1.028 GB, free: 54.29 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002091/0.7502, allocations: 115.7 kB / 1.028 GB, free: 54.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000336/0.7505, allocations: 109.2 kB / 1.028 GB, free: 54.17 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.7506, allocations: 0 / 1.028 GB, free: 54.17 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001432/0.7507, allocations: 56.52 kB / 1.028 GB, free: 54.16 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.751, allocations: 9.844 kB / 1.028 GB, free: 54.16 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004155/0.7514, allocations: 174 kB / 1.028 GB, free: 54.01 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001446/0.7516, allocations: 0.6968 MB / 1.029 GB, free: 53.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.536e-05/0.7516, allocations: 3.375 kB / 1.029 GB, free: 53.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.669e-05/0.7517, allocations: 19.89 kB / 1.029 GB, free: 53.29 MB / 0.698 GB Notification: Performance of SimCode: time 2.2e-07/0.7517, allocations: 3.938 kB / 1.029 GB, free: 53.29 MB / 0.698 GB Notification: Performance of Templates: time 0.003285/0.7549, allocations: 0.9005 MB / 1.03 GB, free: 53.22 MB / 0.698 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)