Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001283/0.001283, allocations: 113 kB / 18.94 MB, free: 2.934 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.001543/0.001543, allocations: 209.6 kB / 22.25 MB, free: 5.086 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.517/1.517, allocations: 230.6 MB / 256 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.21/3.21, allocations: 0.49 GB / 0.7951 GB, free: 33.51 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",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.003068/0.003068, allocations: 70.42 kB / 1.154 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3802/0.3832, allocations: 176.1 MB / 1.326 GB, free: 1.898 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002391/0.3856, allocations: 0.8866 MB / 1.327 GB, free: 1.016 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002045/0.3877, allocations: 1.213 MB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.3878, allocations: 4 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.65e-05/0.3878, allocations: 11.86 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.3879, allocations: 11.81 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007311/0.3887, allocations: 163.8 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003019/0.389, allocations: 163.7 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001762/0.3892, allocations: 33.22 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.3893, allocations: 59.91 kB / 1.328 GB, free: 15.35 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.3895, allocations: 75.66 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.073e-05/0.3895, allocations: 16 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.962e-05/0.3896, allocations: 27.98 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.054e-05/0.3897, allocations: 23.92 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.3898, allocations: 71.64 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003708/0.3901, allocations: 167.6 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3901, allocations: 0 / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.054e-06/0.3901, allocations: 4 kB / 1.329 GB, free: 14.97 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.635e-06/0.3902, allocations: 0 / 1.329 GB, free: 14.97 MB / 1.029 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.0008744/0.391, allocations: 422 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.3911, allocations: 8.031 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.656e-05/0.3911, allocations: 38.75 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.343e-05/0.3912, allocations: 16.84 kB / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005715/0.3918, allocations: 199.9 kB / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.3918, allocations: 12.31 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.778e-05/0.3918, allocations: 12.38 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002435/0.3921, allocations: 89.95 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.3921, allocations: 0 / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/0.3921, allocations: 8 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3921, allocations: 0 / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001773/0.3923, allocations: 51.95 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007967/0.3931, allocations: 363.5 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001269/0.3932, allocations: 30.56 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.738e-05/0.3933, allocations: 32.89 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.3933, allocations: 4 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003047/0.3936, allocations: 95.34 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.3936, allocations: 0 / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0004881/0.3941, allocations: 137.5 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.332e-05/0.3942, allocations: 63.34 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001665/0.3943, allocations: 143.3 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.777e-05/0.3944, allocations: 33.7 kB / 1.33 GB, free: 13.06 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.772e-05/0.3945, allocations: 108.1 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.902e-05/0.3945, allocations: 23.81 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.3946, allocations: 49.69 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001626/0.3948, allocations: 322.8 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.3949, allocations: 55.89 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000228/0.3952, allocations: 127.1 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003831/0.3956, allocations: 200.6 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.3956, allocations: 4 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005294/0.3961, allocations: 239 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.752e-05/0.3961, allocations: 37.69 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.3961, allocations: 4 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.3962, allocations: 4.375 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.3963, allocations: 31.86 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.3963, allocations: 4.375 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002365/0.3965, allocations: 47.84 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.681e-05/0.3966, allocations: 11.94 kB / 1.332 GB, free: 11.7 MB / 1.029 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.0001361/0.3967, allocations: 140.1 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.292e-05/0.3967, allocations: 11.91 kB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.37e-05/0.3968, allocations: 12.72 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.3968, allocations: 3.938 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3968, allocations: 4 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.3968, allocations: 0 / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006045/0.3974, allocations: 365.5 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3974, allocations: 0 / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.3975, allocations: 31.86 kB / 1.332 GB, free: 11.08 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3975, allocations: 0 / 1.332 GB, free: 11.08 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.3975, allocations: 0 / 1.332 GB, free: 11.08 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.3975, allocations: 4 kB / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3975, allocations: 4.047 kB / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004423/0.3979, allocations: 239.3 kB / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.093e-05/0.398, allocations: 15.89 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.398, allocations: 4 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.3981, allocations: 12.03 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.136e-05/0.3981, allocations: 7.984 kB / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.3981, allocations: 7.938 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.408e-05/0.3982, allocations: 105.2 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3982, allocations: 0 / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003255/0.3986, allocations: 35.92 kB / 1.333 GB, free: 10.64 MB / 1.029 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.0008964/0.3994, allocations: 0.7827 MB / 1.333 GB, free: 9.828 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004384/0.3999, allocations: 167.8 kB / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.3999, allocations: 128 / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.4, allocations: 39.97 kB / 1.334 GB, free: 9.613 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003442/0.4004, allocations: 15.98 kB / 1.334 GB, free: 9.598 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/0.4036, allocations: 1.98 MB / 1.336 GB, free: 7.457 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004859/0.4041, allocations: 0.7084 MB / 1.336 GB, free: 6.723 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.778e-05/0.4042, allocations: 12.66 kB / 1.336 GB, free: 6.711 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.85e-05/0.4043, allocations: 39.42 kB / 1.336 GB, free: 6.672 MB / 1.029 GB Notification: Performance of SimCode: time 2.134e-06/0.4043, allocations: 4 kB / 1.336 GB, free: 6.668 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03443/0.4387, allocations: 3.328 MB / 1.34 GB, free: 3.496 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.88, allocations: 6.828 kB / 1.34 GB, free: 3.496 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.67502660281025]