Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01061/0.01061, allocations: 89.31 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.00131/0.001309, allocations: 173.8 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.244/2.244, allocations: 205.5 MB / 222.2 MB, free: 13.71 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.322/2.322, allocations: 252.8 MB / 0.511 GB, free: 8.352 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006476/0.0006478, allocations: 18.59 kB / 0.6243 GB, free: 28.31 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.276, allocations: 106.2 MB / 0.7281 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.004008/0.2801, allocations: 1.495 MB / 0.7295 GB, free: 8.645 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.001458/0.2816, allocations: 0.5507 MB / 0.7301 GB, free: 8.086 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.2817, allocations: 7.938 kB / 0.7301 GB, free: 8.078 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 4.119e-05/0.2818, allocations: 11.86 kB / 0.7301 GB, free: 8.066 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.282, allocations: 31.88 kB / 0.7301 GB, free: 8.035 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.2823, allocations: 47.94 kB / 0.7302 GB, free: 7.988 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0003173/0.2826, allocations: 119.8 kB / 0.7303 GB, free: 7.871 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.2828, allocations: 41.81 kB / 0.7303 GB, free: 7.832 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 9.991e-05/0.2829, allocations: 35.8 kB / 0.7303 GB, free: 7.797 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001039/0.283, allocations: 55.64 kB / 0.7304 GB, free: 7.742 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.548e-05/0.283, allocations: 4 kB / 0.7304 GB, free: 7.738 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 2.383e-05/0.2831, allocations: 4 kB / 0.7304 GB, free: 7.734 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 3.602e-05/0.2831, allocations: 23.92 kB / 0.7304 GB, free: 7.711 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 6.211e-05/0.2832, allocations: 45.58 kB / 0.7305 GB, free: 7.66 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.2834, allocations: 92.05 kB / 0.7306 GB, free: 7.57 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.2834, allocations: 0 / 0.7306 GB, free: 7.57 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.763e-06/0.2834, allocations: 0 / 0.7306 GB, free: 7.57 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.2834, allocations: 0 / 0.7306 GB, free: 7.57 MB / 0.5573 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.000922/0.2843, allocations: 454.7 kB / 0.731 GB, free: 7.078 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.2844, allocations: 8.031 kB / 0.731 GB, free: 7.07 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.879e-05/0.2845, allocations: 42.55 kB / 0.731 GB, free: 7.02 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.156e-05/0.2845, allocations: 23.77 kB / 0.7311 GB, free: 6.996 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004407/0.285, allocations: 227.7 kB / 0.7313 GB, free: 6.734 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.285, allocations: 8 kB / 0.7313 GB, free: 6.727 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.451e-05/0.2851, allocations: 12 kB / 0.7313 GB, free: 6.715 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000745/0.2859, allocations: 152 kB / 0.7314 GB, free: 6.547 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.2859, allocations: 3.938 kB / 0.7314 GB, free: 6.543 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.892e-05/0.286, allocations: 4 kB / 0.7315 GB, free: 6.539 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.098e-05/0.2861, allocations: 11.94 kB / 0.7315 GB, free: 6.527 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006294/0.2867, allocations: 83.88 kB / 0.7315 GB, free: 6.445 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.2888, allocations: 0.7314 MB / 0.7323 GB, free: 5.648 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004569/0.2893, allocations: 50.55 kB / 0.7323 GB, free: 5.59 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 4.313e-05/0.2894, allocations: 8.156 kB / 0.7323 GB, free: 5.582 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006699/0.29, allocations: 130.9 kB / 0.7324 GB, free: 5.43 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=11): time 4.087e-06/0.2901, allocations: 0 / 0.7324 GB, free: 5.43 MB / 0.5573 GB Notification: Performance of matching and sorting (n=11): time 0.00121/0.2913, allocations: 181.2 kB / 0.7326 GB, free: 5.246 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/0.2915, allocations: 144.7 kB / 0.7327 GB, free: 5.074 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004962/0.292, allocations: 198.9 kB / 0.7329 GB, free: 4.871 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.962e-05/0.2921, allocations: 25.7 kB / 0.733 GB, free: 4.84 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.2923, allocations: 131.8 kB / 0.7331 GB, free: 4.707 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 9.888e-05/0.2924, allocations: 35.55 kB / 0.7331 GB, free: 4.672 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.199e-05/0.2925, allocations: 4 kB / 0.7331 GB, free: 4.668 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002338/0.2927, allocations: 330.8 kB / 0.7334 GB, free: 4.336 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000402/0.2931, allocations: 44.34 kB / 0.7335 GB, free: 4.293 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005493/0.2937, allocations: 154.2 kB / 0.7336 GB, free: 4.094 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004025/0.2941, allocations: 63.97 kB / 0.7337 GB, free: 4.031 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.2942, allocations: 4 kB / 0.7337 GB, free: 4.027 MB / 0.5573 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00103/0.2952, allocations: 213.5 kB / 0.7339 GB, free: 3.812 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.139e-05/0.2953, allocations: 8 kB / 0.7339 GB, free: 3.805 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.106e-05/0.2953, allocations: 4 kB / 0.7339 GB, free: 3.801 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.538e-05/0.2954, allocations: 7.953 kB / 0.7339 GB, free: 3.793 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004412/0.2959, allocations: 43.91 kB / 0.734 GB, free: 3.75 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.438e-05/0.2959, allocations: 7.938 kB / 0.734 GB, free: 3.742 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004496/0.2964, allocations: 31.83 kB / 0.734 GB, free: 3.711 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.449e-05/0.2964, allocations: 12.28 kB / 0.734 GB, free: 3.699 MB / 0.5573 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,sampleTrigger.y,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked 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.0002535/0.2967, allocations: 129.8 kB / 0.7341 GB, free: 3.562 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.975e-05/0.2968, allocations: 23.8 kB / 0.7342 GB, free: 3.539 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.505e-05/0.2969, allocations: 17.41 kB / 0.7342 GB, free: 3.52 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.768e-05/0.297, allocations: 11.95 kB / 0.7342 GB, free: 3.508 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.297, allocations: 0 / 0.7342 GB, free: 3.508 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.297, allocations: 0 / 0.7342 GB, free: 3.508 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/0.2988, allocations: 0.5288 MB / 0.7347 GB, free: 2.922 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.2988, allocations: 0 / 0.7347 GB, free: 2.922 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.2991, allocations: 23.98 kB / 0.7347 GB, free: 2.898 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/0.2991, allocations: 4.234 kB / 0.7347 GB, free: 2.895 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/0.2991, allocations: 7.984 kB / 0.7347 GB, free: 2.887 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.074e-06/0.2992, allocations: 3.938 kB / 0.7347 GB, free: 2.883 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.2992, allocations: 0 / 0.7347 GB, free: 2.883 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008683/0.3, allocations: 413.3 kB / 0.7351 GB, free: 2.438 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 8.699e-05/0.3002, allocations: 88.92 kB / 0.7352 GB, free: 2.332 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.22e-05/0.3002, allocations: 8 kB / 0.7352 GB, free: 2.324 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002757/0.3005, allocations: 16.03 kB / 0.7352 GB, free: 2.309 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.317e-05/0.3006, allocations: 19.91 kB / 0.7353 GB, free: 2.289 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.3006, allocations: 4 kB / 0.7353 GB, free: 2.285 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001946/0.3008, allocations: 148.3 kB / 0.7354 GB, free: 2.141 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.51e-07/0.3008, allocations: 0 / 0.7354 GB, free: 2.141 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.000495/0.3013, allocations: 31.91 kB / 0.7354 GB, free: 2.109 MB / 0.5573 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.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked 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.00156/0.3029, allocations: 1.155 MB / 0.7366 GB, free: 0.9102 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0008281/0.3038, allocations: 124.6 kB / 0.7367 GB, free: 0.7891 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.3038, allocations: 3.938 kB / 0.7367 GB, free: 0.7852 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.000386/0.3042, allocations: 55.91 kB / 0.7367 GB, free: 0.7305 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/0.3053, allocations: 51.89 kB / 0.7368 GB, free: 0.6797 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00552/0.3109, allocations: 3.507 MB / 0.7402 GB, free: 13.04 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005073/0.3114, allocations: 0.7284 MB / 0.7409 GB, free: 12.28 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0002158/0.3117, allocations: 21.53 kB / 0.7409 GB, free: 12.26 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001771/0.3119, allocations: 47.42 kB / 0.741 GB, free: 12.22 MB / 0.573 GB Notification: Performance of SimCode: time 1.032e-06/0.3119, allocations: 0 / 0.741 GB, free: 12.22 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07921/0.3911, allocations: 3.545 MB / 0.7445 GB, free: 8.805 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002579/0.3914, allocations: 184.3 kB / 0.7446 GB, free: 8.57 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.717/3.108, allocations: 0 / 0.7446 GB, free: 8.57 MB / 0.573 GB