Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 194.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.273/1.273, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.626/1.626, allocations: 292.3 MB / 0.5489 GB, free: 12.88 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 71.75 kB / 0.6715 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1906/0.1921, allocations: 114.5 MB / 0.7834 GB, free: 13.53 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002816/0.1949, allocations: 1.811 MB / 0.7851 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009052/0.1958, allocations: 0.5785 MB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.705e-05/0.1959, allocations: 4 kB / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001213/0.1961, allocations: 23.73 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.853e-05/0.1961, allocations: 35.66 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002027/0.1964, allocations: 63.92 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001995/0.1966, allocations: 175.4 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.1967, allocations: 45.66 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.244e-05/0.1968, allocations: 55.78 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.717e-05/0.1969, allocations: 55.7 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.379e-05/0.1969, allocations: 8 kB / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 2.222e-05/0.1969, allocations: 12 kB / 0.7862 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.312e-05/0.197, allocations: 35.78 kB / 0.7862 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.313e-05/0.197, allocations: 63.61 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.1972, allocations: 127.7 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1972, allocations: 4 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.432e-06/0.1972, allocations: 0 / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.1972, allocations: 0 / 0.7864 GB, free: 10.41 MB / 0.6075 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.0006408/0.1979, allocations: 474.7 kB / 0.7868 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.034e-05/0.1979, allocations: 12.03 kB / 0.7868 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.503e-05/0.1979, allocations: 16.75 kB / 0.7869 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.1982, allocations: 235.8 kB / 0.7871 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.1982, allocations: 8.375 kB / 0.7871 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.995e-05/0.1982, allocations: 12.38 kB / 0.7871 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002762/0.1985, allocations: 157.3 kB / 0.7872 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.1985, allocations: 0 / 0.7872 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.1986, allocations: 8 kB / 0.7873 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.1986, allocations: 7.938 kB / 0.7873 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002191/0.1988, allocations: 67.88 kB / 0.7873 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008424/0.1996, allocations: 0.7392 MB / 0.788 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001388/0.1998, allocations: 50.55 kB / 0.7881 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.1999, allocations: 36.83 kB / 0.7881 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.1999, allocations: 0 / 0.7881 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000263/0.2002, allocations: 130.6 kB / 0.7883 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.2002, allocations: 0 / 0.7883 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.000441/0.2007, allocations: 161.3 kB / 0.7884 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.2007, allocations: 136.5 kB / 0.7885 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.2009, allocations: 203.6 kB / 0.7887 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.2009, allocations: 37.7 kB / 0.7888 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.153e-05/0.201, allocations: 123.9 kB / 0.7889 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.156e-05/0.201, allocations: 39.69 kB / 0.7889 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.565e-05/0.2011, allocations: 45.61 kB / 0.789 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.615e-05/0.2012, allocations: 330.8 kB / 0.7893 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.2013, allocations: 35.97 kB / 0.7893 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.2015, allocations: 156.9 kB / 0.7895 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002798/0.2018, allocations: 194.4 kB / 0.7897 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.2018, allocations: 4 kB / 0.7897 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003667/0.2022, allocations: 205.5 kB / 0.7899 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.2022, allocations: 8 kB / 0.7899 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.2022, allocations: 7.984 kB / 0.7899 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.2022, allocations: 4 kB / 0.7899 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.2024, allocations: 31.92 kB / 0.7899 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.2024, allocations: 4 kB / 0.7899 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.2025, allocations: 27.83 kB / 0.7899 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.2025, allocations: 8 kB / 0.7899 GB, free: 6.363 MB / 0.6075 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 0.0001047/0.2026, allocations: 150.6 kB / 0.7901 GB, free: 6.207 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-05/0.2027, allocations: 15.81 kB / 0.7901 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.124e-05/0.2027, allocations: 21.39 kB / 0.7901 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.2027, allocations: 4 kB / 0.7901 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.2027, allocations: 3.984 kB / 0.7901 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.844e-06/0.2028, allocations: 4.25 kB / 0.7901 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006689/0.2034, allocations: 0.517 MB / 0.7906 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2034, allocations: 0 / 0.7906 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.2036, allocations: 15.98 kB / 0.7907 GB, free: 5.566 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.2036, allocations: 0 / 0.7907 GB, free: 5.566 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.2036, allocations: 8 kB / 0.7907 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2036, allocations: 3.938 kB / 0.7907 GB, free: 5.555 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.2036, allocations: 7.938 kB / 0.7907 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000458/0.2041, allocations: 356.2 kB / 0.791 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.378e-05/0.2041, allocations: 92.83 kB / 0.7911 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.794e-05/0.2042, allocations: 8 kB / 0.7911 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.2043, allocations: 20.02 kB / 0.7911 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.2044, allocations: 15.92 kB / 0.7911 GB, free: 5.023 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-06/0.2044, allocations: 4 kB / 0.7911 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.53e-05/0.2045, allocations: 140.5 kB / 0.7913 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2045, allocations: 0 / 0.7913 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003339/0.2049, allocations: 28 kB / 0.7913 GB, free: 4.855 MB / 0.6075 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.0001156/0.205, allocations: 107.2 kB / 0.7914 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003111/0.2053, allocations: 123.7 kB / 0.7915 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2053, allocations: 4 kB / 0.7915 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.2054, allocations: 48.97 kB / 0.7916 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005388/0.206, allocations: 65.36 kB / 0.7916 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005801/0.2066, allocations: 364.6 kB / 0.792 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/0.2069, allocations: 0.7242 MB / 0.7927 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.951e-05/0.207, allocations: 21.86 kB / 0.7927 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.024e-05/0.207, allocations: 19.44 kB / 0.7927 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of SimCode: time 3.1e-07/0.207, allocations: 0 / 0.7927 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of Templates: time 0.005068/0.2121, allocations: 2.018 MB / 0.7947 GB, free: 1.344 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)