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.489/1.489, allocations: 249.3 MB / 261.8 MB, free: 5.93 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001165/0.001166, allocations: 170.6 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.776/1.776, allocations: 205.2 MB / 0.572 GB, free: 10.68 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.001019/0.001018, allocations: 94.41 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.299e-05/3.299e-05, allocations: 4 kB / 0.788 GB, free: 97.03 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/0.2219, allocations: 106.3 MB / 0.8919 GB, free: 6.605 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7618/0.9838, allocations: 133.7 MB / 1.022 GB, free: 1.098 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.9841, allocations: 74.14 kB / 1.022 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.009633/0.9937, allocations: 3.479 MB / 1.026 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.064e-06/0.9938, allocations: 0 / 1.026 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.681e-05/0.9938, allocations: 12 kB / 1.026 GB, free: 14.08 MB / 0.6511 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.0006087/0.9944, allocations: 441.2 kB / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.9945, allocations: 8.031 kB / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.502e-05/0.9945, allocations: 46.3 kB / 1.026 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.231e-05/0.9946, allocations: 19.81 kB / 1.026 GB, free: 13.54 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002808/0.9949, allocations: 233.5 kB / 1.027 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.9949, allocations: 11.44 kB / 1.027 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.056e-05/0.9949, allocations: 11.5 kB / 1.027 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002258/0.9952, allocations: 132.7 kB / 1.027 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.9952, allocations: 0 / 1.027 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.9952, allocations: 3.312 kB / 1.027 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.9952, allocations: 8.875 kB / 1.027 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/0.9953, allocations: 46.33 kB / 1.027 GB, free: 13.1 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.9964, allocations: 0.7531 MB / 1.028 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 9.217e-05/0.9965, allocations: 45.31 kB / 1.028 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.755e-05/0.9966, allocations: 20.23 kB / 1.028 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.9966, allocations: 0 / 1.028 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001896/0.9968, allocations: 118.8 kB / 1.028 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.9968, allocations: 0 / 1.028 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0002567/0.9971, allocations: 113.4 kB / 1.028 GB, free: 12.04 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.9972, allocations: 136.5 kB / 1.028 GB, free: 11.87 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/0.9974, allocations: 178.4 kB / 1.028 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.9974, allocations: 32.95 kB / 1.028 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.736e-05/0.9975, allocations: 129.5 kB / 1.028 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.304e-05/0.9976, allocations: 34.38 kB / 1.028 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.242e-06/0.9976, allocations: 0 / 1.028 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.9977, allocations: 329.5 kB / 1.029 GB, free: 11.22 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.778e-05/0.9978, allocations: 31.59 kB / 1.029 GB, free: 11.19 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.9979, allocations: 129.3 kB / 1.029 GB, free: 11.03 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.258e-05/0.998, allocations: 47.23 kB / 1.029 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.998, allocations: 4 kB / 1.029 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002724/0.9983, allocations: 181 kB / 1.029 GB, free: 10.83 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.9984, allocations: 9.094 kB / 1.029 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.9984, allocations: 4 kB / 1.029 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.9984, allocations: 4 kB / 1.029 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.9985, allocations: 35.92 kB / 1.029 GB, free: 10.78 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.9986, allocations: 7.938 kB / 1.029 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.9987, allocations: 39.97 kB / 1.029 GB, free: 10.73 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.9987, allocations: 8 kB / 1.029 GB, free: 10.73 MB / 0.6511 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 () * 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 9.382e-05/0.9988, allocations: 123.6 kB / 1.029 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.933e-05/0.9989, allocations: 19.81 kB / 1.029 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.769e-05/0.9989, allocations: 19.91 kB / 1.029 GB, free: 10.58 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.9989, allocations: 3.984 kB / 1.029 GB, free: 10.58 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.9989, allocations: 4 kB / 1.029 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.999, allocations: 0 / 1.029 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006316/0.9996, allocations: 496.5 kB / 1.03 GB, free: 10.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.9996, allocations: 7.938 kB / 1.03 GB, free: 10.06 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.9997, allocations: 23.42 kB / 1.03 GB, free: 10.04 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.9998, allocations: 7.938 kB / 1.03 GB, free: 10.04 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.9998, allocations: 7.984 kB / 1.03 GB, free: 10.03 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.9998, allocations: 4 kB / 1.03 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.9998, allocations: 3.953 kB / 1.03 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003493/1, allocations: 349 kB / 1.03 GB, free: 9.668 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.363e-05/1, allocations: 100.1 kB / 1.03 GB, free: 9.555 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.696e-05/1, allocations: 4 kB / 1.03 GB, free: 9.551 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/1, allocations: 23.95 kB / 1.03 GB, free: 9.531 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.996e-05/1, allocations: 7.984 kB / 1.03 GB, free: 9.523 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/1.001, allocations: 4 kB / 1.03 GB, free: 9.52 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001125/1.001, allocations: 142.1 kB / 1.03 GB, free: 9.398 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.51e-07/1.001, allocations: 0 / 1.03 GB, free: 9.398 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.00032/1.001, allocations: 35.3 kB / 1.03 GB, free: 9.367 MB / 0.6511 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 () * 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.0007575/1.002, allocations: 1.099 MB / 1.031 GB, free: 8.262 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001826/1.002, allocations: 93.14 kB / 1.032 GB, free: 8.188 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/1.002, allocations: 0 / 1.032 GB, free: 8.188 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.754e-05/1.002, allocations: 42.38 kB / 1.032 GB, free: 8.156 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004237/1.002, allocations: 62.67 kB / 1.032 GB, free: 8.109 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006843/1.003, allocations: 310.5 kB / 1.032 GB, free: 7.781 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/1.003, allocations: 0.7325 MB / 1.033 GB, free: 7.023 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.335e-05/1.004, allocations: 17.53 kB / 1.033 GB, free: 7.004 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.465e-05/1.004, allocations: 50.92 kB / 1.033 GB, free: 6.98 MB / 0.6511 GB Notification: Performance of SimCode: time 2.51e-07/1.004, allocations: 0 / 1.033 GB, free: 6.98 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01395/1.018, allocations: 3.535 MB / 1.036 GB, free: 3.574 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/1.018, allocations: 161.5 kB / 1.036 GB, free: 3.355 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.672/2.69, allocations: 8.062 kB / 1.036 GB, free: 3.348 MB / 0.6511 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)