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.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.001699/0.001699, allocations: 109.5 kB / 19.73 MB, free: 2.238 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.002336/0.002336, allocations: 220 kB / 23.04 MB, free: 5.078 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.573/1.573, allocations: 230.6 MB / 256.8 MB, free: 8.043 MB / 206.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 3.23/3.23, allocations: 0.5003 GB / 0.8061 GB, free: 26.83 MB / 0.6231 GB " [Timeout remaining time 176] 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="cs",version="2.0",platforms={"static"}) [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.002018/0.002018, allocations: 64.06 kB / 1.171 GB, free: 19.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3836/0.3856, allocations: 179 MB / 1.345 GB, free: 480 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002344/0.388, allocations: 0.8933 MB / 1.346 GB, free: 15.57 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001767/0.3897, allocations: 1.209 MB / 1.347 GB, free: 14.35 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.272e-05/0.3898, allocations: 0 / 1.347 GB, free: 14.35 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.576e-05/0.3898, allocations: 11.86 kB / 1.347 GB, free: 14.34 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.907e-05/0.3899, allocations: 15.81 kB / 1.347 GB, free: 14.32 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005684/0.3905, allocations: 155.7 kB / 1.348 GB, free: 14.18 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002306/0.3907, allocations: 163.7 kB / 1.348 GB, free: 14.02 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.3909, allocations: 33.3 kB / 1.348 GB, free: 13.98 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.391, allocations: 63.83 kB / 1.348 GB, free: 13.92 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.3911, allocations: 75.66 kB / 1.348 GB, free: 13.85 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.317e-05/0.3911, allocations: 16 kB / 1.348 GB, free: 13.83 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.334e-05/0.3912, allocations: 27.98 kB / 1.348 GB, free: 13.8 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.138e-05/0.3912, allocations: 23.92 kB / 1.348 GB, free: 13.78 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 8.135e-05/0.3913, allocations: 63.72 kB / 1.348 GB, free: 13.72 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000239/0.3916, allocations: 175.6 kB / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3916, allocations: 4 kB / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3916, allocations: 0 / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.187e-06/0.3916, allocations: 0 / 1.348 GB, free: 13.54 MB / 1.045 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.0007016/0.3923, allocations: 418 kB / 1.349 GB, free: 13.09 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.3923, allocations: 8.031 kB / 1.349 GB, free: 13.08 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.496e-05/0.3923, allocations: 4.188 kB / 1.349 GB, free: 13.07 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.294e-05/0.3924, allocations: 34.75 kB / 1.349 GB, free: 13.03 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.412e-05/0.3924, allocations: 20.78 kB / 1.349 GB, free: 13.01 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005196/0.3929, allocations: 194.4 kB / 1.349 GB, free: 12.8 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.393, allocations: 12.38 kB / 1.349 GB, free: 12.79 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.716e-05/0.393, allocations: 12.38 kB / 1.349 GB, free: 12.77 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002292/0.3932, allocations: 93.77 kB / 1.349 GB, free: 12.68 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.3932, allocations: 0 / 1.349 GB, free: 12.68 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.3932, allocations: 4 kB / 1.349 GB, free: 12.67 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/0.3933, allocations: 4 kB / 1.349 GB, free: 12.67 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/0.3934, allocations: 47.89 kB / 1.349 GB, free: 12.62 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007483/0.3942, allocations: 359.6 kB / 1.349 GB, free: 12.23 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001568/0.3943, allocations: 42.5 kB / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.729e-05/0.3944, allocations: 24.83 kB / 1.349 GB, free: 12.15 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.3945, allocations: 0 / 1.349 GB, free: 12.15 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002902/0.3948, allocations: 99.38 kB / 1.35 GB, free: 12.04 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.3948, allocations: 0 / 1.35 GB, free: 12.04 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0004548/0.3952, allocations: 141.5 kB / 1.35 GB, free: 11.89 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.126e-05/0.3953, allocations: 59.34 kB / 1.35 GB, free: 11.82 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.3954, allocations: 143.1 kB / 1.35 GB, free: 11.68 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.3954, allocations: 33.7 kB / 1.35 GB, free: 11.64 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.727e-05/0.3955, allocations: 115.8 kB / 1.35 GB, free: 11.52 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.625e-05/0.3956, allocations: 31.75 kB / 1.35 GB, free: 11.49 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.33e-05/0.3956, allocations: 45.69 kB / 1.35 GB, free: 11.44 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.3958, allocations: 330.8 kB / 1.35 GB, free: 11.11 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.3959, allocations: 47.95 kB / 1.35 GB, free: 11.06 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002308/0.3962, allocations: 133.7 kB / 1.351 GB, free: 10.89 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003388/0.3965, allocations: 196.6 kB / 1.351 GB, free: 10.65 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3965, allocations: 4 kB / 1.351 GB, free: 10.65 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005071/0.397, allocations: 243 kB / 1.351 GB, free: 10.4 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.108e-05/0.3971, allocations: 37.69 kB / 1.351 GB, free: 10.36 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.3971, allocations: 4 kB / 1.351 GB, free: 10.35 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.05e-05/0.3971, allocations: 12.31 kB / 1.351 GB, free: 10.34 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.3972, allocations: 31.92 kB / 1.351 GB, free: 10.31 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.3972, allocations: 4 kB / 1.351 GB, free: 10.3 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002231/0.3974, allocations: 35.89 kB / 1.351 GB, free: 10.27 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.54e-05/0.3975, allocations: 12 kB / 1.351 GB, free: 10.26 MB / 1.045 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.0001177/0.3976, allocations: 128.5 kB / 1.351 GB, free: 10.12 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.247e-05/0.3976, allocations: 15.89 kB / 1.351 GB, free: 10.11 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.06e-05/0.3977, allocations: 20.72 kB / 1.351 GB, free: 10.08 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.3977, allocations: 7.969 kB / 1.351 GB, free: 10.07 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3977, allocations: 0 / 1.351 GB, free: 10.07 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.3977, allocations: 0 / 1.351 GB, free: 10.07 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006125/0.3983, allocations: 369.8 kB / 1.352 GB, free: 9.664 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.3983, allocations: 7.938 kB / 1.352 GB, free: 9.656 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001015/0.3984, allocations: 16.08 kB / 1.352 GB, free: 9.641 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.3984, allocations: 7.938 kB / 1.352 GB, free: 9.633 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.3984, allocations: 0 / 1.352 GB, free: 9.633 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.3984, allocations: 4 kB / 1.352 GB, free: 9.629 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3984, allocations: 0 / 1.352 GB, free: 9.629 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004447/0.3989, allocations: 243.3 kB / 1.352 GB, free: 9.375 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.531e-05/0.3989, allocations: 11.89 kB / 1.352 GB, free: 9.363 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.885e-05/0.3989, allocations: 4 kB / 1.352 GB, free: 9.359 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.201e-05/0.399, allocations: 8.031 kB / 1.352 GB, free: 9.352 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.135e-05/0.399, allocations: 11.98 kB / 1.352 GB, free: 9.34 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.744e-06/0.399, allocations: 0 / 1.352 GB, free: 9.34 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.301e-05/0.3991, allocations: 105.3 kB / 1.352 GB, free: 9.238 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3991, allocations: 0 / 1.352 GB, free: 9.238 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002998/0.3994, allocations: 43.81 kB / 1.352 GB, free: 9.195 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intWitRes2.y,intWitRes1.y,intDef.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.000848/0.4003, allocations: 0.7786 MB / 1.353 GB, free: 8.391 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004141/0.4007, allocations: 167.6 kB / 1.353 GB, free: 8.215 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.4007, allocations: 0 / 1.353 GB, free: 8.215 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.4008, allocations: 39.91 kB / 1.353 GB, free: 8.176 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000309/0.4011, allocations: 24.28 kB / 1.353 GB, free: 8.152 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00266/0.4038, allocations: 1.975 MB / 1.355 GB, free: 6.016 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.4041, allocations: 0.7123 MB / 1.356 GB, free: 5.277 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 6.109e-05/0.4042, allocations: 12.66 kB / 1.356 GB, free: 5.262 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.699e-05/0.4042, allocations: 39.42 kB / 1.356 GB, free: 5.223 MB / 1.045 GB Notification: Performance of SimCode: time 4.21e-07/0.4042, allocations: 0 / 1.356 GB, free: 5.223 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02853/0.4328, allocations: 3.362 MB / 1.359 GB, free: 2.016 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.93, allocations: 2.234 kB / 1.359 GB, free: 2.016 MB / 1.045 GB " [Timeout remaining time 288] (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/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: 18.938424098014366]