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.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.001589/0.001589, allocations: 109.4 kB / 16.46 MB, free: 6.035 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.002/0.002, allocations: 192.5 kB / 19.41 MB, free: 3.539 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.524/1.524, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.218/3.218, allocations: 497.2 MB / 0.7811 GB, free: 33.55 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 68.8 kB / 1.134 GB, free: 33.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3573, allocations: 173.9 MB / 1.304 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003082/0.3604, allocations: 1.827 MB / 1.306 GB, free: 15.71 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0009761/0.3614, allocations: 0.5493 MB / 1.306 GB, free: 15.16 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.108e-05/0.3615, allocations: 7.938 kB / 1.306 GB, free: 15.15 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.3616, allocations: 23.72 kB / 1.306 GB, free: 15.13 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.458e-05/0.3617, allocations: 23.75 kB / 1.306 GB, free: 15.11 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002076/0.3619, allocations: 67.84 kB / 1.306 GB, free: 15.04 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000236/0.3621, allocations: 171.5 kB / 1.307 GB, free: 14.87 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.3622, allocations: 41.88 kB / 1.307 GB, free: 14.83 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.635e-05/0.3623, allocations: 55.72 kB / 1.307 GB, free: 14.77 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.855e-05/0.3624, allocations: 59.64 kB / 1.307 GB, free: 14.71 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.484e-05/0.3624, allocations: 8 kB / 1.307 GB, free: 14.71 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 2.027e-05/0.3625, allocations: 12 kB / 1.307 GB, free: 14.7 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.475e-05/0.3625, allocations: 27.91 kB / 1.307 GB, free: 14.67 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 6.767e-05/0.3626, allocations: 63.61 kB / 1.307 GB, free: 14.61 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.3627, allocations: 139.2 kB / 1.307 GB, free: 14.47 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.3627, allocations: 0 / 1.307 GB, free: 14.47 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3627, allocations: 0 / 1.307 GB, free: 14.47 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.887e-06/0.3628, allocations: 4 kB / 1.307 GB, free: 14.46 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.0007662/0.3635, allocations: 478.6 kB / 1.307 GB, free: 13.95 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.3636, allocations: 8.625 kB / 1.307 GB, free: 13.94 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.408e-05/0.3636, allocations: 42.73 kB / 1.307 GB, free: 13.89 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.431e-05/0.3636, allocations: 24.8 kB / 1.307 GB, free: 13.87 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003207/0.364, allocations: 240 kB / 1.308 GB, free: 13.59 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.364, allocations: 12.3 kB / 1.308 GB, free: 13.58 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.203e-05/0.364, allocations: 16.38 kB / 1.308 GB, free: 13.57 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002854/0.3643, allocations: 142 kB / 1.308 GB, free: 13.41 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3643, allocations: 4 kB / 1.308 GB, free: 13.4 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.3643, allocations: 8 kB / 1.308 GB, free: 13.39 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.3643, allocations: 4 kB / 1.308 GB, free: 13.39 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002225/0.3646, allocations: 67.88 kB / 1.308 GB, free: 13.32 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009101/0.3655, allocations: 0.7395 MB / 1.309 GB, free: 12.52 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000143/0.3656, allocations: 42.55 kB / 1.309 GB, free: 12.47 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.3657, allocations: 36.83 kB / 1.309 GB, free: 12.43 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.3657, allocations: 4 kB / 1.309 GB, free: 12.43 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002332/0.366, allocations: 122.7 kB / 1.309 GB, free: 12.28 MB / 1.014 GB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.366, allocations: 0 / 1.309 GB, free: 12.28 MB / 1.014 GB Notification: Performance of matching and sorting (n=11): time 0.0004789/0.3665, allocations: 169.8 kB / 1.309 GB, free: 12.11 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.846e-05/0.3666, allocations: 136.4 kB / 1.309 GB, free: 11.95 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001948/0.3667, allocations: 203 kB / 1.309 GB, free: 11.74 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.3668, allocations: 29.69 kB / 1.309 GB, free: 11.7 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 9.232e-05/0.3669, allocations: 136.1 kB / 1.31 GB, free: 11.57 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.661e-05/0.3669, allocations: 35.69 kB / 1.31 GB, free: 11.53 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.119e-05/0.367, allocations: 41.7 kB / 1.31 GB, free: 11.48 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3671, allocations: 330.9 kB / 1.31 GB, free: 11.15 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.3672, allocations: 39.97 kB / 1.31 GB, free: 11.11 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.3674, allocations: 152.4 kB / 1.31 GB, free: 10.91 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003186/0.3678, allocations: 206.3 kB / 1.31 GB, free: 10.66 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3678, allocations: 0 / 1.31 GB, free: 10.66 MB / 1.014 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003897/0.3682, allocations: 201.2 kB / 1.31 GB, free: 10.46 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.3682, allocations: 11.94 kB / 1.31 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.3682, allocations: 4.25 kB / 1.31 GB, free: 10.44 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.3682, allocations: 4 kB / 1.311 GB, free: 10.44 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.3683, allocations: 44.41 kB / 1.311 GB, free: 10.39 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.3684, allocations: 12 kB / 1.311 GB, free: 10.38 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.3685, allocations: 27.83 kB / 1.311 GB, free: 10.36 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.59e-05/0.3685, allocations: 12 kB / 1.311 GB, free: 10.34 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.0001324/0.3686, allocations: 137.6 kB / 1.311 GB, free: 10.2 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.061e-05/0.3687, allocations: 15.91 kB / 1.311 GB, free: 10.18 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.328e-05/0.3687, allocations: 21.41 kB / 1.311 GB, free: 10.15 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.3687, allocations: 0 / 1.311 GB, free: 10.15 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.3687, allocations: 4 kB / 1.311 GB, free: 10.15 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.3687, allocations: 7.984 kB / 1.311 GB, free: 10.14 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000811/0.3696, allocations: 0.5093 MB / 1.311 GB, free: 9.574 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3696, allocations: 3.984 kB / 1.311 GB, free: 9.57 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.3697, allocations: 19.98 kB / 1.311 GB, free: 9.551 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.3697, allocations: 4 kB / 1.311 GB, free: 9.547 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.3697, allocations: 4 kB / 1.311 GB, free: 9.543 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.906e-06/0.3697, allocations: 7.938 kB / 1.311 GB, free: 9.535 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3697, allocations: 0 / 1.311 GB, free: 9.535 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005427/0.3702, allocations: 356.2 kB / 1.312 GB, free: 9.164 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 7.063e-05/0.3703, allocations: 96.97 kB / 1.312 GB, free: 9.051 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.3703, allocations: 4 kB / 1.312 GB, free: 9.047 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.3705, allocations: 19.95 kB / 1.312 GB, free: 9.027 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.74e-05/0.3706, allocations: 11.98 kB / 1.312 GB, free: 9.016 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.3706, allocations: 4 kB / 1.312 GB, free: 9.012 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001322/0.3707, allocations: 148.2 kB / 1.312 GB, free: 8.867 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.3707, allocations: 0 / 1.312 GB, free: 8.867 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003385/0.3711, allocations: 35.94 kB / 1.312 GB, free: 8.832 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.0008942/0.3719, allocations: 0.9007 MB / 1.313 GB, free: 7.898 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003331/0.3723, allocations: 120.8 kB / 1.313 GB, free: 7.781 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.3723, allocations: 0 / 1.313 GB, free: 7.781 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.3724, allocations: 52.03 kB / 1.313 GB, free: 7.73 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005668/0.373, allocations: 67.45 kB / 1.313 GB, free: 7.668 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002676/0.3757, allocations: 2.264 MB / 1.315 GB, free: 5.215 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.3762, allocations: 0.7281 MB / 1.316 GB, free: 4.461 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001067/0.3763, allocations: 13.55 kB / 1.316 GB, free: 4.445 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.3764, allocations: 55.42 kB / 1.316 GB, free: 4.391 MB / 1.014 GB Notification: Performance of SimCode: time 9.92e-07/0.3764, allocations: 0 / 1.316 GB, free: 4.391 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03041/0.4068, allocations: 4.06 MB / 1.32 GB, free: 476 kB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.222/8.629, allocations: 18.03 kB / 1.32 GB, free: 460 kB / 1.014 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 840.0] 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_2/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: 15.404568711761385]