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.001538/0.001538, allocations: 104.2 kB / 16.35 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00186/0.00186, allocations: 193 kB / 17.29 MB, free: 5.516 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.362/1.362, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.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.811/1.811, allocations: 292.3 MB / 0.5496 GB, free: 17.45 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.001425/0.001425, allocations: 74.88 kB / 0.6729 GB, free: 5.879 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2201, allocations: 114.5 MB / 0.7848 GB, free: 3.211 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002768/0.2229, allocations: 1.818 MB / 0.7865 GB, free: 1.375 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0009031/0.2239, allocations: 0.5814 MB / 0.7871 GB, free: 0.7852 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.224, allocations: 7.938 kB / 0.7871 GB, free: 0.7773 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001323/0.2241, allocations: 23.73 kB / 0.7871 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.832e-05/0.2242, allocations: 31.72 kB / 0.7872 GB, free: 0.7227 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002137/0.2244, allocations: 67.84 kB / 0.7872 GB, free: 0.6562 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001971/0.2246, allocations: 163.5 kB / 0.7874 GB, free: 0.4961 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.2248, allocations: 53.58 kB / 0.7874 GB, free: 452 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 7.105e-05/0.2249, allocations: 55.72 kB / 0.7875 GB, free: 396 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.918e-05/0.2249, allocations: 59.69 kB / 0.7875 GB, free: 336 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.548e-05/0.225, allocations: 12 kB / 0.7876 GB, free: 324 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 2.039e-05/0.225, allocations: 8 kB / 0.7876 GB, free: 316 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.234e-05/0.225, allocations: 31.86 kB / 0.7876 GB, free: 284 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.925e-05/0.2251, allocations: 63.61 kB / 0.7877 GB, free: 220 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.2252, allocations: 127.4 kB / 0.7878 GB, free: 92 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2252, allocations: 0 / 0.7878 GB, free: 92 kB / 0.6544 GB Notification: Performance of FrontEnd: time 2.425e-06/0.2253, allocations: 4 kB / 0.7878 GB, free: 88 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.2253, allocations: 0 / 0.7878 GB, free: 88 kB / 0.6544 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.3927/0.618, allocations: 481.5 kB / 0.7882 GB, free: 49.48 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.618, allocations: 8.406 kB / 0.7882 GB, free: 49.48 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.331e-05/0.6181, allocations: 19.38 kB / 0.7883 GB, free: 49.47 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002917/0.6184, allocations: 229 kB / 0.7885 GB, free: 49.26 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/0.6185, allocations: 13.28 kB / 0.7885 GB, free: 49.26 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.503e-05/0.6185, allocations: 14.47 kB / 0.7885 GB, free: 49.26 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003734/0.6189, allocations: 145.9 kB / 0.7886 GB, free: 49.19 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.6189, allocations: 2.969 kB / 0.7887 GB, free: 49.19 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.212e-05/0.619, allocations: 8.812 kB / 0.7887 GB, free: 49.19 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.619, allocations: 5.312 kB / 0.7887 GB, free: 49.19 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003273/0.6193, allocations: 71.33 kB / 0.7887 GB, free: 49.19 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.6204, allocations: 0.7392 MB / 0.7895 GB, free: 48.58 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.6206, allocations: 55.56 kB / 0.7895 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.6207, allocations: 29.91 kB / 0.7895 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.6208, allocations: 2.906 kB / 0.7895 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003662/0.6211, allocations: 120.6 kB / 0.7897 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 2.164e-06/0.6211, allocations: 0 / 0.7897 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0006348/0.6218, allocations: 176.9 kB / 0.7898 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.6219, allocations: 131.7 kB / 0.7899 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002162/0.6221, allocations: 209 kB / 0.7901 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.6221, allocations: 31.95 kB / 0.7902 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 8.105e-05/0.6222, allocations: 124.3 kB / 0.7903 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.861e-05/0.6223, allocations: 33.81 kB / 0.7903 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.091e-05/0.6223, allocations: 49.45 kB / 0.7904 GB, free: 48 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.724e-05/0.6224, allocations: 327 kB / 0.7907 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.6226, allocations: 43.75 kB / 0.7907 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002087/0.6228, allocations: 143.5 kB / 0.7909 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003969/0.6232, allocations: 200.9 kB / 0.7911 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.6233, allocations: 3.344 kB / 0.7911 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005517/0.6238, allocations: 212.1 kB / 0.7913 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.6239, allocations: 8.656 kB / 0.7913 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.6239, allocations: 2.375 kB / 0.7913 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.55e-05/0.6239, allocations: 4.875 kB / 0.7913 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001809/0.6241, allocations: 38.05 kB / 0.7913 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.6241, allocations: 7.906 kB / 0.7913 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.6244, allocations: 30.52 kB / 0.7914 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.6244, allocations: 10.06 kB / 0.7914 GB, free: 47.37 MB / 0.6544 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.000119/0.6245, allocations: 141.2 kB / 0.7915 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.09e-05/0.6246, allocations: 19.09 kB / 0.7915 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.534e-05/0.6246, allocations: 19.94 kB / 0.7915 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.6247, allocations: 2.625 kB / 0.7915 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.6247, allocations: 2.625 kB / 0.7915 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.6247, allocations: 0 / 0.7915 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008784/0.6256, allocations: 0.5095 MB / 0.792 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.6256, allocations: 0 / 0.792 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.6258, allocations: 26.14 kB / 0.7921 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.6258, allocations: 2.625 kB / 0.7921 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.6258, allocations: 2.812 kB / 0.7921 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.6258, allocations: 2.625 kB / 0.7921 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.6258, allocations: 3.422 kB / 0.7921 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006072/0.6264, allocations: 364.2 kB / 0.7924 GB, free: 46.63 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 5.133e-05/0.6265, allocations: 94.17 kB / 0.7925 GB, free: 46.53 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.699e-05/0.6266, allocations: 5.203 kB / 0.7925 GB, free: 46.53 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002913/0.6269, allocations: 20.08 kB / 0.7925 GB, free: 46.53 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.076e-05/0.6269, allocations: 13.94 kB / 0.7925 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.627, allocations: 2.719 kB / 0.7926 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001416/0.6271, allocations: 145.3 kB / 0.7927 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.81e-07/0.6271, allocations: 0 / 0.7927 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0006381/0.6278, allocations: 29.22 kB / 0.7927 GB, free: 46.45 MB / 0.6544 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.0001374/0.6279, allocations: 105.9 kB / 0.7928 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004487/0.6284, allocations: 119.5 kB / 0.7929 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.6284, allocations: 2.375 kB / 0.7929 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.000198/0.6286, allocations: 47.03 kB / 0.793 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009105/0.6295, allocations: 70.48 kB / 0.793 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006878/0.6302, allocations: 347.7 kB / 0.7934 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002195/0.6304, allocations: 0.7238 MB / 0.7941 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 9.362e-05/0.6306, allocations: 15.16 kB / 0.7941 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.602e-05/0.6306, allocations: 18 kB / 0.7941 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of SimCode: time 3.3e-07/0.6306, allocations: 0 / 0.7941 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of Templates: time 0.006782/0.6374, allocations: 2.023 MB / 0.7961 GB, free: 45.34 MB / 0.6544 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)