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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.515/1.515, allocations: 252 MB / 267 MB, free: 10.97 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.0009705/0.0009708, allocations: 178.8 kB / 326.6 MB, free: 2.227 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.07/2.07, allocations: 205.4 MB / 0.5776 GB, free: 20.26 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.0008469/0.0008469, allocations: 91.8 kB / 0.6822 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000373/0.0003731, allocations: 14.91 kB / 0.7965 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2663, allocations: 106.3 MB / 0.9003 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002429/0.2688, allocations: 1.496 MB / 0.9018 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001231/0.2701, allocations: 0.5541 MB / 0.9023 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001956/0.2704, allocations: 7.938 kB / 0.9023 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001433/0.2705, allocations: 11.86 kB / 0.9023 GB, free: 61.74 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000103/0.2706, allocations: 23.78 kB / 0.9024 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.2709, allocations: 51.94 kB / 0.9024 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.00022/0.2711, allocations: 155.5 kB / 0.9025 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.2713, allocations: 37.83 kB / 0.9026 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.854e-05/0.2714, allocations: 35.8 kB / 0.9026 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.556e-05/0.2715, allocations: 43.72 kB / 0.9027 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.274e-05/0.2715, allocations: 8 kB / 0.9027 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.985e-05/0.2715, allocations: 4 kB / 0.9027 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.686e-05/0.2716, allocations: 19.92 kB / 0.9027 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.407e-05/0.2716, allocations: 49.58 kB / 0.9027 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001159/0.2717, allocations: 92.03 kB / 0.9028 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2718, allocations: 4 kB / 0.9028 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.174e-06/0.2718, allocations: 0 / 0.9028 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.2718, allocations: 0 / 0.9028 GB, free: 61.22 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.0006939/0.2725, allocations: 454.7 kB / 0.9033 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.2725, allocations: 8.031 kB / 0.9033 GB, free: 60.72 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.736e-05/0.2726, allocations: 42.55 kB / 0.9033 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.457e-05/0.2727, allocations: 23.77 kB / 0.9033 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.273, allocations: 222.6 kB / 0.9035 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.2731, allocations: 8 kB / 0.9036 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.727e-05/0.2731, allocations: 12 kB / 0.9036 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003305/0.2734, allocations: 156.5 kB / 0.9037 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.2735, allocations: 0 / 0.9037 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.2735, allocations: 8 kB / 0.9037 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.2735, allocations: 0 / 0.9037 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002439/0.2738, allocations: 91.77 kB / 0.9038 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009759/0.2747, allocations: 0.7433 MB / 0.9045 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.2749, allocations: 50.55 kB / 0.9046 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.275, allocations: 52.77 kB / 0.9046 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.2751, allocations: 3.938 kB / 0.9046 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002749/0.2753, allocations: 126.8 kB / 0.9048 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.2753, allocations: 0 / 0.9048 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.000495/0.2758, allocations: 185.5 kB / 0.9049 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.2759, allocations: 132.5 kB / 0.9051 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.2761, allocations: 202.9 kB / 0.9053 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.2761, allocations: 29.7 kB / 0.9053 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.969e-05/0.2762, allocations: 132 kB / 0.9054 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.667e-05/0.2762, allocations: 31.55 kB / 0.9054 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.915e-06/0.2762, allocations: 4 kB / 0.9054 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.171e-05/0.2763, allocations: 326.8 kB / 0.9058 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.2764, allocations: 48.34 kB / 0.9058 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.2766, allocations: 151.2 kB / 0.9059 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001682/0.2768, allocations: 67.92 kB / 0.906 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.2768, allocations: 0 / 0.906 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003676/0.2772, allocations: 209.4 kB / 0.9062 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.2772, allocations: 8 kB / 0.9062 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.2772, allocations: 4 kB / 0.9062 GB, free: 57.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/0.2772, allocations: 11.95 kB / 0.9062 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.2773, allocations: 31.92 kB / 0.9063 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.2774, allocations: 11.92 kB / 0.9063 GB, free: 57.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.2775, allocations: 40.02 kB / 0.9063 GB, free: 57.31 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.2775, allocations: 12 kB / 0.9063 GB, free: 57.3 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 ($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.000105/0.2776, allocations: 125.8 kB / 0.9064 GB, free: 57.16 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.86e-05/0.2777, allocations: 15.81 kB / 0.9065 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.547e-05/0.2777, allocations: 25.39 kB / 0.9065 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.2777, allocations: 0 / 0.9065 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.2778, allocations: 11.89 kB / 0.9065 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.2778, allocations: 4 kB / 0.9065 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006706/0.2784, allocations: 0.5211 MB / 0.907 GB, free: 56.53 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.2785, allocations: 4 kB / 0.907 GB, free: 56.52 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.2786, allocations: 19.92 kB / 0.907 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.2786, allocations: 7.953 kB / 0.907 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.2786, allocations: 4 kB / 0.907 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.2786, allocations: 4 kB / 0.907 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2786, allocations: 0 / 0.907 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004787/0.2791, allocations: 376.4 kB / 0.9074 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.284e-05/0.2792, allocations: 93.05 kB / 0.9075 GB, free: 55.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.2792, allocations: 11.89 kB / 0.9075 GB, free: 55.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001613/0.2794, allocations: 20.28 kB / 0.9075 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.527e-05/0.2794, allocations: 15.98 kB / 0.9075 GB, free: 55.94 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.2795, allocations: 8 kB / 0.9075 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 8.666e-05/0.2795, allocations: 152.1 kB / 0.9077 GB, free: 55.79 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2796, allocations: 0 / 0.9077 GB, free: 55.79 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002979/0.2799, allocations: 31.91 kB / 0.9077 GB, free: 55.75 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 (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.0007057/0.2806, allocations: 0.9034 MB / 0.9086 GB, free: 54.82 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004002/0.281, allocations: 128.7 kB / 0.9087 GB, free: 54.7 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.281, allocations: 0 / 0.9087 GB, free: 54.7 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001486/0.2812, allocations: 56.03 kB / 0.9088 GB, free: 54.64 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005527/0.2817, allocations: 59.64 kB / 0.9088 GB, free: 54.59 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.2834, allocations: 1.11 MB / 0.9099 GB, free: 53.36 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001602/0.2835, allocations: 0.7244 MB / 0.9106 GB, free: 52.61 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 8.711e-05/0.2836, allocations: 21.53 kB / 0.9107 GB, free: 52.59 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.423e-05/0.2837, allocations: 47.42 kB / 0.9107 GB, free: 52.54 MB / 0.6042 GB Notification: Performance of SimCode: time 3.21e-07/0.2837, allocations: 0 / 0.9107 GB, free: 52.54 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01574/0.2995, allocations: 3.562 MB / 0.9142 GB, free: 49.15 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/0.2998, allocations: 198.4 kB / 0.9144 GB, free: 48.91 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.787/2.087, allocations: 4 kB / 0.9144 GB, free: 48.91 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)