Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/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 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.795/1.795, allocations: 306.1 MB / 321.4 MB, free: 10.77 MB / 250.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.001349/0.001349, allocations: 183.5 kB / 393.1 MB, free: 4.07 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.536/1.536, allocations: 225.7 MB / 0.6743 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007968/0.0007968, allocations: 92.64 kB / 0.7935 GB, free: 40.06 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.0003531, allocations: 9.875 kB / 0.9224 GB, free: 8.676 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7228/0.7232, allocations: 121.3 MB / 1.041 GB, free: 58.26 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001002/0.7243, allocations: 408.2 kB / 1.041 GB, free: 58.07 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001378/0.7257, allocations: 1.126 MB / 1.042 GB, free: 57.2 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.78e-05/0.7257, allocations: 0.9688 kB / 1.042 GB, free: 57.2 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2e-05/0.7257, allocations: 4.562 kB / 1.042 GB, free: 57.19 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 7.712e-05/0.7258, allocations: 9.266 kB / 1.042 GB, free: 57.18 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002525/0.7261, allocations: 34.47 kB / 1.042 GB, free: 57.17 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.7262, allocations: 71.34 kB / 1.042 GB, free: 57.13 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 9.812e-05/0.7263, allocations: 7.047 kB / 1.042 GB, free: 57.13 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 7.775e-05/0.7264, allocations: 26.62 kB / 1.043 GB, free: 57.12 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 7.033e-05/0.7265, allocations: 29.3 kB / 1.043 GB, free: 57.11 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.435e-05/0.7265, allocations: 3.062 kB / 1.043 GB, free: 57.11 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 6.969e-05/0.7266, allocations: 17.05 kB / 1.043 GB, free: 57.11 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.127e-05/0.7266, allocations: 13.91 kB / 1.043 GB, free: 57.1 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 5.359e-05/0.7266, allocations: 50.81 kB / 1.043 GB, free: 57.05 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001526/0.7268, allocations: 71.14 kB / 1.043 GB, free: 57.03 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.7268, allocations: 0 / 1.043 GB, free: 57.03 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.864e-06/0.7268, allocations: 1.688 kB / 1.043 GB, free: 57.03 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.7268, allocations: 0.6562 kB / 1.043 GB, free: 57.03 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.0005648/0.7274, allocations: 381.7 kB / 1.043 GB, free: 56.66 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.7275, allocations: 8.594 kB / 1.043 GB, free: 56.66 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.343e-05/0.7275, allocations: 4.094 kB / 1.043 GB, free: 56.66 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.365e-05/0.7276, allocations: 172.4 kB / 1.043 GB, free: 56.46 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.7276, allocations: 10.39 kB / 1.043 GB, free: 56.45 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.929e-05/0.7277, allocations: 6.375 kB / 1.043 GB, free: 56.45 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002265/0.7279, allocations: 87.27 kB / 1.043 GB, free: 56.41 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.7279, allocations: 192 / 1.043 GB, free: 56.41 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.7279, allocations: 9.438 kB / 1.043 GB, free: 56.4 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.728, allocations: 2.531 kB / 1.043 GB, free: 56.4 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.7282, allocations: 62.5 kB / 1.043 GB, free: 56.39 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004645/0.7286, allocations: 325.4 kB / 1.044 GB, free: 56.09 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.7288, allocations: 97.2 kB / 1.044 GB, free: 56.04 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.729, allocations: 43.53 kB / 1.044 GB, free: 56.02 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.279e-05/0.729, allocations: 3.047 kB / 1.044 GB, free: 56.02 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002156/0.7292, allocations: 99.14 kB / 1.044 GB, free: 55.96 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.7292, allocations: 0 / 1.044 GB, free: 55.96 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0004844/0.7297, allocations: 190.2 kB / 1.044 GB, free: 55.89 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.987e-05/0.7298, allocations: 59.06 kB / 1.044 GB, free: 55.82 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.992e-05/0.7298, allocations: 105.7 kB / 1.044 GB, free: 55.72 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.7299, allocations: 32.36 kB / 1.044 GB, free: 55.69 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.231e-05/0.7299, allocations: 85.41 kB / 1.044 GB, free: 55.6 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.7299, allocations: 28.88 kB / 1.044 GB, free: 55.58 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.152e-06/0.7299, allocations: 0 / 1.044 GB, free: 55.58 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 5.794e-05/0.73, allocations: 319.4 kB / 1.045 GB, free: 55.26 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.7301, allocations: 44.98 kB / 1.045 GB, free: 55.25 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.7303, allocations: 64.78 kB / 1.045 GB, free: 55.22 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00024/0.7305, allocations: 120.5 kB / 1.045 GB, free: 55.16 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.7305, allocations: 3.938 kB / 1.045 GB, free: 55.15 MB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002993/0.7308, allocations: 151.7 kB / 1.045 GB, free: 55.09 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.7308, allocations: 8.625 kB / 1.045 GB, free: 55.08 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.7309, allocations: 0 / 1.045 GB, free: 55.08 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.7309, allocations: 2.344 kB / 1.045 GB, free: 55.08 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.731, allocations: 30.25 kB / 1.045 GB, free: 55.07 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.731, allocations: 5.375 kB / 1.045 GB, free: 55.07 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.097e-05/0.7311, allocations: 14.12 kB / 1.045 GB, free: 55.07 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.7311, allocations: 3.75 kB / 1.045 GB, free: 55.07 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 8.628e-05/0.7312, allocations: 130.8 kB / 1.045 GB, free: 54.94 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.291e-05/0.7312, allocations: 9.531 kB / 1.045 GB, free: 54.94 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003518/0.7316, allocations: 158.6 kB / 1.045 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.7316, allocations: 0 / 1.045 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.7316, allocations: 0 / 1.045 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.7316, allocations: 4.281 kB / 1.045 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004642/0.7321, allocations: 417.3 kB / 1.046 GB, free: 54.52 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.7321, allocations: 0 / 1.046 GB, free: 54.52 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.218e-05/0.7322, allocations: 27.16 kB / 1.046 GB, free: 54.51 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.7322, allocations: 0 / 1.046 GB, free: 54.51 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.7322, allocations: 1.656 kB / 1.046 GB, free: 54.51 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.7322, allocations: 0 / 1.046 GB, free: 54.51 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.7322, allocations: 0 / 1.046 GB, free: 54.51 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003142/0.7325, allocations: 247.8 kB / 1.046 GB, free: 54.34 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.472e-05/0.7326, allocations: 84.75 kB / 1.046 GB, free: 54.25 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.7326, allocations: 2.016 kB / 1.046 GB, free: 54.25 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.7327, allocations: 15.7 kB / 1.046 GB, free: 54.24 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.869e-05/0.7328, allocations: 6 kB / 1.046 GB, free: 54.24 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.7328, allocations: 13.83 kB / 1.046 GB, free: 54.23 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.259e-05/0.7329, allocations: 83.72 kB / 1.046 GB, free: 54.16 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7329, allocations: 0 / 1.046 GB, free: 54.16 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002276/0.7331, allocations: 20.53 kB / 1.046 GB, free: 54.15 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.000162/0.7333, allocations: 108.2 kB / 1.046 GB, free: 54.06 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0003126/0.7336, allocations: 113 kB / 1.047 GB, free: 54.04 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.7336, allocations: 0 / 1.047 GB, free: 54.04 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.7337, allocations: 65.44 kB / 1.047 GB, free: 54.01 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002489/0.734, allocations: 4.625 kB / 1.047 GB, free: 54.01 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003461/0.7343, allocations: 173.9 kB / 1.047 GB, free: 53.87 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001217/0.7345, allocations: 0.6859 MB / 1.047 GB, free: 53.17 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.713e-05/0.7345, allocations: 11.44 kB / 1.047 GB, free: 53.17 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.704e-05/0.7346, allocations: 15.73 kB / 1.047 GB, free: 53.16 MB / 0.698 GB Notification: Performance of SimCode: time 2.1e-07/0.7346, allocations: 1.594 kB / 1.047 GB, free: 53.16 MB / 0.698 GB Notification: Performance of Templates: time 0.003313/0.7379, allocations: 0.916 MB / 1.048 GB, free: 53.07 MB / 0.698 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)