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.742/1.742, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.001311/0.001311, allocations: 180.8 kB / 326.5 MB, free: 2.219 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.792/1.792, allocations: 205.4 MB / 0.5775 GB, free: 20.27 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.001153/0.001153, allocations: 91.56 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003687/0.0003688, allocations: 12.94 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2412, allocations: 106.3 MB / 0.9001 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001889/0.2431, allocations: 1.488 MB / 0.9016 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008503/0.244, allocations: 0.562 MB / 0.9021 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.364e-05/0.2441, allocations: 0 / 0.9021 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.362e-05/0.2442, allocations: 11.86 kB / 0.9022 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.2443, allocations: 35.88 kB / 0.9022 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001783/0.2445, allocations: 47.95 kB / 0.9022 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001746/0.2447, allocations: 119.7 kB / 0.9024 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.2448, allocations: 37.78 kB / 0.9024 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.642e-05/0.2449, allocations: 39.8 kB / 0.9024 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.636e-05/0.2449, allocations: 51.69 kB / 0.9025 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.859e-05/0.245, allocations: 8 kB / 0.9025 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.601e-05/0.245, allocations: 4 kB / 0.9025 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.929e-05/0.245, allocations: 19.86 kB / 0.9025 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.697e-05/0.245, allocations: 49.64 kB / 0.9026 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001206/0.2452, allocations: 88.05 kB / 0.9026 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.2452, allocations: 0 / 0.9026 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.322e-06/0.2452, allocations: 0 / 0.9026 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.2452, allocations: 0 / 0.9026 GB, free: 61.26 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.0005692/0.2458, allocations: 454.7 kB / 0.9031 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.2458, allocations: 8.031 kB / 0.9031 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.692e-05/0.2459, allocations: 42.55 kB / 0.9031 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.417e-05/0.2459, allocations: 19.77 kB / 0.9031 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001983/0.2461, allocations: 226.6 kB / 0.9034 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.2461, allocations: 8 kB / 0.9034 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.762e-05/0.2462, allocations: 12 kB / 0.9034 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002523/0.2464, allocations: 156.5 kB / 0.9035 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.2464, allocations: 0 / 0.9035 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.2465, allocations: 7.984 kB / 0.9035 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2465, allocations: 0 / 0.9035 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.2467, allocations: 87.84 kB / 0.9036 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007216/0.2474, allocations: 0.7472 MB / 0.9043 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.2476, allocations: 58.48 kB / 0.9044 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.2476, allocations: 0 / 0.9044 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002406/0.2479, allocations: 130.7 kB / 0.9045 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.362e-06/0.2479, allocations: 3.938 kB / 0.9045 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0004351/0.2483, allocations: 177.5 kB / 0.9047 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.2484, allocations: 140.5 kB / 0.9048 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.2485, allocations: 194.9 kB / 0.905 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.36e-05/0.2485, allocations: 33.69 kB / 0.9051 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.476e-05/0.2486, allocations: 127.9 kB / 0.9052 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.2486, allocations: 35.69 kB / 0.9052 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.815e-06/0.2486, allocations: 4 kB / 0.9052 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.507e-05/0.2487, allocations: 326.8 kB / 0.9055 GB, free: 58.03 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.2488, allocations: 52.28 kB / 0.9056 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.249, allocations: 150 kB / 0.9057 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001426/0.2491, allocations: 67.92 kB / 0.9058 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2491, allocations: 0 / 0.9058 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003374/0.2495, allocations: 217.5 kB / 0.906 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.2495, allocations: 8 kB / 0.906 GB, free: 57.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.2495, allocations: 4.047 kB / 0.906 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.2495, allocations: 7.984 kB / 0.906 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.2496, allocations: 43.88 kB / 0.906 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.2497, allocations: 4 kB / 0.9061 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.2498, allocations: 40 kB / 0.9061 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.2498, allocations: 12 kB / 0.9061 GB, free: 57.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 ($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 8.127e-05/0.2499, allocations: 127.7 kB / 0.9062 GB, free: 57.25 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.348e-05/0.2499, allocations: 15.81 kB / 0.9062 GB, free: 57.23 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.078e-05/0.25, allocations: 25.39 kB / 0.9063 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.25, allocations: 0 / 0.9063 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.25, allocations: 3.953 kB / 0.9063 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.25, allocations: 4 kB / 0.9063 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006181/0.2506, allocations: 0.5172 MB / 0.9068 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.2507, allocations: 8 kB / 0.9068 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/0.2508, allocations: 23.92 kB / 0.9068 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.2508, allocations: 4 kB / 0.9068 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.2508, allocations: 3.953 kB / 0.9068 GB, free: 56.58 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.2508, allocations: 4 kB / 0.9068 GB, free: 56.58 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2508, allocations: 0 / 0.9068 GB, free: 56.58 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004399/0.2513, allocations: 419.3 kB / 0.9072 GB, free: 56.13 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.926e-05/0.2513, allocations: 92.95 kB / 0.9073 GB, free: 56.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.2513, allocations: 4 kB / 0.9073 GB, free: 56.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.2515, allocations: 16.3 kB / 0.9073 GB, free: 56 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.352e-05/0.2516, allocations: 15.98 kB / 0.9073 GB, free: 55.98 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.2516, allocations: 12 kB / 0.9074 GB, free: 55.97 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 7.76e-05/0.2517, allocations: 144.2 kB / 0.9075 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2517, allocations: 0 / 0.9075 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003268/0.252, allocations: 35.84 kB / 0.9075 GB, free: 55.8 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.000623/0.2526, allocations: 1.155 MB / 0.9087 GB, free: 54.6 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002802/0.2529, allocations: 120.1 kB / 0.9088 GB, free: 54.48 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.2529, allocations: 4 kB / 0.9088 GB, free: 54.48 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000129/0.2531, allocations: 51.91 kB / 0.9088 GB, free: 54.43 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004353/0.2535, allocations: 52.92 kB / 0.9089 GB, free: 54.38 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001667/0.2552, allocations: 3.506 MB / 0.9123 GB, free: 50.73 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001548/0.2554, allocations: 0.7284 MB / 0.913 GB, free: 49.97 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.412e-05/0.2555, allocations: 21.53 kB / 0.913 GB, free: 49.95 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.191e-05/0.2556, allocations: 51.42 kB / 0.9131 GB, free: 49.91 MB / 0.6042 GB Notification: Performance of SimCode: time 2.21e-07/0.2556, allocations: 0 / 0.9131 GB, free: 49.91 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01376/0.2693, allocations: 3.536 MB / 0.9165 GB, free: 46.54 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001742/0.2695, allocations: 198.8 kB / 0.9167 GB, free: 46.29 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.709/1.979, allocations: 5.547 kB / 0.9167 GB, free: 46.29 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)