Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_6_0_0_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.331/4.331, allocations: 432.6 MB / 445.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.369e-05/4.384e-05, allocations: 6.188 kB / 0.5383 GB, free: 10.29 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2262, allocations: 98.73 MB / 0.6347 GB, free: 1.91 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2765/0.5027, allocations: 126.4 MB / 0.7582 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003502/0.5031, allocations: 71.95 kB / 0.7583 GB, free: 3.223 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01952/0.5227, allocations: 3.43 MB / 0.7616 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.843e-06/0.5227, allocations: 0 / 0.7616 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.281e-05/0.5228, allocations: 12 kB / 0.7616 GB, free: 15.77 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001065/0.5239, allocations: 440.3 kB / 0.762 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.843e-05/0.5239, allocations: 8.031 kB / 0.762 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.216e-05/0.524, allocations: 42.56 kB / 0.7621 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.763e-05/0.5241, allocations: 15.81 kB / 0.7621 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004903/0.5246, allocations: 242.5 kB / 0.7623 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.5247, allocations: 8 kB / 0.7623 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.205e-05/0.5248, allocations: 12 kB / 0.7624 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004163/0.5252, allocations: 136.2 kB / 0.7625 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.5252, allocations: 0 / 0.7625 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.811e-05/0.5253, allocations: 4 kB / 0.7625 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.5253, allocations: 8 kB / 0.7625 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/0.5255, allocations: 47.89 kB / 0.7625 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.5275, allocations: 0.7592 MB / 0.7633 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001563/0.5276, allocations: 42.5 kB / 0.7633 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.5278, allocations: 28.86 kB / 0.7633 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.179e-05/0.5278, allocations: 0 / 0.7633 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003124/0.5281, allocations: 102.8 kB / 0.7634 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 2.985e-06/0.5282, allocations: 0 / 0.7634 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0004607/0.5286, allocations: 117.2 kB / 0.7636 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.5288, allocations: 136.6 kB / 0.7637 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003355/0.5291, allocations: 170 kB / 0.7639 GB, free: 13.22 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.066e-05/0.5292, allocations: 33.7 kB / 0.7639 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.5293, allocations: 131.8 kB / 0.764 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.093e-05/0.5294, allocations: 31.7 kB / 0.764 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.694e-05/0.5295, allocations: 4 kB / 0.764 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.00021/0.5297, allocations: 330.8 kB / 0.7644 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.5298, allocations: 32.38 kB / 0.7644 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002617/0.5301, allocations: 133.2 kB / 0.7645 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000169/0.5303, allocations: 39.98 kB / 0.7646 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.265e-06/0.5303, allocations: 4 kB / 0.7646 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005976/0.5309, allocations: 177.2 kB / 0.7647 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.531, allocations: 11.94 kB / 0.7647 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.531, allocations: 4 kB / 0.7647 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.527e-05/0.531, allocations: 4 kB / 0.7647 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003424/0.5314, allocations: 43.91 kB / 0.7648 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.406e-05/0.5314, allocations: 11.89 kB / 0.7648 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00036/0.5318, allocations: 28.23 kB / 0.7648 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/0.5319, allocations: 15.94 kB / 0.7648 GB, free: 12.13 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 0.0001612/0.532, allocations: 116.9 kB / 0.765 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.758e-05/0.5321, allocations: 19.81 kB / 0.765 GB, free: 11.99 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.429e-05/0.5322, allocations: 21.52 kB / 0.765 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.5322, allocations: 0 / 0.765 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.728e-05/0.5323, allocations: 4 kB / 0.765 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.5323, allocations: 3.953 kB / 0.765 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.5337, allocations: 0.4937 MB / 0.7655 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/0.5337, allocations: 4 kB / 0.7655 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002923/0.534, allocations: 15.98 kB / 0.7655 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.788e-05/0.5341, allocations: 4 kB / 0.7655 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.5341, allocations: 4 kB / 0.7655 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.401e-05/0.5342, allocations: 11.89 kB / 0.7655 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.5342, allocations: 0 / 0.7655 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007043/0.5349, allocations: 357.4 kB / 0.7659 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.535, allocations: 92.95 kB / 0.7659 GB, free: 10.87 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.402e-05/0.5351, allocations: 4.234 kB / 0.766 GB, free: 10.87 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004649/0.5356, allocations: 20.11 kB / 0.766 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.898e-05/0.5357, allocations: 11.92 kB / 0.766 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.997e-05/0.5357, allocations: 11.98 kB / 0.766 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002645/0.536, allocations: 148.4 kB / 0.7661 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.51e-07/0.536, allocations: 0 / 0.7661 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0008123/0.5369, allocations: 35.84 kB / 0.7662 GB, free: 10.64 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulsStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001344/0.5382, allocations: 1.097 MB / 0.7672 GB, free: 9.504 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004368/0.5387, allocations: 92.55 kB / 0.7673 GB, free: 9.414 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 7.313e-06/0.5387, allocations: 256 / 0.7673 GB, free: 9.414 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001915/0.5389, allocations: 43.92 kB / 0.7674 GB, free: 9.371 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009829/0.5399, allocations: 58.41 kB / 0.7674 GB, free: 9.316 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.5415, allocations: 302.1 kB / 0.7677 GB, free: 8.977 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005351/0.542, allocations: 0.7286 MB / 0.7684 GB, free: 8.219 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001797/0.5422, allocations: 17.55 kB / 0.7684 GB, free: 8.199 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/0.5424, allocations: 47.42 kB / 0.7685 GB, free: 8.152 MB / 0.6511 GB Notification: Performance of SimCode: time 1.293e-06/0.5424, allocations: 4 kB / 0.7685 GB, free: 8.148 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03463/0.5771, allocations: 3.537 MB / 0.7719 GB, free: 4.691 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003472/0.5775, allocations: 160.2 kB / 0.7721 GB, free: 4.469 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.732/3.309, allocations: 0 / 0.7721 GB, free: 4.469 MB / 0.6511 GB