Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001815/0.001815, allocations: 77.86 kB / 19.76 MB, free: 2.031 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.002231/0.002231, allocations: 163.8 kB / 23.02 MB, free: 4.945 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.42/1.42, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.84/2.84, allocations: 394.2 MB / 0.6386 GB, free: 11.91 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.002318/0.002318, allocations: 70.52 kB / 1.009 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7858/0.7881, allocations: 181.8 MB / 1.187 GB, free: 16.2 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002538/0.7906, allocations: 1.796 MB / 1.188 GB, free: 14.98 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0008848/0.7915, allocations: 0.5495 MB / 1.189 GB, free: 14.6 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.154e-05/0.7916, allocations: 6.312 kB / 1.189 GB, free: 14.6 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001184/0.7917, allocations: 25.88 kB / 1.189 GB, free: 14.58 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 6.838e-05/0.7918, allocations: 25.47 kB / 1.189 GB, free: 14.56 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001951/0.792, allocations: 72.12 kB / 1.189 GB, free: 14.52 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002096/0.7922, allocations: 168.6 kB / 1.189 GB, free: 14.44 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.7923, allocations: 35.06 kB / 1.189 GB, free: 14.42 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 8.02e-05/0.7924, allocations: 55.62 kB / 1.189 GB, free: 14.39 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 7.457e-05/0.7925, allocations: 64.88 kB / 1.189 GB, free: 14.36 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 3.095e-05/0.7925, allocations: 9.531 kB / 1.189 GB, free: 14.36 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 2.197e-05/0.7925, allocations: 11.03 kB / 1.189 GB, free: 14.36 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 3.262e-05/0.7926, allocations: 29.58 kB / 1.189 GB, free: 14.34 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 5.467e-05/0.7926, allocations: 48.23 kB / 1.189 GB, free: 14.31 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.000182/0.7928, allocations: 140.2 kB / 1.19 GB, free: 14.24 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.7928, allocations: 0 / 1.19 GB, free: 14.24 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.262e-06/0.7928, allocations: 0 / 1.19 GB, free: 14.24 MB / 1.076 GB Notification: Performance of Transformations before backend: time 6.151e-06/0.7928, allocations: 1.062 kB / 1.19 GB, free: 14.24 MB / 1.076 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.000634/0.7934, allocations: 432.4 kB / 1.19 GB, free: 13.88 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.7935, allocations: 10.12 kB / 1.19 GB, free: 13.88 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.38e-05/0.7935, allocations: 23.08 kB / 1.19 GB, free: 13.87 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/0.7937, allocations: 174.2 kB / 1.19 GB, free: 13.71 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.7938, allocations: 9.234 kB / 1.19 GB, free: 13.7 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.074e-05/0.7938, allocations: 13.56 kB / 1.19 GB, free: 13.7 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002707/0.7941, allocations: 147.5 kB / 1.19 GB, free: 13.6 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.7941, allocations: 5.062 kB / 1.19 GB, free: 13.59 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.7941, allocations: 5.859 kB / 1.19 GB, free: 13.59 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.7941, allocations: 2.844 kB / 1.19 GB, free: 13.59 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002254/0.7943, allocations: 72.33 kB / 1.19 GB, free: 13.57 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006814/0.795, allocations: 0.6552 MB / 1.191 GB, free: 12.98 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.7951, allocations: 50.03 kB / 1.191 GB, free: 12.94 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.7953, allocations: 29.25 kB / 1.191 GB, free: 12.93 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.7953, allocations: 2.969 kB / 1.191 GB, free: 12.93 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002038/0.7955, allocations: 128.2 kB / 1.191 GB, free: 12.83 MB / 1.076 GB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.7955, allocations: 0 / 1.191 GB, free: 12.83 MB / 1.076 GB Notification: Performance of matching and sorting (n=11): time 0.0004595/0.7959, allocations: 167.8 kB / 1.191 GB, free: 12.75 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.796, allocations: 137.3 kB / 1.192 GB, free: 12.59 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.7961, allocations: 184.8 kB / 1.192 GB, free: 12.47 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.191e-05/0.7961, allocations: 25.7 kB / 1.192 GB, free: 12.44 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 5.6e-05/0.7962, allocations: 135.7 kB / 1.192 GB, free: 12.32 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.634e-05/0.7962, allocations: 42.58 kB / 1.192 GB, free: 12.28 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.285e-05/0.7963, allocations: 41.34 kB / 1.192 GB, free: 12.25 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.792e-05/0.7963, allocations: 328.1 kB / 1.192 GB, free: 11.93 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.7964, allocations: 37.12 kB / 1.192 GB, free: 11.93 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/0.7966, allocations: 146 kB / 1.192 GB, free: 11.77 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002651/0.7968, allocations: 201.4 kB / 1.193 GB, free: 11.59 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.7968, allocations: 1.25 kB / 1.193 GB, free: 11.59 MB / 1.076 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003675/0.7972, allocations: 208.3 kB / 1.193 GB, free: 11.5 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.7972, allocations: 10.72 kB / 1.193 GB, free: 11.49 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.7972, allocations: 3 kB / 1.193 GB, free: 11.49 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.7973, allocations: 7.203 kB / 1.193 GB, free: 11.49 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.7974, allocations: 37.31 kB / 1.193 GB, free: 11.48 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.7974, allocations: 9.281 kB / 1.193 GB, free: 11.48 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001425/0.7975, allocations: 27.3 kB / 1.193 GB, free: 11.47 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.7976, allocations: 9.891 kB / 1.193 GB, free: 11.47 MB / 1.076 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 7.335e-05/0.7976, allocations: 136.6 kB / 1.193 GB, free: 11.34 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.646e-05/0.7976, allocations: 17.7 kB / 1.193 GB, free: 11.33 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.803e-05/0.7977, allocations: 20.52 kB / 1.193 GB, free: 11.31 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.7977, allocations: 2.156 kB / 1.193 GB, free: 11.31 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.7977, allocations: 5.812 kB / 1.193 GB, free: 11.31 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.7977, allocations: 5.469 kB / 1.193 GB, free: 11.3 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006209/0.7983, allocations: 455.6 kB / 1.194 GB, free: 10.95 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.7983, allocations: 0.75 kB / 1.194 GB, free: 10.95 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.7984, allocations: 20.33 kB / 1.194 GB, free: 10.95 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.7984, allocations: 2.219 kB / 1.194 GB, free: 10.95 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.7985, allocations: 3.047 kB / 1.194 GB, free: 10.95 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.7985, allocations: 5.156 kB / 1.194 GB, free: 10.94 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.7985, allocations: 1.984 kB / 1.194 GB, free: 10.94 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004306/0.7989, allocations: 366.1 kB / 1.194 GB, free: 10.66 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 2.457e-05/0.7989, allocations: 14.73 kB / 1.194 GB, free: 10.66 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.425e-05/0.7989, allocations: 7.016 kB / 1.194 GB, free: 10.65 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.7991, allocations: 10.73 kB / 1.194 GB, free: 10.65 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.665e-05/0.7992, allocations: 22.88 kB / 1.194 GB, free: 10.64 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.7992, allocations: 4.938 kB / 1.194 GB, free: 10.64 MB / 1.076 GB Notification: Performance of sorting global known variables: time 8.31e-05/0.7993, allocations: 135.3 kB / 1.194 GB, free: 10.55 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.7993, allocations: 5.188 kB / 1.194 GB, free: 10.54 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003431/0.7996, allocations: 26.47 kB / 1.194 GB, free: 10.54 MB / 1.076 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 8.693e-05/0.7997, allocations: 102.4 kB / 1.194 GB, free: 10.45 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003148/0.8, allocations: 111.8 kB / 1.194 GB, free: 10.42 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.8, allocations: 4.062 kB / 1.194 GB, free: 10.41 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.00014/0.8002, allocations: 47.69 kB / 1.194 GB, free: 10.4 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005709/0.8007, allocations: 64.47 kB / 1.194 GB, free: 10.39 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004866/0.8012, allocations: 355.7 kB / 1.195 GB, free: 10.12 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.108e-05/0.8013, allocations: 112.6 kB / 1.195 GB, free: 10.04 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 6.895e-05/0.8014, allocations: 23.92 kB / 1.195 GB, free: 10.03 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.082e-05/0.8014, allocations: 17.88 kB / 1.195 GB, free: 10.02 MB / 1.076 GB Notification: Performance of SimCode: time 3.6e-07/0.8014, allocations: 0 / 1.195 GB, free: 10.02 MB / 1.076 GB Notification: Performance of Templates: time 0.005459/0.8069, allocations: 2.125 MB / 1.197 GB, free: 9.75 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.687536802026443]