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.002354/0.002354, allocations: 83.69 kB / 20.24 MB, free: 4.184 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.00197/0.00197, allocations: 161.3 kB / 23.55 MB, free: 0.8711 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.544/1.544, allocations: 177.1 MB / 203.9 MB, free: 5.617 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.858/2.858, allocations: 359 MB / 0.6048 GB, free: 10.92 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.853e-06/1.853e-06, allocations: 0.6562 kB / 0.7864 GB, free: 12.78 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.545e-05/2.73e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.78 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003189/0.003216, allocations: 1.811 MB / 0.7882 GB, free: 10.97 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001167/0.004383, allocations: 0.5556 MB / 0.7887 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.336e-05/0.004476, allocations: 7.938 kB / 0.7887 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.004618, allocations: 23.73 kB / 0.7887 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.93e-05/0.004707, allocations: 37.28 kB / 0.7888 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.004943, allocations: 63.86 kB / 0.7888 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002646/0.005208, allocations: 176.7 kB / 0.789 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.005333, allocations: 29.78 kB / 0.789 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.005474, allocations: 79.8 kB / 0.7891 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 8.147e-05/0.005555, allocations: 48.5 kB / 0.7891 GB, free: 9.961 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.917e-05/0.005585, allocations: 8 kB / 0.7892 GB, free: 9.953 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 2.379e-05/0.005608, allocations: 13.59 kB / 0.7892 GB, free: 9.941 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 4.473e-05/0.005653, allocations: 31.84 kB / 0.7892 GB, free: 9.91 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 6.028e-05/0.005713, allocations: 35.91 kB / 0.7892 GB, free: 9.875 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002247/0.005938, allocations: 139.4 kB / 0.7894 GB, free: 9.738 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.005941, allocations: 3.531 kB / 0.7894 GB, free: 9.738 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.31e-07/0.005941, allocations: 0 / 0.7894 GB, free: 9.738 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.005946, allocations: 0 / 0.7894 GB, free: 9.738 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.0008025/0.006748, allocations: 0.5262 MB / 0.7899 GB, free: 9.168 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.006781, allocations: 8.031 kB / 0.7899 GB, free: 9.16 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.568e-05/0.006867, allocations: 32.8 kB / 0.7899 GB, free: 9.129 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002854/0.007152, allocations: 184.9 kB / 0.7901 GB, free: 8.922 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.007173, allocations: 10.03 kB / 0.7901 GB, free: 8.914 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.02e-05/0.007203, allocations: 12.38 kB / 0.7901 GB, free: 8.902 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000294/0.007497, allocations: 154.5 kB / 0.7903 GB, free: 8.727 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.007511, allocations: 8.125 kB / 0.7903 GB, free: 8.719 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.007527, allocations: 5.281 kB / 0.7903 GB, free: 8.715 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.007536, allocations: 7.938 kB / 0.7903 GB, free: 8.707 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001868/0.007723, allocations: 56.94 kB / 0.7903 GB, free: 8.652 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.00887, allocations: 0.9145 MB / 0.7912 GB, free: 7.684 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001399/0.00901, allocations: 51.05 kB / 0.7913 GB, free: 7.621 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.514e-05/0.009096, allocations: 28.36 kB / 0.7913 GB, free: 7.59 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.009114, allocations: 1.25 kB / 0.7913 GB, free: 7.59 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002478/0.009362, allocations: 143.6 kB / 0.7914 GB, free: 7.418 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=11): time 1.052e-06/0.009363, allocations: 0.8125 kB / 0.7914 GB, free: 7.418 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11): time 0.0004568/0.009819, allocations: 155.2 kB / 0.7916 GB, free: 7.262 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.009925, allocations: 132.5 kB / 0.7917 GB, free: 7.102 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/0.01019, allocations: 272.4 kB / 0.792 GB, free: 6.82 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.01021, allocations: 25.7 kB / 0.792 GB, free: 6.789 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.01035, allocations: 187.3 kB / 0.7922 GB, free: 6.602 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.689e-05/0.0104, allocations: 40.52 kB / 0.7922 GB, free: 6.562 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.337e-05/0.01048, allocations: 55.36 kB / 0.7923 GB, free: 6.5 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002781/0.01076, allocations: 0.5006 MB / 0.7928 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.01087, allocations: 37.12 kB / 0.7928 GB, free: 5.953 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003157/0.01119, allocations: 190.6 kB / 0.793 GB, free: 5.695 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003483/0.01153, allocations: 236 kB / 0.7932 GB, free: 5.398 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.01154, allocations: 3.938 kB / 0.7932 GB, free: 5.395 MB / 0.7448 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004021/0.01194, allocations: 209.3 kB / 0.7934 GB, free: 5.188 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.01195, allocations: 10.34 kB / 0.7934 GB, free: 5.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.01196, allocations: 6.844 kB / 0.7934 GB, free: 5.176 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.01198, allocations: 4 kB / 0.7934 GB, free: 5.172 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.0121, allocations: 31.92 kB / 0.7935 GB, free: 5.141 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.01212, allocations: 8 kB / 0.7935 GB, free: 5.133 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.01224, allocations: 19.94 kB / 0.7935 GB, free: 5.113 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.01225, allocations: 8 kB / 0.7935 GB, free: 5.105 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.0001554/0.01241, allocations: 186 kB / 0.7937 GB, free: 4.914 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.054e-05/0.01245, allocations: 19.84 kB / 0.7937 GB, free: 4.895 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.435e-05/0.01249, allocations: 25.69 kB / 0.7937 GB, free: 4.875 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.01249, allocations: 0 / 0.7937 GB, free: 4.875 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.0125, allocations: 7.984 kB / 0.7937 GB, free: 4.867 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.0125, allocations: 0.875 kB / 0.7937 GB, free: 4.867 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007875/0.01329, allocations: 0.5439 MB / 0.7943 GB, free: 4.281 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.01329, allocations: 0.5625 kB / 0.7943 GB, free: 4.281 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.0134, allocations: 17.09 kB / 0.7943 GB, free: 4.266 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.01341, allocations: 3.984 kB / 0.7943 GB, free: 4.262 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.01342, allocations: 4 kB / 0.7943 GB, free: 4.258 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.01342, allocations: 1.094 kB / 0.7943 GB, free: 4.258 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.01343, allocations: 4 kB / 0.7943 GB, free: 4.254 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006993/0.01412, allocations: 450.8 kB / 0.7947 GB, free: 3.785 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.696e-05/0.01417, allocations: 21.09 kB / 0.7947 GB, free: 3.766 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.705e-05/0.01421, allocations: 4 kB / 0.7947 GB, free: 3.762 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002148/0.01442, allocations: 7.984 kB / 0.7947 GB, free: 3.754 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.434e-05/0.01449, allocations: 19.8 kB / 0.7948 GB, free: 3.738 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.01451, allocations: 4 kB / 0.7948 GB, free: 3.734 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001814/0.01469, allocations: 184 kB / 0.7949 GB, free: 3.555 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1e-07/0.01469, allocations: 0 / 0.7949 GB, free: 3.555 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000327/0.01502, allocations: 28 kB / 0.795 GB, free: 3.527 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.0001427/0.01516, allocations: 118.2 kB / 0.7951 GB, free: 3.406 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003225/0.01548, allocations: 117.4 kB / 0.7952 GB, free: 3.289 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.01548, allocations: 5.062 kB / 0.7952 GB, free: 3.285 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.01568, allocations: 47.61 kB / 0.7952 GB, free: 3.234 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009353/0.01662, allocations: 71.28 kB / 0.7953 GB, free: 3.168 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009418/0.01756, allocations: 346.6 kB / 0.7956 GB, free: 2.781 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001835/0.01774, allocations: 110.7 kB / 0.7957 GB, free: 2.656 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001083/0.01785, allocations: 27.75 kB / 0.7958 GB, free: 2.633 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.496e-05/0.0179, allocations: 20.5 kB / 0.7958 GB, free: 2.613 MB / 0.7448 GB Notification: Performance of SimCode: time 4.81e-07/0.0179, allocations: 0 / 0.7958 GB, free: 2.613 MB / 0.7448 GB Notification: Performance of Templates: time 0.008392/0.0263, allocations: 2.129 MB / 0.7979 GB, free: 0.5469 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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 240] 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.900139328907244]