Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.001222/0.001223, allocations: 106.5 kB / 16.4 MB, free: 6.445 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.001253/0.001253, allocations: 191.7 kB / 19.36 MB, free: 3.727 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.416/1.416, allocations: 222.9 MB / 245.1 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.817/2.817, allocations: 437.1 MB / 0.7171 GB, free: 4.078 MB / 0.5762 GB " [Timeout remaining time 176] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 71.89 kB / 1.027 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9376/0.9396, allocations: 151.6 MB / 1.175 GB, free: 17.47 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001897/0.9415, allocations: 0.8885 MB / 1.176 GB, free: 16.89 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001344/0.9429, allocations: 1.181 MB / 1.177 GB, free: 16.02 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.708e-05/0.943, allocations: 1.188 kB / 1.177 GB, free: 16.02 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.441e-05/0.943, allocations: 9.469 kB / 1.177 GB, free: 16.01 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.017e-05/0.9431, allocations: 22.39 kB / 1.177 GB, free: 15.99 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005244/0.9436, allocations: 149.4 kB / 1.177 GB, free: 15.92 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002231/0.9439, allocations: 176 kB / 1.177 GB, free: 15.84 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.944, allocations: 35.12 kB / 1.177 GB, free: 15.82 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.9441, allocations: 65.19 kB / 1.177 GB, free: 15.79 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.9442, allocations: 67.94 kB / 1.177 GB, free: 15.76 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.431e-05/0.9443, allocations: 14.78 kB / 1.177 GB, free: 15.76 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.801e-05/0.9444, allocations: 29.25 kB / 1.177 GB, free: 15.76 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.169e-05/0.9444, allocations: 30.58 kB / 1.177 GB, free: 15.74 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.451e-05/0.9445, allocations: 61.86 kB / 1.177 GB, free: 15.7 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000241/0.9447, allocations: 171.9 kB / 1.178 GB, free: 15.64 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.9447, allocations: 5.062 kB / 1.178 GB, free: 15.63 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.873e-06/0.9447, allocations: 3.938 kB / 1.178 GB, free: 15.63 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.9447, allocations: 4 kB / 1.178 GB, free: 15.62 MB / 0.92 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.0006079/0.9454, allocations: 460.1 kB / 1.178 GB, free: 15.19 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.9454, allocations: 9.906 kB / 1.178 GB, free: 15.19 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.002e-05/0.9454, allocations: 39.83 kB / 1.178 GB, free: 15.14 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.244e-05/0.9455, allocations: 22.16 kB / 1.178 GB, free: 15.13 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004723/0.946, allocations: 244.3 kB / 1.178 GB, free: 14.92 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.946, allocations: 5.875 kB / 1.178 GB, free: 14.92 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.777e-05/0.946, allocations: 18.12 kB / 1.178 GB, free: 14.91 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000218/0.9463, allocations: 92.16 kB / 1.178 GB, free: 14.86 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.9463, allocations: 0 / 1.178 GB, free: 14.86 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.9463, allocations: 5.922 kB / 1.178 GB, free: 14.86 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.9463, allocations: 2.125 kB / 1.178 GB, free: 14.86 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001807/0.9465, allocations: 45.55 kB / 1.178 GB, free: 14.85 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006234/0.9471, allocations: 393.4 kB / 1.179 GB, free: 14.52 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001262/0.9473, allocations: 41.58 kB / 1.179 GB, free: 14.49 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.534e-05/0.9474, allocations: 26.38 kB / 1.179 GB, free: 14.48 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.077e-05/0.9474, allocations: 5.562 kB / 1.179 GB, free: 14.48 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002773/0.9477, allocations: 95.97 kB / 1.179 GB, free: 14.41 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.9477, allocations: 0 / 1.179 GB, free: 14.41 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.000423/0.9481, allocations: 137.9 kB / 1.179 GB, free: 14.36 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.9482, allocations: 60.75 kB / 1.179 GB, free: 14.29 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.81e-05/0.9483, allocations: 143.9 kB / 1.179 GB, free: 14.17 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.9483, allocations: 28.94 kB / 1.179 GB, free: 14.14 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.487e-05/0.9484, allocations: 114.7 kB / 1.179 GB, free: 14.04 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/0.9484, allocations: 34 kB / 1.18 GB, free: 14.01 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.837e-05/0.9485, allocations: 47.27 kB / 1.18 GB, free: 13.98 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 5.127e-05/0.9485, allocations: 321.5 kB / 1.18 GB, free: 13.66 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.9487, allocations: 52.64 kB / 1.18 GB, free: 13.65 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.9489, allocations: 135.2 kB / 1.18 GB, free: 13.53 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002827/0.9492, allocations: 195.9 kB / 1.18 GB, free: 13.36 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.9492, allocations: 5.188 kB / 1.18 GB, free: 13.35 MB / 0.92 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004679/0.9497, allocations: 248.8 kB / 1.18 GB, free: 13.22 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.9497, allocations: 35.41 kB / 1.181 GB, free: 13.19 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.9497, allocations: 3.594 kB / 1.181 GB, free: 13.19 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.9497, allocations: 7.625 kB / 1.181 GB, free: 13.19 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.9499, allocations: 35.2 kB / 1.181 GB, free: 13.18 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.9499, allocations: 4.672 kB / 1.181 GB, free: 13.18 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002356/0.9501, allocations: 36.19 kB / 1.181 GB, free: 13.17 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.802e-05/0.9502, allocations: 16.09 kB / 1.181 GB, free: 13.17 MB / 0.92 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 8.352e-05/0.9502, allocations: 127.9 kB / 1.181 GB, free: 13.04 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.925e-05/0.9503, allocations: 17.55 kB / 1.181 GB, free: 13.03 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.431e-05/0.9503, allocations: 12.33 kB / 1.181 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.88e-06/0.9503, allocations: 5.969 kB / 1.181 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.9503, allocations: 4 kB / 1.181 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.9503, allocations: 0.5625 kB / 1.181 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005017/0.9508, allocations: 389.4 kB / 1.181 GB, free: 12.69 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.9509, allocations: 0 / 1.181 GB, free: 12.69 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.249e-05/0.951, allocations: 17.12 kB / 1.181 GB, free: 12.68 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.951, allocations: 2.156 kB / 1.181 GB, free: 12.68 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.951, allocations: 1.938 kB / 1.181 GB, free: 12.68 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.951, allocations: 8 kB / 1.181 GB, free: 12.68 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.951, allocations: 1.375 kB / 1.181 GB, free: 12.68 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003868/0.9514, allocations: 241.1 kB / 1.181 GB, free: 12.51 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 2.416e-05/0.9514, allocations: 88.44 kB / 1.181 GB, free: 12.41 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.9515, allocations: 2 kB / 1.181 GB, free: 12.41 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.058e-05/0.9515, allocations: 14.84 kB / 1.181 GB, free: 12.4 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.624e-05/0.9516, allocations: 10.73 kB / 1.182 GB, free: 12.4 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.9516, allocations: 4.688 kB / 1.182 GB, free: 12.4 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.131e-05/0.9517, allocations: 107.2 kB / 1.182 GB, free: 12.32 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9517, allocations: 0 / 1.182 GB, free: 12.32 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002951/0.952, allocations: 42.11 kB / 1.182 GB, free: 12.3 MB / 0.92 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.0005937/0.9526, allocations: 0.7878 MB / 1.182 GB, free: 11.6 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003709/0.953, allocations: 180.7 kB / 1.183 GB, free: 11.5 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.953, allocations: 0.6094 kB / 1.183 GB, free: 11.5 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001212/0.9531, allocations: 43.31 kB / 1.183 GB, free: 11.49 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002904/0.9534, allocations: 15.81 kB / 1.183 GB, free: 11.49 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/0.9555, allocations: 1.971 MB / 1.185 GB, free: 9.848 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001638/0.9556, allocations: 0.704 MB / 1.185 GB, free: 9.152 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 6.985e-05/0.9557, allocations: 16.64 kB / 1.185 GB, free: 9.148 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.859e-05/0.9558, allocations: 38.52 kB / 1.185 GB, free: 9.125 MB / 0.92 GB Notification: Performance of SimCode: time 5.41e-07/0.9558, allocations: 4 kB / 1.185 GB, free: 9.121 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02638/0.9822, allocations: 3.184 MB / 1.188 GB, free: 8.609 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.974/8.956, allocations: 11.03 kB / 1.188 GB, free: 8.605 MB / 0.92 GB " [Timeout remaining time 291] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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.023350220173597]