Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001437/0.001437, allocations: 88.39 kB / 20.23 MB, free: 4.172 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.001577/0.001577, allocations: 161.3 kB / 23.55 MB, free: 0.8633 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 1.446/1.446, allocations: 177.1 MB / 203.9 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.723/2.723, allocations: 359 MB / 0.6048 GB, free: 10.96 MB / 0.573 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 0.7864 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.583e-05/2.722e-05, allocations: 6.969 kB / 0.7864 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003226/0.003253, allocations: 1.799 MB / 0.7881 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001216/0.004469, allocations: 0.5473 MB / 0.7887 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00011/0.004579, allocations: 9 kB / 0.7887 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.004722, allocations: 19.8 kB / 0.7887 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 9.964e-05/0.004822, allocations: 41.16 kB / 0.7887 GB, free: 10.4 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002243/0.005046, allocations: 55.92 kB / 0.7888 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003037/0.00535, allocations: 183.4 kB / 0.789 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.005478, allocations: 31.06 kB / 0.789 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002221/0.0057, allocations: 87.72 kB / 0.7891 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 7.833e-05/0.005778, allocations: 35.89 kB / 0.7891 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.062e-05/0.005809, allocations: 12.91 kB / 0.7891 GB, free: 10 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 2.484e-05/0.005833, allocations: 8 kB / 0.7891 GB, free: 9.996 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 3.959e-05/0.005873, allocations: 27.84 kB / 0.7892 GB, free: 9.969 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 6.803e-05/0.005941, allocations: 44.66 kB / 0.7892 GB, free: 9.926 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002339/0.006175, allocations: 139.4 kB / 0.7893 GB, free: 9.789 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.006177, allocations: 2.469 kB / 0.7893 GB, free: 9.789 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.52e-07/0.006178, allocations: 0 / 0.7893 GB, free: 9.789 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.006183, allocations: 0 / 0.7893 GB, free: 9.789 MB / 0.7448 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.000798/0.006981, allocations: 423.2 kB / 0.7897 GB, free: 9.34 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.007029, allocations: 9.781 kB / 0.7898 GB, free: 9.332 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.172e-05/0.00711, allocations: 32.8 kB / 0.7898 GB, free: 9.301 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003151/0.007425, allocations: 178 kB / 0.79 GB, free: 9.102 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.007444, allocations: 12.31 kB / 0.79 GB, free: 9.09 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/0.007481, allocations: 12.97 kB / 0.79 GB, free: 9.078 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003293/0.00781, allocations: 149.1 kB / 0.7901 GB, free: 8.914 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.00782, allocations: 1.344 kB / 0.7901 GB, free: 8.914 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.007837, allocations: 4.375 kB / 0.7901 GB, free: 8.91 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.007846, allocations: 7.938 kB / 0.7901 GB, free: 8.902 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002648/0.008111, allocations: 73.23 kB / 0.7902 GB, free: 8.832 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009932/0.009104, allocations: 0.655 MB / 0.7908 GB, free: 8.133 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/0.009266, allocations: 46.55 kB / 0.7909 GB, free: 8.078 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.009388, allocations: 38.08 kB / 0.7909 GB, free: 8.039 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.009408, allocations: 0 / 0.7909 GB, free: 8.039 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.009669, allocations: 123.2 kB / 0.791 GB, free: 7.895 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.00967, allocations: 1.938 kB / 0.791 GB, free: 7.895 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11): time 0.0005644/0.01023, allocations: 172 kB / 0.7912 GB, free: 7.723 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.01034, allocations: 140.4 kB / 0.7913 GB, free: 7.555 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.01054, allocations: 179.9 kB / 0.7915 GB, free: 7.371 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.01057, allocations: 29.7 kB / 0.7915 GB, free: 7.336 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.01068, allocations: 127.9 kB / 0.7917 GB, free: 7.207 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.513e-05/0.01072, allocations: 39.84 kB / 0.7917 GB, free: 7.168 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.59e-05/0.0108, allocations: 41.7 kB / 0.7917 GB, free: 7.121 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002176/0.01101, allocations: 327.4 kB / 0.7921 GB, free: 6.793 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.01116, allocations: 36.69 kB / 0.7921 GB, free: 6.758 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000228/0.01139, allocations: 149 kB / 0.7922 GB, free: 6.562 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/0.01177, allocations: 201.1 kB / 0.7924 GB, free: 6.32 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.01177, allocations: 4 kB / 0.7924 GB, free: 6.316 MB / 0.7448 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000487/0.01226, allocations: 226.7 kB / 0.7926 GB, free: 6.094 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.01228, allocations: 8 kB / 0.7926 GB, free: 6.086 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.01228, allocations: 0 / 0.7926 GB, free: 6.086 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.01231, allocations: 8 kB / 0.7927 GB, free: 6.078 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.01245, allocations: 31.92 kB / 0.7927 GB, free: 6.047 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.01246, allocations: 7.938 kB / 0.7927 GB, free: 6.039 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.01262, allocations: 33.48 kB / 0.7927 GB, free: 6.008 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.65e-05/0.01264, allocations: 8 kB / 0.7927 GB, free: 6 MB / 0.7448 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.0001337/0.01277, allocations: 135.1 kB / 0.7929 GB, free: 5.859 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.562e-05/0.01283, allocations: 23.84 kB / 0.7929 GB, free: 5.836 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.734e-05/0.01288, allocations: 25.45 kB / 0.7929 GB, free: 5.812 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.01288, allocations: 0 / 0.7929 GB, free: 5.812 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.01288, allocations: 1.938 kB / 0.7929 GB, free: 5.812 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.01289, allocations: 4 kB / 0.7929 GB, free: 5.809 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008145/0.0137, allocations: 453.2 kB / 0.7933 GB, free: 5.328 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.01371, allocations: 5.25 kB / 0.7934 GB, free: 5.324 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.01385, allocations: 19.92 kB / 0.7934 GB, free: 5.305 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.01385, allocations: 1.375 kB / 0.7934 GB, free: 5.305 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.01387, allocations: 7.938 kB / 0.7934 GB, free: 5.297 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.01387, allocations: 0 / 0.7934 GB, free: 5.297 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01387, allocations: 0.6562 kB / 0.7934 GB, free: 5.297 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005993/0.01447, allocations: 371.9 kB / 0.7937 GB, free: 4.914 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.93e-05/0.0145, allocations: 11.91 kB / 0.7937 GB, free: 4.902 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.657e-05/0.01452, allocations: 4 kB / 0.7938 GB, free: 4.898 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/0.01471, allocations: 16.02 kB / 0.7938 GB, free: 4.883 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.893e-05/0.01478, allocations: 15.98 kB / 0.7938 GB, free: 4.867 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.01479, allocations: 4 kB / 0.7938 GB, free: 4.863 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001324/0.01492, allocations: 141.3 kB / 0.7939 GB, free: 4.727 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01492, allocations: 0 / 0.7939 GB, free: 4.727 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000352/0.01527, allocations: 29.84 kB / 0.7939 GB, free: 4.699 MB / 0.7448 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.0001319/0.01541, allocations: 107.1 kB / 0.794 GB, free: 4.586 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000367/0.01577, allocations: 119.2 kB / 0.7942 GB, free: 4.473 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.01577, allocations: 0 / 0.7942 GB, free: 4.473 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001627/0.01594, allocations: 48.36 kB / 0.7942 GB, free: 4.426 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005782/0.01652, allocations: 76.2 kB / 0.7943 GB, free: 4.355 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006513/0.01717, allocations: 327.4 kB / 0.7946 GB, free: 3.996 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001334/0.0173, allocations: 116.2 kB / 0.7947 GB, free: 3.863 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 6.921e-05/0.01737, allocations: 13.48 kB / 0.7947 GB, free: 3.852 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.368e-05/0.01742, allocations: 20.5 kB / 0.7947 GB, free: 3.832 MB / 0.7448 GB Notification: Performance of SimCode: time 5.11e-07/0.01742, allocations: 4 kB / 0.7947 GB, free: 3.828 MB / 0.7448 GB Notification: Performance of Templates: time 0.005917/0.02334, allocations: 2.134 MB / 0.7968 GB, free: 1.766 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 7.5049649679567665]