Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.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.001635/0.001635, allocations: 106.6 kB / 16.45 MB, free: 6.504 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.001523/0.001523, allocations: 191.7 kB / 19.41 MB, free: 3.68 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.415/1.415, allocations: 225.6 MB / 247.8 MB, free: 13.96 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.076/3.076, allocations: 497.2 MB / 0.7811 GB, free: 33.76 MB / 0.6231 GB " [Timeout remaining time 177] 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.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002804/0.002804, allocations: 66 kB / 1.134 GB, free: 33.65 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3643/0.3671, allocations: 173.9 MB / 1.304 GB, free: 1.488 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002283/0.3694, allocations: 0.8817 MB / 1.305 GB, free: 0.6094 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001705/0.3711, allocations: 1.182 MB / 1.306 GB, free: 15.41 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.733e-05/0.3712, allocations: 0 / 1.306 GB, free: 15.41 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.941e-05/0.3712, allocations: 7.875 kB / 1.306 GB, free: 15.41 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001034/0.3713, allocations: 27.78 kB / 1.306 GB, free: 15.38 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000551/0.3718, allocations: 143.7 kB / 1.306 GB, free: 15.24 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002553/0.3721, allocations: 167.6 kB / 1.306 GB, free: 15.07 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.3722, allocations: 33.05 kB / 1.306 GB, free: 15.04 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.3724, allocations: 67.77 kB / 1.306 GB, free: 14.97 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001327/0.3725, allocations: 71.72 kB / 1.307 GB, free: 14.9 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.128e-05/0.3725, allocations: 16 kB / 1.307 GB, free: 14.89 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.668e-05/0.3726, allocations: 24 kB / 1.307 GB, free: 14.86 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.97e-05/0.3726, allocations: 31.89 kB / 1.307 GB, free: 14.83 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 8.568e-05/0.3727, allocations: 63.72 kB / 1.307 GB, free: 14.77 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002661/0.373, allocations: 167.7 kB / 1.307 GB, free: 14.61 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.373, allocations: 4 kB / 1.307 GB, free: 14.6 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.833e-06/0.373, allocations: 0 / 1.307 GB, free: 14.6 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.373, allocations: 0 / 1.307 GB, free: 14.6 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007855/0.3738, allocations: 456.6 kB / 1.307 GB, free: 14.1 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.3738, allocations: 12.92 kB / 1.307 GB, free: 14.09 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.411e-05/0.3739, allocations: 42.67 kB / 1.307 GB, free: 14.04 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.448e-05/0.3739, allocations: 16.89 kB / 1.307 GB, free: 14.02 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005663/0.3745, allocations: 252.3 kB / 1.308 GB, free: 13.73 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.3745, allocations: 12.31 kB / 1.308 GB, free: 13.72 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.956e-05/0.3746, allocations: 12.38 kB / 1.308 GB, free: 13.71 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002381/0.3748, allocations: 93.94 kB / 1.308 GB, free: 13.61 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.3748, allocations: 0 / 1.308 GB, free: 13.61 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.3748, allocations: 7.938 kB / 1.308 GB, free: 13.61 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3748, allocations: 0 / 1.308 GB, free: 13.61 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.375, allocations: 55.89 kB / 1.308 GB, free: 13.55 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000765/0.3758, allocations: 388.5 kB / 1.308 GB, free: 13.12 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001224/0.3759, allocations: 38.5 kB / 1.308 GB, free: 13.07 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.376, allocations: 32.95 kB / 1.308 GB, free: 13.04 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.376, allocations: 0 / 1.308 GB, free: 13.04 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002793/0.3763, allocations: 87.36 kB / 1.308 GB, free: 12.94 MB / 1.014 GB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.3763, allocations: 0 / 1.308 GB, free: 12.94 MB / 1.014 GB Notification: Performance of matching and sorting (n=10): time 0.0004394/0.3767, allocations: 137.8 kB / 1.308 GB, free: 12.8 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.3768, allocations: 59.38 kB / 1.308 GB, free: 12.73 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.3769, allocations: 155.2 kB / 1.309 GB, free: 12.57 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.795e-05/0.377, allocations: 25.7 kB / 1.309 GB, free: 12.54 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 8.338e-05/0.377, allocations: 112 kB / 1.309 GB, free: 12.43 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.806e-05/0.3771, allocations: 27.89 kB / 1.309 GB, free: 12.4 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.264e-05/0.3772, allocations: 49.69 kB / 1.309 GB, free: 12.34 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3773, allocations: 318.8 kB / 1.309 GB, free: 12.02 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.3775, allocations: 55.95 kB / 1.309 GB, free: 11.97 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002409/0.3777, allocations: 125.5 kB / 1.309 GB, free: 11.81 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000354/0.3781, allocations: 208.6 kB / 1.309 GB, free: 11.56 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3781, allocations: 0 / 1.309 GB, free: 11.56 MB / 1.014 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005099/0.3786, allocations: 243 kB / 1.31 GB, free: 11.31 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.343e-05/0.3786, allocations: 37.69 kB / 1.31 GB, free: 11.27 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.3786, allocations: 4 kB / 1.31 GB, free: 11.26 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.3786, allocations: 4 kB / 1.31 GB, free: 11.26 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.3788, allocations: 36.23 kB / 1.31 GB, free: 11.22 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.3788, allocations: 7.938 kB / 1.31 GB, free: 11.21 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002279/0.379, allocations: 47.84 kB / 1.31 GB, free: 11.17 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.455e-05/0.379, allocations: 12 kB / 1.31 GB, free: 11.16 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0001159/0.3791, allocations: 129.8 kB / 1.31 GB, free: 11.02 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.038e-05/0.3792, allocations: 11.95 kB / 1.31 GB, free: 11.01 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.674e-05/0.3792, allocations: 12.72 kB / 1.31 GB, free: 10.99 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.3792, allocations: 7.938 kB / 1.31 GB, free: 10.98 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3792, allocations: 0 / 1.31 GB, free: 10.98 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.3792, allocations: 0 / 1.31 GB, free: 10.98 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005969/0.3798, allocations: 398.3 kB / 1.31 GB, free: 10.54 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3798, allocations: 3.938 kB / 1.31 GB, free: 10.54 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.564e-05/0.3799, allocations: 15.92 kB / 1.31 GB, free: 10.52 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.3799, allocations: 4 kB / 1.31 GB, free: 10.52 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.3799, allocations: 4 kB / 1.31 GB, free: 10.51 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.3799, allocations: 0 / 1.31 GB, free: 10.51 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3799, allocations: 0 / 1.31 GB, free: 10.51 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000427/0.3803, allocations: 243.4 kB / 1.311 GB, free: 10.26 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 6.113e-05/0.3804, allocations: 96.89 kB / 1.311 GB, free: 10.14 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.839e-05/0.3804, allocations: 0 / 1.311 GB, free: 10.14 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.338e-05/0.3805, allocations: 16.03 kB / 1.311 GB, free: 10.13 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.294e-05/0.3806, allocations: 7.984 kB / 1.311 GB, free: 10.12 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.3806, allocations: 4 kB / 1.311 GB, free: 10.12 MB / 1.014 GB Notification: Performance of sorting global known variables: time 8.272e-05/0.3807, allocations: 104.6 kB / 1.311 GB, free: 10.02 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.3807, allocations: 0 / 1.311 GB, free: 10.02 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002908/0.3809, allocations: 31.98 kB / 1.311 GB, free: 9.984 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.000816/0.3818, allocations: 0.7901 MB / 1.312 GB, free: 9.172 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.000378/0.3821, allocations: 164.1 kB / 1.312 GB, free: 9 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3821, allocations: 4.125 kB / 1.312 GB, free: 8.996 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001181/0.3823, allocations: 43.89 kB / 1.312 GB, free: 8.953 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.3825, allocations: 20.08 kB / 1.312 GB, free: 8.934 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002637/0.3852, allocations: 1.965 MB / 1.314 GB, free: 6.809 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.3855, allocations: 0.7045 MB / 1.315 GB, free: 6.078 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 6.048e-05/0.3856, allocations: 12.64 kB / 1.315 GB, free: 6.066 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.537e-05/0.3857, allocations: 43.42 kB / 1.315 GB, free: 6.027 MB / 1.014 GB Notification: Performance of SimCode: time 3.81e-07/0.3857, allocations: 0 / 1.315 GB, free: 6.027 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02772/0.4134, allocations: 3.193 MB / 1.318 GB, free: 2.992 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.184/8.597, allocations: 13.72 kB / 1.318 GB, free: 2.98 MB / 1.014 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.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.14206026867032]