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.619/1.619, allocations: 251.9 MB / 266.9 MB, free: 10.89 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.001097/0.001097, allocations: 182.2 kB / 326.5 MB, free: 2.258 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.011/2.011, allocations: 205.4 MB / 0.5775 GB, free: 20.54 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.000954/0.0009543, allocations: 90.36 kB / 0.6821 GB, free: 13.37 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003493/0.0003494, allocations: 12.2 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2458, allocations: 106.3 MB / 0.9002 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.184/0.4298, allocations: 133.7 MB / 1.031 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.4302, allocations: 71.97 kB / 1.031 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01024/0.4404, allocations: 3.496 MB / 1.034 GB, free: 6.926 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.004e-06/0.4405, allocations: 0 / 1.034 GB, free: 6.926 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.317e-05/0.4405, allocations: 4 kB / 1.034 GB, free: 6.922 MB / 0.6823 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.0008931/0.4414, allocations: 467 kB / 1.035 GB, free: 6.414 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/0.4415, allocations: 8.031 kB / 1.035 GB, free: 6.406 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.877e-05/0.4416, allocations: 46.55 kB / 1.035 GB, free: 6.352 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.431e-05/0.4417, allocations: 15.81 kB / 1.035 GB, free: 6.336 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003873/0.4421, allocations: 230.7 kB / 1.035 GB, free: 6.07 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.4421, allocations: 8 kB / 1.035 GB, free: 6.062 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.535e-05/0.4422, allocations: 15.98 kB / 1.035 GB, free: 6.047 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003588/0.4425, allocations: 155.9 kB / 1.035 GB, free: 5.875 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.4426, allocations: 0 / 1.035 GB, free: 5.875 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.4426, allocations: 4 kB / 1.035 GB, free: 5.871 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.4426, allocations: 4 kB / 1.035 GB, free: 5.867 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002963/0.4429, allocations: 87.77 kB / 1.035 GB, free: 5.781 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.4446, allocations: 0.7627 MB / 1.036 GB, free: 4.953 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.4448, allocations: 46.56 kB / 1.036 GB, free: 4.898 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 4.17e-05/0.4449, allocations: 4 kB / 1.036 GB, free: 4.895 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004253/0.4453, allocations: 130.8 kB / 1.036 GB, free: 4.742 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 2.895e-06/0.4454, allocations: 0 / 1.036 GB, free: 4.742 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0006662/0.446, allocations: 181.4 kB / 1.036 GB, free: 4.559 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001551/0.4462, allocations: 136.5 kB / 1.036 GB, free: 4.395 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000259/0.4465, allocations: 186 kB / 1.037 GB, free: 4.207 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.4465, allocations: 29.7 kB / 1.037 GB, free: 4.172 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.4467, allocations: 139.9 kB / 1.037 GB, free: 4.031 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.169e-05/0.4467, allocations: 23.62 kB / 1.037 GB, free: 4.008 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.608e-06/0.4467, allocations: 4 kB / 1.037 GB, free: 4.004 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002188/0.447, allocations: 330.8 kB / 1.037 GB, free: 3.672 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/0.4471, allocations: 48.34 kB / 1.037 GB, free: 3.621 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002722/0.4474, allocations: 142.5 kB / 1.037 GB, free: 3.434 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001844/0.4476, allocations: 68.09 kB / 1.037 GB, free: 3.367 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.4476, allocations: 0 / 1.037 GB, free: 3.367 MB / 0.6823 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005732/0.4482, allocations: 217.4 kB / 1.038 GB, free: 3.148 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.318e-05/0.4482, allocations: 12.06 kB / 1.038 GB, free: 3.137 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.4483, allocations: 4 kB / 1.038 GB, free: 3.133 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.899e-05/0.4483, allocations: 7.984 kB / 1.038 GB, free: 3.125 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.4485, allocations: 39.92 kB / 1.038 GB, free: 3.086 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.4485, allocations: 4 kB / 1.038 GB, free: 3.082 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001766/0.4487, allocations: 27.83 kB / 1.038 GB, free: 3.055 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.4487, allocations: 16.2 kB / 1.038 GB, free: 3.039 MB / 0.6823 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.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.0001676/0.4489, allocations: 145.6 kB / 1.038 GB, free: 2.887 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.207e-05/0.4489, allocations: 19.75 kB / 1.038 GB, free: 2.867 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.808e-05/0.449, allocations: 17.41 kB / 1.038 GB, free: 2.848 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.449, allocations: 8 kB / 1.038 GB, free: 2.84 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.449, allocations: 0 / 1.038 GB, free: 2.84 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.719e-06/0.449, allocations: 7.984 kB / 1.038 GB, free: 2.832 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009461/0.45, allocations: 0.5249 MB / 1.038 GB, free: 2.25 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.45, allocations: 0 / 1.038 GB, free: 2.25 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.4501, allocations: 23.98 kB / 1.038 GB, free: 2.227 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.4502, allocations: 4 kB / 1.038 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.4502, allocations: 4 kB / 1.038 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.4502, allocations: 0 / 1.038 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.4502, allocations: 7.953 kB / 1.038 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006689/0.4509, allocations: 405.7 kB / 1.039 GB, free: 1.773 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.862e-05/0.451, allocations: 96.92 kB / 1.039 GB, free: 1.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.451, allocations: 4.047 kB / 1.039 GB, free: 1.656 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/0.4512, allocations: 23.91 kB / 1.039 GB, free: 1.633 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.643e-05/0.4513, allocations: 11.98 kB / 1.039 GB, free: 1.621 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.4513, allocations: 8 kB / 1.039 GB, free: 1.613 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001851/0.4515, allocations: 140.4 kB / 1.039 GB, free: 1.477 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4515, allocations: 4 kB / 1.039 GB, free: 1.473 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004458/0.452, allocations: 24 kB / 1.039 GB, free: 1.449 MB / 0.6823 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,intWitRes1.trigger,$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.001208/0.4532, allocations: 1.164 MB / 1.04 GB, free: 248 kB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003559/0.4536, allocations: 120.5 kB / 1.04 GB, free: 128 kB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.4536, allocations: 320 / 1.04 GB, free: 128 kB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001445/0.4537, allocations: 67.84 kB / 1.04 GB, free: 60 kB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004713/0.4542, allocations: 49.58 kB / 1.04 GB, free: 12 kB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002872/0.4571, allocations: 3.514 MB / 1.044 GB, free: 12.36 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.4575, allocations: 0.7245 MB / 1.045 GB, free: 11.61 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001015/0.4576, allocations: 21.55 kB / 1.045 GB, free: 11.58 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.691e-05/0.4577, allocations: 47.42 kB / 1.045 GB, free: 11.54 MB / 0.698 GB Notification: Performance of SimCode: time 7.51e-07/0.4577, allocations: 0 / 1.045 GB, free: 11.54 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01564/0.4733, allocations: 3.551 MB / 1.048 GB, free: 8.16 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002003/0.4736, allocations: 192.1 kB / 1.048 GB, free: 7.918 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.663/2.136, allocations: 2.25 kB / 1.048 GB, free: 7.918 MB / 0.698 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)