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.001622/0.001622, allocations: 110.1 kB / 19.73 MB, free: 2.242 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.002593/0.002593, allocations: 220.3 kB / 23.04 MB, free: 5.074 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.553/1.553, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.175/3.175, allocations: 0.49 GB / 0.7959 GB, free: 33.42 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_12_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.002047/0.002047, allocations: 64.02 kB / 1.155 GB, free: 25.83 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3583, allocations: 176.1 MB / 1.327 GB, free: 2.051 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002352/0.3606, allocations: 0.9041 MB / 1.328 GB, free: 1.148 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001771/0.3624, allocations: 1.214 MB / 1.329 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.86e-05/0.3624, allocations: 0 / 1.329 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.131e-05/0.3625, allocations: 7.875 kB / 1.329 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.727e-05/0.3626, allocations: 11.88 kB / 1.329 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005927/0.3632, allocations: 167.1 kB / 1.329 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000264/0.3634, allocations: 167.6 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.3636, allocations: 25.3 kB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.3638, allocations: 71.81 kB / 1.329 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.3639, allocations: 67.73 kB / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.423e-05/0.3639, allocations: 16 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.435e-05/0.364, allocations: 31.92 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.544e-05/0.3641, allocations: 19.92 kB / 1.329 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.3642, allocations: 75.69 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002707/0.3644, allocations: 171.1 kB / 1.33 GB, free: 15.11 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3644, allocations: 4 kB / 1.33 GB, free: 15.1 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3644, allocations: 0 / 1.33 GB, free: 15.1 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.852e-06/0.3645, allocations: 0 / 1.33 GB, free: 15.1 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.0007776/0.3652, allocations: 414.1 kB / 1.33 GB, free: 14.65 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.3653, allocations: 8.031 kB / 1.33 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.698e-05/0.3653, allocations: 4.188 kB / 1.33 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.527e-05/0.3653, allocations: 38.73 kB / 1.33 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.25e-05/0.3654, allocations: 16.89 kB / 1.33 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005298/0.3659, allocations: 195.4 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.3659, allocations: 4.375 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.746e-05/0.366, allocations: 16.38 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002376/0.3662, allocations: 95.53 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.3662, allocations: 0 / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.3662, allocations: 7.984 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.3662, allocations: 4 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.3664, allocations: 47.95 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007414/0.3672, allocations: 359.6 kB / 1.331 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.3673, allocations: 38.56 kB / 1.331 GB, free: 13.74 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.3674, allocations: 28.94 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.3674, allocations: 4 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003083/0.3677, allocations: 91.3 kB / 1.331 GB, free: 13.61 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.3677, allocations: 0 / 1.331 GB, free: 13.61 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0004709/0.3682, allocations: 145.4 kB / 1.331 GB, free: 13.46 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/0.3683, allocations: 51.41 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.3685, allocations: 148 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.129e-05/0.3685, allocations: 29.7 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.281e-05/0.3686, allocations: 120.1 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.691e-05/0.3686, allocations: 27.8 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.314e-05/0.3687, allocations: 45.64 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001775/0.3689, allocations: 326.8 kB / 1.332 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.369, allocations: 55.89 kB / 1.332 GB, free: 12.62 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002402/0.3693, allocations: 131.1 kB / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003391/0.3696, allocations: 192.7 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3696, allocations: 4 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00051/0.3701, allocations: 250.9 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.705e-05/0.3702, allocations: 37.7 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.3702, allocations: 384 / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.3702, allocations: 11.94 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.3703, allocations: 23.98 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.3703, allocations: 7.938 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.3706, allocations: 35.91 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.164e-05/0.3706, allocations: 16 kB / 1.332 GB, free: 11.82 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.0002125/0.3708, allocations: 134.2 kB / 1.333 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.3708, allocations: 11.95 kB / 1.333 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.343e-05/0.3709, allocations: 12.72 kB / 1.333 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.3709, allocations: 3.938 kB / 1.333 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3709, allocations: 0 / 1.333 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3709, allocations: 0 / 1.333 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006805/0.3716, allocations: 373.5 kB / 1.333 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3716, allocations: 3.938 kB / 1.333 GB, free: 11.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.962e-05/0.3716, allocations: 11.98 kB / 1.333 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3716, allocations: 4 kB / 1.333 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.3717, allocations: 8 kB / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-06/0.3717, allocations: 0 / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3717, allocations: 0 / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004623/0.3721, allocations: 239.3 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.629e-05/0.3721, allocations: 16.08 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.978e-05/0.3722, allocations: 0 / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.327e-05/0.3723, allocations: 15.97 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.32e-05/0.3723, allocations: 7.984 kB / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.868e-06/0.3723, allocations: 7.938 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.173e-05/0.3724, allocations: 108.7 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3724, allocations: 0 / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002813/0.3727, allocations: 35.94 kB / 1.333 GB, free: 10.77 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.0007874/0.3735, allocations: 0.7747 MB / 1.334 GB, free: 9.973 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003907/0.3739, allocations: 171.5 kB / 1.334 GB, free: 9.793 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3739, allocations: 0 / 1.334 GB, free: 9.793 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.374, allocations: 35.91 kB / 1.334 GB, free: 9.758 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.3743, allocations: 22.02 kB / 1.334 GB, free: 9.738 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.377, allocations: 1.99 MB / 1.336 GB, free: 7.59 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.3773, allocations: 0.7084 MB / 1.337 GB, free: 6.855 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.987e-05/0.3774, allocations: 16.64 kB / 1.337 GB, free: 6.84 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.66e-05/0.3775, allocations: 39.36 kB / 1.337 GB, free: 6.801 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.3775, allocations: 0 / 1.337 GB, free: 6.801 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02729/0.4048, allocations: 3.339 MB / 1.34 GB, free: 3.629 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.93, allocations: 9.625 kB / 1.34 GB, free: 3.621 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.94739228801336]