Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008517/0.0008517, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008387/0.0008387, allocations: 178.2 kB / 23.22 MB, free: 1.348 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8895/0.8895, allocations: 177.2 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.731/1.731, allocations: 377.8 MB / 0.6229 GB, free: 8.652 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.303e-06/1.303e-06, allocations: 0 / 0.9822 GB, free: 2.055 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.67e-05/2.8e-05, allocations: 2.281 kB / 0.9822 GB, free: 2.051 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002246/0.002274, allocations: 1.783 MB / 0.984 GB, free: 264 kB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0008625/0.003137, allocations: 0.5455 MB / 0.9845 GB, free: 15.71 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.287e-05/0.00323, allocations: 3.938 kB / 0.9845 GB, free: 15.7 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.00336, allocations: 27.73 kB / 0.9845 GB, free: 15.68 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 6.166e-05/0.003421, allocations: 31.66 kB / 0.9845 GB, free: 15.64 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003487/0.00377, allocations: 63.86 kB / 0.9846 GB, free: 15.58 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0001907/0.003961, allocations: 179.5 kB / 0.9848 GB, free: 15.41 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.004095, allocations: 37.72 kB / 0.9848 GB, free: 15.37 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.004196, allocations: 83.78 kB / 0.9849 GB, free: 15.29 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 5.955e-05/0.004255, allocations: 35.89 kB / 0.9849 GB, free: 15.25 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.915e-05/0.004284, allocations: 12 kB / 0.9849 GB, free: 15.24 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 1.366e-05/0.004298, allocations: 8 kB / 0.9849 GB, free: 15.23 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 2.895e-05/0.004327, allocations: 27.84 kB / 0.985 GB, free: 15.21 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 4.503e-05/0.004372, allocations: 43.84 kB / 0.985 GB, free: 15.16 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001695/0.004541, allocations: 143.4 kB / 0.9852 GB, free: 15.02 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.004544, allocations: 0 / 0.9852 GB, free: 15.02 MB / 0.948 GB Notification: Performance of FrontEnd: time 9.32e-07/0.004545, allocations: 0 / 0.9852 GB, free: 15.02 MB / 0.948 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.00455, allocations: 4 kB / 0.9852 GB, free: 15.02 MB / 0.948 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.0005616/0.005112, allocations: 431.1 kB / 0.9856 GB, free: 14.56 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.005151, allocations: 8.031 kB / 0.9856 GB, free: 14.55 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.25e-05/0.005194, allocations: 16.84 kB / 0.9856 GB, free: 14.54 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.005455, allocations: 177.9 kB / 0.9858 GB, free: 14.34 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.005468, allocations: 12.38 kB / 0.9858 GB, free: 14.33 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.609e-05/0.005494, allocations: 16.33 kB / 0.9858 GB, free: 14.31 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.005719, allocations: 152.9 kB / 0.9859 GB, free: 14.14 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.005727, allocations: 192 / 0.9859 GB, free: 14.14 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/0.00574, allocations: 8.359 kB / 0.9859 GB, free: 14.14 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.005749, allocations: 11.94 kB / 0.986 GB, free: 14.12 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001335/0.005882, allocations: 71.88 kB / 0.986 GB, free: 14.05 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006459/0.006528, allocations: 0.6455 MB / 0.9867 GB, free: 13.36 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000103/0.006631, allocations: 46.55 kB / 0.9867 GB, free: 13.31 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.955e-05/0.006691, allocations: 36.77 kB / 0.9867 GB, free: 13.27 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.006712, allocations: 4 kB / 0.9867 GB, free: 13.27 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001564/0.006869, allocations: 122.7 kB / 0.9869 GB, free: 13.12 MB / 0.948 GB Notification: Performance of pre-optimization done (n=11): time 1.022e-06/0.00687, allocations: 0 / 0.9869 GB, free: 13.12 MB / 0.948 GB Notification: Performance of matching and sorting (n=11): time 0.0003094/0.007179, allocations: 165.4 kB / 0.987 GB, free: 12.95 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.007238, allocations: 136.5 kB / 0.9871 GB, free: 12.79 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.007375, allocations: 196.3 kB / 0.9873 GB, free: 12.59 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.007389, allocations: 29.7 kB / 0.9874 GB, free: 12.55 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 6.771e-05/0.007457, allocations: 127.9 kB / 0.9875 GB, free: 12.43 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.758e-05/0.007484, allocations: 39.83 kB / 0.9875 GB, free: 12.39 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.776e-05/0.007532, allocations: 45.7 kB / 0.9876 GB, free: 12.34 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.382e-05/0.007616, allocations: 327.1 kB / 0.9879 GB, free: 12.01 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.535e-05/0.007691, allocations: 35.97 kB / 0.9879 GB, free: 11.97 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.007802, allocations: 150.5 kB / 0.988 GB, free: 11.77 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001958/0.007997, allocations: 202.3 kB / 0.9882 GB, free: 11.52 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.008, allocations: 0 / 0.9882 GB, free: 11.52 MB / 0.948 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00024/0.00824, allocations: 213.1 kB / 0.9884 GB, free: 11.31 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.008256, allocations: 4.5 kB / 0.9884 GB, free: 11.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.008264, allocations: 8 kB / 0.9885 GB, free: 11.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.008279, allocations: 8 kB / 0.9885 GB, free: 11.29 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.105e-05/0.00836, allocations: 31.92 kB / 0.9885 GB, free: 11.26 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.008369, allocations: 7.938 kB / 0.9885 GB, free: 11.25 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.792e-05/0.008447, allocations: 23.94 kB / 0.9885 GB, free: 11.23 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.008456, allocations: 8 kB / 0.9885 GB, free: 11.22 MB / 0.948 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 8.814e-05/0.008544, allocations: 137.7 kB / 0.9887 GB, free: 11.07 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.914e-05/0.008563, allocations: 27.78 kB / 0.9887 GB, free: 11.05 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.103e-05/0.008595, allocations: 21.45 kB / 0.9887 GB, free: 11.03 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.008597, allocations: 4 kB / 0.9887 GB, free: 11.02 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.008603, allocations: 4 kB / 0.9887 GB, free: 11.02 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.008607, allocations: 0 / 0.9887 GB, free: 11.02 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000442/0.009049, allocations: 449.5 kB / 0.9891 GB, free: 10.54 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.00905, allocations: 0 / 0.9891 GB, free: 10.54 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.036e-05/0.009111, allocations: 19.97 kB / 0.9892 GB, free: 10.52 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.009114, allocations: 3.938 kB / 0.9892 GB, free: 10.52 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.009127, allocations: 8.359 kB / 0.9892 GB, free: 10.51 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.009128, allocations: 7.938 kB / 0.9892 GB, free: 10.5 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.009131, allocations: 7.984 kB / 0.9892 GB, free: 10.5 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000313/0.009444, allocations: 352.2 kB / 0.9895 GB, free: 10.13 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.187e-05/0.009466, allocations: 23.84 kB / 0.9896 GB, free: 10.11 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.009485, allocations: 4 kB / 0.9896 GB, free: 10.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.979e-05/0.009574, allocations: 16.03 kB / 0.9896 GB, free: 10.09 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.444e-05/0.009619, allocations: 11.97 kB / 0.9896 GB, free: 10.07 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-06/0.009627, allocations: 8 kB / 0.9896 GB, free: 10.07 MB / 0.948 GB Notification: Performance of sorting global known variables: time 7.035e-05/0.009697, allocations: 136.3 kB / 0.9897 GB, free: 9.934 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.009697, allocations: 0 / 0.9897 GB, free: 9.934 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002307/0.009928, allocations: 31.95 kB / 0.9897 GB, free: 9.902 MB / 0.948 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 9.99e-05/0.01003, allocations: 103.2 kB / 0.9898 GB, free: 9.789 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002106/0.01024, allocations: 116.1 kB / 0.99 GB, free: 9.676 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.01024, allocations: 0 / 0.99 GB, free: 9.676 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.61e-05/0.01033, allocations: 51.91 kB / 0.99 GB, free: 9.625 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000365/0.01069, allocations: 69.14 kB / 0.9901 GB, free: 9.562 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004748/0.01117, allocations: 362.8 kB / 0.9904 GB, free: 9.164 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.292e-05/0.01125, allocations: 112.2 kB / 0.9905 GB, free: 9.031 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.966e-05/0.01129, allocations: 20.5 kB / 0.9905 GB, free: 9.012 MB / 0.948 GB Notification: Performance of SimCode: time 5.51e-07/0.01129, allocations: 0 / 0.9905 GB, free: 9.012 MB / 0.948 GB Notification: Performance of Templates: time 0.002948/0.01424, allocations: 2.168 MB / 0.9927 GB, free: 6.855 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.630998659878969]