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.001601/0.001601, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.002223/0.002223, allocations: 210.4 kB / 22.99 MB, free: 4.957 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.58/1.58, allocations: 230.6 MB / 256.8 MB, free: 7.773 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.194/3.194, allocations: 0.49 GB / 0.7959 GB, free: 35.5 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.002971/0.002971, allocations: 65.38 kB / 1.155 GB, free: 25.22 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3744/0.3773, allocations: 176.1 MB / 1.327 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003193/0.3805, allocations: 1.77 MB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001211/0.3817, allocations: 0.5572 MB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.3818, allocations: 11.88 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001633/0.382, allocations: 23.73 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.219e-05/0.3821, allocations: 23.73 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002179/0.3823, allocations: 71.86 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002444/0.3826, allocations: 167.5 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.3827, allocations: 41.72 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.154e-05/0.3828, allocations: 59.72 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.96e-05/0.3829, allocations: 63.64 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.3829, allocations: 8 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 2.252e-05/0.3829, allocations: 12 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.661e-05/0.383, allocations: 27.86 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.079e-05/0.383, allocations: 51.72 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002041/0.3832, allocations: 135.3 kB / 1.33 GB, free: 13.9 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.3832, allocations: 4 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3832, allocations: 3.938 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.3832, allocations: 0 / 1.33 GB, free: 13.89 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.0007979/0.384, allocations: 439.1 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.3841, allocations: 8.031 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.211e-05/0.3841, allocations: 16.84 kB / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003608/0.3845, allocations: 174.8 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.3845, allocations: 8.375 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.3846, allocations: 16.38 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003242/0.3849, allocations: 154.2 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.3849, allocations: 0 / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.3849, allocations: 4 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.3849, allocations: 4 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002401/0.3852, allocations: 63.89 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009855/0.3861, allocations: 0.6687 MB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001583/0.3863, allocations: 46.55 kB / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.3864, allocations: 28.84 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.3864, allocations: 0 / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002594/0.3867, allocations: 134.6 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.3867, allocations: 0 / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0005472/0.3872, allocations: 165.6 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.299e-05/0.3873, allocations: 140.5 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001883/0.3875, allocations: 186.3 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.3875, allocations: 33.69 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.3876, allocations: 131.9 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.01e-05/0.3877, allocations: 35.92 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.897e-05/0.3877, allocations: 41.7 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3879, allocations: 327.1 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.388, allocations: 39.97 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002166/0.3883, allocations: 144 kB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003492/0.3886, allocations: 206.2 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3886, allocations: 0 / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004346/0.389, allocations: 209.1 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.3891, allocations: 8 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.3891, allocations: 4.5 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.3891, allocations: 8 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.3892, allocations: 35.91 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.3892, allocations: 8 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.3894, allocations: 23.94 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.3894, allocations: 8 kB / 1.333 GB, free: 10.09 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.0001413/0.3895, allocations: 139.7 kB / 1.334 GB, free: 9.941 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.224e-05/0.3896, allocations: 19.89 kB / 1.334 GB, free: 9.922 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.263e-05/0.3896, allocations: 21.41 kB / 1.334 GB, free: 9.895 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.3896, allocations: 3.938 kB / 1.334 GB, free: 9.891 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3896, allocations: 4 kB / 1.334 GB, free: 9.887 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.3896, allocations: 7.984 kB / 1.334 GB, free: 9.879 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007623/0.3904, allocations: 449.2 kB / 1.334 GB, free: 9.402 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.3904, allocations: 4 kB / 1.334 GB, free: 9.398 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.3905, allocations: 19.98 kB / 1.334 GB, free: 9.379 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3905, allocations: 0 / 1.334 GB, free: 9.379 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/0.3905, allocations: 4 kB / 1.334 GB, free: 9.375 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3905, allocations: 8.297 kB / 1.334 GB, free: 9.367 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3905, allocations: 0 / 1.334 GB, free: 9.367 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005418/0.3911, allocations: 368.2 kB / 1.334 GB, free: 8.984 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.286e-05/0.3911, allocations: 19.84 kB / 1.334 GB, free: 8.965 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.3911, allocations: 4 kB / 1.334 GB, free: 8.961 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.3913, allocations: 12.03 kB / 1.334 GB, free: 8.949 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.048e-05/0.3914, allocations: 19.91 kB / 1.334 GB, free: 8.93 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.3914, allocations: 4 kB / 1.334 GB, free: 8.926 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001164/0.3915, allocations: 136.3 kB / 1.335 GB, free: 8.793 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3915, allocations: 0 / 1.335 GB, free: 8.793 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003406/0.3918, allocations: 31.95 kB / 1.335 GB, free: 8.762 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.0001293/0.392, allocations: 104.5 kB / 1.335 GB, free: 8.652 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003422/0.3923, allocations: 116.4 kB / 1.335 GB, free: 8.539 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3923, allocations: 0 / 1.335 GB, free: 8.539 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000149/0.3925, allocations: 48 kB / 1.335 GB, free: 8.492 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005707/0.393, allocations: 67.39 kB / 1.335 GB, free: 8.43 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00066/0.3937, allocations: 357.4 kB / 1.335 GB, free: 8.047 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/0.3938, allocations: 116.5 kB / 1.335 GB, free: 7.914 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.973e-05/0.3939, allocations: 13.48 kB / 1.335 GB, free: 7.898 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.464e-05/0.3939, allocations: 19.44 kB / 1.335 GB, free: 7.879 MB / 1.029 GB Notification: Performance of SimCode: time 3.01e-07/0.3939, allocations: 0 / 1.335 GB, free: 7.879 MB / 1.029 GB Notification: Performance of Templates: time 0.005843/0.3998, allocations: 2.281 MB / 1.338 GB, free: 5.652 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 -s gbode -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/jenkins1/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.066140123992227]