Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.886/1.886, allocations: 291.7 MB / 306.8 MB, free: 7.645 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.001453/0.001453, allocations: 180.6 kB / 375.4 MB, free: 5.113 MB / 298.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.672/1.672, allocations: 225.7 MB / 0.6538 GB, free: 13.63 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.0008627/0.0008627, allocations: 101.3 kB / 0.7699 GB, free: 50.36 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004206/0.0004207, allocations: 12 kB / 0.8956 GB, free: 11.87 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8047/0.8051, allocations: 118.1 MB / 1.011 GB, free: 57.81 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0008347/0.806, allocations: 400 kB / 1.011 GB, free: 57.8 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001272/0.8073, allocations: 1.05 MB / 1.012 GB, free: 57.75 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.465e-05/0.8074, allocations: 3.312 kB / 1.012 GB, free: 57.75 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 1.687e-05/0.8074, allocations: 5.812 kB / 1.012 GB, free: 57.74 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 7.291e-05/0.8075, allocations: 5.891 kB / 1.012 GB, free: 57.74 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002387/0.8077, allocations: 39.77 kB / 1.012 GB, free: 57.74 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 9.28e-05/0.8078, allocations: 59.38 kB / 1.012 GB, free: 57.73 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 9.924e-05/0.8079, allocations: 13.8 kB / 1.012 GB, free: 57.73 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 6.985e-05/0.808, allocations: 24.48 kB / 1.012 GB, free: 57.72 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 6.013e-05/0.8081, allocations: 32.69 kB / 1.012 GB, free: 57.72 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.468e-05/0.8081, allocations: 2.906 kB / 1.012 GB, free: 57.72 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 6.295e-05/0.8081, allocations: 15.78 kB / 1.013 GB, free: 57.71 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.8082, allocations: 15.91 kB / 1.013 GB, free: 57.71 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 3.295e-05/0.8082, allocations: 34.14 kB / 1.013 GB, free: 57.68 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001066/0.8083, allocations: 47.77 kB / 1.013 GB, free: 57.68 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.8083, allocations: 5.094 kB / 1.013 GB, free: 57.68 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.993e-06/0.8083, allocations: 0 / 1.013 GB, free: 57.68 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.8083, allocations: 0 / 1.013 GB, free: 57.68 MB / 0.7136 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.0005337/0.8089, allocations: 383.8 kB / 1.013 GB, free: 57.31 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.8089, allocations: 11.47 kB / 1.013 GB, free: 57.31 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.751e-05/0.809, allocations: 9.656 kB / 1.013 GB, free: 57.31 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.803e-05/0.8091, allocations: 168.5 kB / 1.013 GB, free: 57.11 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/0.8091, allocations: 6.188 kB / 1.013 GB, free: 57.11 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.309e-05/0.8091, allocations: 11.66 kB / 1.013 GB, free: 57.11 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002062/0.8093, allocations: 85.33 kB / 1.013 GB, free: 57.08 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.8094, allocations: 192 / 1.013 GB, free: 57.08 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.8094, allocations: 7.875 kB / 1.013 GB, free: 57.07 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.8094, allocations: 0 / 1.013 GB, free: 57.07 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.8096, allocations: 68.48 kB / 1.013 GB, free: 57.07 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004417/0.81, allocations: 313.9 kB / 1.014 GB, free: 56.8 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001799/0.8102, allocations: 89.91 kB / 1.014 GB, free: 56.77 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.8103, allocations: 46.73 kB / 1.014 GB, free: 56.77 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.8104, allocations: 10.53 kB / 1.014 GB, free: 56.76 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002047/0.8106, allocations: 90.89 kB / 1.014 GB, free: 56.71 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.8106, allocations: 0 / 1.014 GB, free: 56.71 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0004398/0.811, allocations: 192.8 kB / 1.014 GB, free: 56.68 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.8111, allocations: 57.61 kB / 1.014 GB, free: 56.61 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.08e-05/0.8112, allocations: 107.7 kB / 1.014 GB, free: 56.52 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.8112, allocations: 34.52 kB / 1.014 GB, free: 56.48 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.461e-05/0.8112, allocations: 89.58 kB / 1.014 GB, free: 56.4 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.8113, allocations: 22.2 kB / 1.014 GB, free: 56.38 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-06/0.8113, allocations: 10.22 kB / 1.014 GB, free: 56.38 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 5.594e-05/0.8113, allocations: 318 kB / 1.015 GB, free: 56.07 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.8115, allocations: 44.52 kB / 1.015 GB, free: 56.07 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00012/0.8116, allocations: 72.72 kB / 1.015 GB, free: 56.04 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002127/0.8118, allocations: 108.5 kB / 1.015 GB, free: 56.01 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.8118, allocations: 0.9375 kB / 1.015 GB, free: 56.01 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000291/0.8121, allocations: 154.2 kB / 1.015 GB, free: 55.97 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.8121, allocations: 5.594 kB / 1.015 GB, free: 55.97 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.8121, allocations: 0 / 1.015 GB, free: 55.97 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.8122, allocations: 2.969 kB / 1.015 GB, free: 55.97 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.8123, allocations: 26.27 kB / 1.015 GB, free: 55.97 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.8123, allocations: 7.125 kB / 1.015 GB, free: 55.96 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.94e-05/0.8124, allocations: 18.91 kB / 1.015 GB, free: 55.96 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.8124, allocations: 4.188 kB / 1.015 GB, free: 55.96 MB / 0.7136 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.463e-05/0.8125, allocations: 126.8 kB / 1.015 GB, free: 55.84 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.192e-05/0.8125, allocations: 3.688 kB / 1.015 GB, free: 55.84 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003085/0.8128, allocations: 155 kB / 1.015 GB, free: 55.8 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.8128, allocations: 3.406 kB / 1.015 GB, free: 55.8 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.8128, allocations: 0 / 1.015 GB, free: 55.8 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.8128, allocations: 0 / 1.015 GB, free: 55.8 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004189/0.8133, allocations: 435.1 kB / 1.016 GB, free: 55.49 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.8133, allocations: 0 / 1.016 GB, free: 55.49 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.478e-05/0.8133, allocations: 16.69 kB / 1.016 GB, free: 55.49 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.8134, allocations: 0 / 1.016 GB, free: 55.49 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.8134, allocations: 2.875 kB / 1.016 GB, free: 55.49 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.8134, allocations: 2.906 kB / 1.016 GB, free: 55.49 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.8134, allocations: 0 / 1.016 GB, free: 55.49 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002859/0.8137, allocations: 247.9 kB / 1.016 GB, free: 55.36 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.071e-05/0.8137, allocations: 82.61 kB / 1.016 GB, free: 55.26 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.8137, allocations: 6.219 kB / 1.016 GB, free: 55.26 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.8138, allocations: 14.48 kB / 1.016 GB, free: 55.26 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.852e-05/0.8139, allocations: 5.094 kB / 1.016 GB, free: 55.26 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.002e-05/0.8139, allocations: 9.484 kB / 1.016 GB, free: 55.25 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.734e-05/0.8139, allocations: 89.16 kB / 1.016 GB, free: 55.18 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8139, allocations: 0 / 1.016 GB, free: 55.18 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002152/0.8142, allocations: 19.34 kB / 1.016 GB, free: 55.18 MB / 0.7136 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001373/0.8143, allocations: 109 kB / 1.016 GB, free: 55.09 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002886/0.8146, allocations: 113.9 kB / 1.016 GB, free: 55.09 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.8146, allocations: 0 / 1.016 GB, free: 55.09 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.8147, allocations: 53.11 kB / 1.017 GB, free: 55.09 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002402/0.815, allocations: 16.67 kB / 1.017 GB, free: 55.08 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003209/0.8153, allocations: 171.1 kB / 1.017 GB, free: 54.95 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001041/0.8154, allocations: 0.6875 MB / 1.017 GB, free: 54.25 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.707e-05/0.8155, allocations: 11.47 kB / 1.017 GB, free: 54.25 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.444e-05/0.8155, allocations: 13.12 kB / 1.017 GB, free: 54.24 MB / 0.7136 GB Notification: Performance of SimCode: time 2e-07/0.8155, allocations: 0 / 1.017 GB, free: 54.24 MB / 0.7136 GB Notification: Performance of Templates: time 0.002852/0.8184, allocations: 0.872 MB / 1.018 GB, free: 54.21 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)