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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 105.8 kB / 18.84 MB, free: 3.043 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001968/0.001968, allocations: 190.5 kB / 22.11 MB, free: 5.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 225.6 MB / 250.8 MB, free: 13.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.156/3.156, allocations: 495.8 MB / 0.783 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002096/0.002096, allocations: 73.88 kB / 1.137 GB, free: 33.87 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3896/0.3917, allocations: 173.6 MB / 1.307 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00314/0.3948, allocations: 1.832 MB / 1.309 GB, free: 20 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001056/0.3959, allocations: 0.5494 MB / 1.309 GB, free: 15.46 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.962e-05/0.396, allocations: 7.938 kB / 1.309 GB, free: 15.46 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.3961, allocations: 31.67 kB / 1.309 GB, free: 15.43 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.193e-05/0.3962, allocations: 31.72 kB / 1.309 GB, free: 15.39 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.3965, allocations: 59.88 kB / 1.309 GB, free: 15.34 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.00025/0.3967, allocations: 183.3 kB / 1.309 GB, free: 15.16 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.3969, allocations: 37.73 kB / 1.309 GB, free: 15.12 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.666e-05/0.397, allocations: 51.78 kB / 1.309 GB, free: 15.07 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 8.884e-05/0.3971, allocations: 63.58 kB / 1.31 GB, free: 15 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.293e-05/0.3971, allocations: 16 kB / 1.31 GB, free: 14.99 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 2.27e-05/0.3971, allocations: 8 kB / 1.31 GB, free: 14.98 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.222e-05/0.3972, allocations: 31.91 kB / 1.31 GB, free: 14.95 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.237e-05/0.3972, allocations: 59.61 kB / 1.31 GB, free: 14.89 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002125/0.3974, allocations: 135.3 kB / 1.31 GB, free: 14.76 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.874e-06/0.3975, allocations: 7.984 kB / 1.31 GB, free: 14.75 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.853e-06/0.3975, allocations: 0 / 1.31 GB, free: 14.75 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.3975, allocations: 4 kB / 1.31 GB, free: 14.75 MB / 1.014 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.0007712/0.3982, allocations: 427.2 kB / 1.31 GB, free: 14.29 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.3983, allocations: 8.031 kB / 1.31 GB, free: 14.29 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.459e-05/0.3983, allocations: 24.78 kB / 1.31 GB, free: 14.26 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003101/0.3986, allocations: 171 kB / 1.31 GB, free: 14.07 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.3987, allocations: 8.375 kB / 1.31 GB, free: 14.06 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.638e-05/0.3987, allocations: 16.38 kB / 1.31 GB, free: 14.05 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000319/0.399, allocations: 150.2 kB / 1.311 GB, free: 13.88 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.399, allocations: 4 kB / 1.311 GB, free: 13.88 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.399, allocations: 4 kB / 1.311 GB, free: 13.87 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.399, allocations: 4 kB / 1.311 GB, free: 13.87 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002388/0.3993, allocations: 67.83 kB / 1.311 GB, free: 13.8 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009502/0.4002, allocations: 0.7189 MB / 1.311 GB, free: 13.02 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.4004, allocations: 54.55 kB / 1.311 GB, free: 12.96 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.4005, allocations: 32.83 kB / 1.311 GB, free: 12.93 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.4005, allocations: 0 / 1.311 GB, free: 12.93 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002436/0.4008, allocations: 122.7 kB / 1.312 GB, free: 12.78 MB / 1.014 GB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.4008, allocations: 4 kB / 1.312 GB, free: 12.78 MB / 1.014 GB Notification: Performance of matching and sorting (n=11): time 0.00052/0.4013, allocations: 161.4 kB / 1.312 GB, free: 12.61 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.4014, allocations: 140.4 kB / 1.312 GB, free: 12.45 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/0.4016, allocations: 199.4 kB / 1.312 GB, free: 12.24 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.4016, allocations: 37.7 kB / 1.312 GB, free: 12.2 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.4017, allocations: 131.9 kB / 1.312 GB, free: 12.07 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.808e-05/0.4018, allocations: 31.73 kB / 1.312 GB, free: 12.04 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.394e-05/0.4018, allocations: 49.66 kB / 1.312 GB, free: 11.98 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.402, allocations: 326.8 kB / 1.313 GB, free: 11.65 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.4021, allocations: 35.97 kB / 1.313 GB, free: 11.62 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.4023, allocations: 147.4 kB / 1.313 GB, free: 11.42 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003528/0.4027, allocations: 202.3 kB / 1.313 GB, free: 11.17 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.4027, allocations: 4 kB / 1.313 GB, free: 11.17 MB / 1.014 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000421/0.4031, allocations: 205.6 kB / 1.313 GB, free: 10.96 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.4031, allocations: 8 kB / 1.313 GB, free: 10.95 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.4031, allocations: 4 kB / 1.313 GB, free: 10.95 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.4031, allocations: 7.984 kB / 1.313 GB, free: 10.94 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.4033, allocations: 31.92 kB / 1.313 GB, free: 10.91 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.4033, allocations: 4 kB / 1.313 GB, free: 10.91 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001526/0.4034, allocations: 27.88 kB / 1.313 GB, free: 10.88 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/0.4035, allocations: 8 kB / 1.313 GB, free: 10.87 MB / 1.014 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.0001347/0.4036, allocations: 154.2 kB / 1.313 GB, free: 10.71 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.204e-05/0.4036, allocations: 19.86 kB / 1.313 GB, free: 10.69 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.494e-05/0.4037, allocations: 17.41 kB / 1.313 GB, free: 10.67 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.4037, allocations: 4 kB / 1.313 GB, free: 10.67 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.4037, allocations: 0 / 1.313 GB, free: 10.67 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.4037, allocations: 3.984 kB / 1.313 GB, free: 10.66 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008021/0.4045, allocations: 0.4888 MB / 1.314 GB, free: 10.12 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.4045, allocations: 0 / 1.314 GB, free: 10.12 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000119/0.4046, allocations: 15.98 kB / 1.314 GB, free: 10.11 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.4046, allocations: 0 / 1.314 GB, free: 10.11 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.4046, allocations: 7.984 kB / 1.314 GB, free: 10.1 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.4046, allocations: 320 / 1.314 GB, free: 10.1 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.4046, allocations: 7.938 kB / 1.314 GB, free: 10.09 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005787/0.4052, allocations: 364.5 kB / 1.314 GB, free: 9.715 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 3.171e-05/0.4052, allocations: 15.84 kB / 1.314 GB, free: 9.699 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.79e-05/0.4053, allocations: 7.938 kB / 1.314 GB, free: 9.691 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.4054, allocations: 16.03 kB / 1.314 GB, free: 9.676 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.636e-05/0.4055, allocations: 23.98 kB / 1.314 GB, free: 9.652 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.4055, allocations: 8 kB / 1.314 GB, free: 9.645 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001295/0.4057, allocations: 140.4 kB / 1.314 GB, free: 9.508 MB / 1.014 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4057, allocations: 0 / 1.314 GB, free: 9.508 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003399/0.406, allocations: 31.95 kB / 1.314 GB, free: 9.477 MB / 1.014 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.0001343/0.4061, allocations: 103.2 kB / 1.315 GB, free: 9.367 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003645/0.4065, allocations: 115.7 kB / 1.315 GB, free: 9.254 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.4065, allocations: 0 / 1.315 GB, free: 9.254 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001582/0.4067, allocations: 47.91 kB / 1.315 GB, free: 9.207 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005783/0.4072, allocations: 69.5 kB / 1.315 GB, free: 9.145 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006666/0.4079, allocations: 360.5 kB / 1.315 GB, free: 8.758 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/0.4082, allocations: 0.7242 MB / 1.316 GB, free: 8.008 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 7.348e-05/0.4083, allocations: 17.48 kB / 1.316 GB, free: 7.988 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.786e-05/0.4084, allocations: 15.44 kB / 1.316 GB, free: 7.973 MB / 1.014 GB Notification: Performance of SimCode: time 6.01e-07/0.4084, allocations: 0 / 1.316 GB, free: 7.973 MB / 1.014 GB Notification: Performance of Templates: time 0.005666/0.414, allocations: 2.118 MB / 1.318 GB, free: 5.883 MB / 1.014 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.044722105376422]