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.001839/0.001839, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.00216/0.00216, allocations: 214.9 kB / 22.25 MB, free: 5.262 MB / 14.72 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.515/1.515, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.308/3.308, allocations: 0.4892 GB / 0.7943 GB, free: 35.52 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 69.02 kB / 1.154 GB, free: 25.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3843/0.3864, allocations: 176.1 MB / 1.326 GB, free: 1.852 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003483/0.3899, allocations: 1.79 MB / 1.327 GB, free: 56 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001157/0.391, allocations: 0.5416 MB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001272/0.3912, allocations: 11.81 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.3913, allocations: 31.72 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.498e-05/0.3914, allocations: 23.73 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002215/0.3916, allocations: 71.86 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002633/0.3919, allocations: 167.5 kB / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.392, allocations: 41.7 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.986e-05/0.3921, allocations: 47.8 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.705e-05/0.3922, allocations: 51.64 kB / 1.328 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.019e-05/0.3922, allocations: 16 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 2.36e-05/0.3922, allocations: 8 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.976e-05/0.3923, allocations: 43.78 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.117e-05/0.3923, allocations: 47.72 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001948/0.3925, allocations: 127.4 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.3925, allocations: 3.938 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3925, allocations: 0 / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.3926, allocations: 3.938 kB / 1.328 GB, free: 14.82 MB / 1.029 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.0007448/0.3933, allocations: 435.1 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.3933, allocations: 12.03 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.009e-05/0.3934, allocations: 16.84 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003495/0.3937, allocations: 182.7 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.3937, allocations: 8.375 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.558e-05/0.3938, allocations: 12.38 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003092/0.3941, allocations: 148 kB / 1.329 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.3941, allocations: 4 kB / 1.329 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.3941, allocations: 8 kB / 1.329 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.3941, allocations: 4 kB / 1.329 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002194/0.3943, allocations: 67.88 kB / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009349/0.3953, allocations: 0.6531 MB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001614/0.3954, allocations: 54.48 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.3955, allocations: 32.83 kB / 1.33 GB, free: 13.06 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.3956, allocations: 0 / 1.33 GB, free: 13.06 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002396/0.3958, allocations: 114.8 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.3958, allocations: 0 / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.000494/0.3963, allocations: 177.9 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.825e-05/0.3964, allocations: 136.5 kB / 1.33 GB, free: 12.58 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.3966, allocations: 186.3 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/0.3966, allocations: 25.7 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.3967, allocations: 131.9 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.123e-05/0.3968, allocations: 43.86 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.959e-05/0.3968, allocations: 41.7 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.397, allocations: 326.8 kB / 1.331 GB, free: 11.81 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.3971, allocations: 47.91 kB / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.3973, allocations: 144.1 kB / 1.331 GB, free: 11.57 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003646/0.3977, allocations: 206.2 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3977, allocations: 0 / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004144/0.3981, allocations: 213.1 kB / 1.332 GB, free: 11.1 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3981, allocations: 10.03 kB / 1.332 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.3981, allocations: 4 kB / 1.332 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.3981, allocations: 4 kB / 1.332 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.3983, allocations: 32.67 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.3983, allocations: 8 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.3984, allocations: 31.92 kB / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.3985, allocations: 8 kB / 1.332 GB, free: 11.01 MB / 1.029 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.0001401/0.3986, allocations: 141.7 kB / 1.332 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.928e-05/0.3986, allocations: 15.91 kB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.807e-05/0.3987, allocations: 21.39 kB / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.3987, allocations: 4 kB / 1.332 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.3987, allocations: 0 / 1.332 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.3987, allocations: 0 / 1.332 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007321/0.3994, allocations: 453.2 kB / 1.332 GB, free: 10.33 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3994, allocations: 0 / 1.332 GB, free: 10.33 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.3995, allocations: 23.92 kB / 1.332 GB, free: 10.31 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.3995, allocations: 4 kB / 1.332 GB, free: 10.3 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.3996, allocations: 0 / 1.332 GB, free: 10.3 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.7e-06/0.3996, allocations: 4 kB / 1.332 GB, free: 10.3 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3996, allocations: 0 / 1.332 GB, free: 10.3 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000548/0.4001, allocations: 368.2 kB / 1.333 GB, free: 9.918 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.196e-05/0.4001, allocations: 15.84 kB / 1.333 GB, free: 9.902 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.4002, allocations: 8 kB / 1.333 GB, free: 9.895 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.4003, allocations: 12.02 kB / 1.333 GB, free: 9.883 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.363e-05/0.4004, allocations: 19.92 kB / 1.333 GB, free: 9.863 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.4004, allocations: 4 kB / 1.333 GB, free: 9.859 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001201/0.4005, allocations: 136.3 kB / 1.333 GB, free: 9.727 MB / 1.029 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4005, allocations: 0 / 1.333 GB, free: 9.727 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003374/0.4009, allocations: 35.95 kB / 1.333 GB, free: 9.691 MB / 1.029 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.0001277/0.401, allocations: 99.19 kB / 1.333 GB, free: 9.586 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003536/0.4013, allocations: 116.7 kB / 1.333 GB, free: 9.473 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.4013, allocations: 4 kB / 1.333 GB, free: 9.469 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.4015, allocations: 44.05 kB / 1.333 GB, free: 9.426 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005418/0.402, allocations: 72.27 kB / 1.333 GB, free: 9.355 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006453/0.4027, allocations: 356.7 kB / 1.334 GB, free: 8.973 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001283/0.4028, allocations: 116.2 kB / 1.334 GB, free: 8.836 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.658e-05/0.4029, allocations: 13.48 kB / 1.334 GB, free: 8.82 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.372e-05/0.4029, allocations: 19.44 kB / 1.334 GB, free: 8.805 MB / 1.029 GB Notification: Performance of SimCode: time 4.11e-07/0.4029, allocations: 3.938 kB / 1.334 GB, free: 8.801 MB / 1.029 GB Notification: Performance of Templates: time 0.00589/0.4088, allocations: 2.245 MB / 1.336 GB, free: 6.609 MB / 1.029 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: 9.140705889090896]