Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.39/1.39, allocations: 251.5 MB / 267.4 MB, free: 11.08 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009718/0.0009717, allocations: 175.4 kB / 326.5 MB, free: 2.727 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205 MB / 0.5766 GB, free: 21.04 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008472/0.0008472, allocations: 83.95 kB / 0.6803 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.0003402, allocations: 14.61 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2738, allocations: 105.4 MB / 0.8967 GB, free: 68.23 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002128/0.276, allocations: 1.54 MB / 0.8982 GB, free: 66.67 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001091/0.2771, allocations: 0.585 MB / 0.8988 GB, free: 66.08 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001956/0.2773, allocations: 7.938 kB / 0.8988 GB, free: 66.07 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001819/0.2775, allocations: 11.86 kB / 0.8988 GB, free: 66.06 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001089/0.2776, allocations: 27.78 kB / 0.8989 GB, free: 66.03 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003109/0.278, allocations: 55.92 kB / 0.8989 GB, free: 65.98 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002622/0.2782, allocations: 167.4 kB / 0.8991 GB, free: 65.81 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.2784, allocations: 53.59 kB / 0.8991 GB, free: 65.76 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.2786, allocations: 43.72 kB / 0.8992 GB, free: 65.72 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 8.938e-05/0.2787, allocations: 51.64 kB / 0.8992 GB, free: 65.67 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.2787, allocations: 4 kB / 0.8992 GB, free: 65.66 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.878e-05/0.2787, allocations: 8 kB / 0.8992 GB, free: 65.66 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.139e-05/0.2788, allocations: 15.92 kB / 0.8992 GB, free: 65.64 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.545e-05/0.2788, allocations: 55.61 kB / 0.8993 GB, free: 65.59 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.279, allocations: 87.7 kB / 0.8994 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.279, allocations: 4 kB / 0.8994 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.056e-06/0.279, allocations: 0 / 0.8994 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.812e-06/0.279, allocations: 0 / 0.8994 GB, free: 65.5 MB / 0.6042 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.000731/0.2797, allocations: 454.8 kB / 0.8998 GB, free: 65 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.2798, allocations: 12.03 kB / 0.8998 GB, free: 64.99 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.576e-05/0.2799, allocations: 20.75 kB / 0.8998 GB, free: 64.97 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.2801, allocations: 231.8 kB / 0.9001 GB, free: 64.71 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.2801, allocations: 8.375 kB / 0.9001 GB, free: 64.7 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.087e-05/0.2802, allocations: 12.38 kB / 0.9001 GB, free: 64.69 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002796/0.2805, allocations: 158.2 kB / 0.9002 GB, free: 64.51 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.2805, allocations: 0 / 0.9002 GB, free: 64.51 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.2805, allocations: 4 kB / 0.9002 GB, free: 64.51 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.2805, allocations: 0 / 0.9002 GB, free: 64.51 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000219/0.2807, allocations: 83.88 kB / 0.9003 GB, free: 64.43 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007752/0.2815, allocations: 0.747 MB / 0.9011 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001378/0.2817, allocations: 58.48 kB / 0.9011 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.808e-05/0.2818, allocations: 36.83 kB / 0.9011 GB, free: 63.51 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.2818, allocations: 4 kB / 0.9011 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002406/0.2821, allocations: 126.7 kB / 0.9013 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.213e-06/0.2821, allocations: 0 / 0.9013 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0004603/0.2825, allocations: 185.3 kB / 0.9014 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.352e-05/0.2826, allocations: 140.7 kB / 0.9016 GB, free: 63 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.2828, allocations: 207.5 kB / 0.9018 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.2828, allocations: 29.7 kB / 0.9018 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.709e-05/0.2829, allocations: 119.9 kB / 0.9019 GB, free: 62.63 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.812e-05/0.2829, allocations: 39.59 kB / 0.902 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.107e-05/0.2829, allocations: 29.66 kB / 0.902 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.491e-05/0.283, allocations: 330.8 kB / 0.9023 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.2831, allocations: 47.97 kB / 0.9023 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.2833, allocations: 158.5 kB / 0.9025 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003076/0.2836, allocations: 210.3 kB / 0.9027 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2836, allocations: 0 / 0.9027 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003382/0.284, allocations: 217.4 kB / 0.9029 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.284, allocations: 4 kB / 0.9029 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.284, allocations: 7.984 kB / 0.9029 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.284, allocations: 8 kB / 0.9029 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.2841, allocations: 39.91 kB / 0.903 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.2842, allocations: 8.25 kB / 0.903 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.2843, allocations: 32.02 kB / 0.903 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.2843, allocations: 16 kB / 0.903 GB, free: 61.38 MB / 0.6042 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 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.282e-05/0.2844, allocations: 133.7 kB / 0.9031 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.572e-05/0.2844, allocations: 23.8 kB / 0.9032 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.999e-05/0.2845, allocations: 17.41 kB / 0.9032 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2845, allocations: 0 / 0.9032 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.2845, allocations: 4 kB / 0.9032 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.2845, allocations: 3.984 kB / 0.9032 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006091/0.2851, allocations: 0.521 MB / 0.9037 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2851, allocations: 4 kB / 0.9037 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.2853, allocations: 28.2 kB / 0.9037 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.2853, allocations: 0 / 0.9037 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.2853, allocations: 7.984 kB / 0.9037 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2853, allocations: 0 / 0.9037 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.2853, allocations: 3.938 kB / 0.9037 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004283/0.2857, allocations: 378.4 kB / 0.9041 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.347e-05/0.2858, allocations: 104.8 kB / 0.9042 GB, free: 60.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.611e-05/0.2858, allocations: 4 kB / 0.9042 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.286, allocations: 16.03 kB / 0.9042 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.244e-05/0.286, allocations: 19.91 kB / 0.9042 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.285e-06/0.2861, allocations: 4 kB / 0.9042 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 8.568e-05/0.2862, allocations: 144.4 kB / 0.9044 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2862, allocations: 0 / 0.9044 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002882/0.2865, allocations: 28 kB / 0.9044 GB, free: 59.85 MB / 0.6042 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 (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.0001109/0.2866, allocations: 107.2 kB / 0.9045 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002902/0.2869, allocations: 132 kB / 0.9046 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2869, allocations: 0 / 0.9046 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.287, allocations: 59.84 kB / 0.9047 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005959/0.2876, allocations: 56.97 kB / 0.9047 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005437/0.2882, allocations: 428.1 kB / 0.9052 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001707/0.2884, allocations: 0.7206 MB / 0.9059 GB, free: 58.29 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.161e-05/0.2884, allocations: 19.44 kB / 0.9059 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of SimCode: time 4.61e-07/0.2884, allocations: 0 / 0.9059 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of Templates: time 0.003059/0.2915, allocations: 2.105 MB / 0.9079 GB, free: 56.18 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)