Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Change.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.001326/0.001326, allocations: 110.4 kB / 18.94 MB, free: 2.953 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.00177/0.00177, allocations: 214.8 kB / 22.25 MB, free: 5.133 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.497/1.497, allocations: 230.6 MB / 256 MB, free: 7.984 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.37/3.37, allocations: 0.49 GB / 0.7951 GB, free: 33.41 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.Logical.Validation.Change,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Change,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Change",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.002031/0.002031, allocations: 71.41 kB / 1.154 GB, free: 25.65 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3554, allocations: 176.1 MB / 1.326 GB, free: 1.961 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.002162/0.3575, allocations: 0.7509 MB / 1.327 GB, free: 1.215 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001739/0.3593, allocations: 1.19 MB / 1.328 GB, free: 12 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.779e-05/0.3593, allocations: 0 / 1.328 GB, free: 12 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.625e-05/0.3594, allocations: 3.938 kB / 1.328 GB, free: 8 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001004/0.3595, allocations: 11.97 kB / 1.328 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006259/0.3601, allocations: 142.3 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002265/0.3603, allocations: 111.8 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.3604, allocations: 15.98 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.3605, allocations: 47.78 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001186/0.3607, allocations: 47.83 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.85e-05/0.3607, allocations: 8 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.229e-05/0.3608, allocations: 23.98 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.839e-05/0.3608, allocations: 15.97 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.197e-05/0.3609, allocations: 39.86 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.3611, allocations: 123.8 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3611, allocations: 0 / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.954e-06/0.3611, allocations: 0 / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.516e-06/0.3611, allocations: 0 / 1.328 GB, free: 15.43 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007671/0.3619, allocations: 335.8 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.362, allocations: 8.031 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.316e-05/0.362, allocations: 34.75 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.745e-05/0.3621, allocations: 8.891 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.3622, allocations: 126.3 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.884e-05/0.3622, allocations: 20.36 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.244e-05/0.3622, allocations: 8.375 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002219/0.3625, allocations: 62.17 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3625, allocations: 3.938 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.3625, allocations: 0 / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.3625, allocations: 7.984 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.3627, allocations: 35.97 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005832/0.3633, allocations: 303.8 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001959/0.3635, allocations: 58.55 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.3636, allocations: 24.97 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.662e-05/0.3636, allocations: 4 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002936/0.3639, allocations: 99.38 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.693e-06/0.3639, allocations: 0 / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0004594/0.3643, allocations: 137.5 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.3644, allocations: 55.41 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.3645, allocations: 125.7 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.474e-05/0.3645, allocations: 33.7 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.92e-05/0.3646, allocations: 92.12 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.326e-05/0.3646, allocations: 15.84 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.689e-05/0.3647, allocations: 33.7 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.3649, allocations: 330.8 kB / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000169/0.365, allocations: 51.97 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001839/0.3652, allocations: 92.12 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002988/0.3655, allocations: 145.9 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.3655, allocations: 4 kB / 1.331 GB, free: 12.99 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004706/0.366, allocations: 203.1 kB / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.188e-05/0.3661, allocations: 37.7 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.3661, allocations: 7.938 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.3661, allocations: 0 / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.656e-05/0.3662, allocations: 16.11 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.3662, allocations: 8.25 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002103/0.3664, allocations: 39.91 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.3664, allocations: 4 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,change.y,change.u,$PRE.change.u,booPul.y,$PRE.booPul.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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.0001202/0.3665, allocations: 123.7 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.166e-05/0.3666, allocations: 7.953 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.374e-05/0.3666, allocations: 16.36 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3666, allocations: 0 / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3666, allocations: 0 / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.3666, allocations: 4 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004958/0.3671, allocations: 349.5 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3671, allocations: 0 / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.1e-05/0.3672, allocations: 7.938 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.161e-06/0.3672, allocations: 11.98 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.3672, allocations: 7.984 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.3672, allocations: 4.062 kB / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3672, allocations: 0 / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003055/0.3675, allocations: 207.3 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.495e-05/0.3675, allocations: 11.89 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.3675, allocations: 4 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.147e-05/0.3676, allocations: 11.98 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.924e-05/0.3677, allocations: 7.938 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.3677, allocations: 7.984 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.462e-05/0.3677, allocations: 87.28 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3677, allocations: 0 / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002684/0.368, allocations: 27.98 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (change.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,change.u,triggeredSampler.y) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006792/0.3687, allocations: 0.7436 MB / 1.332 GB, free: 10.94 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004075/0.3691, allocations: 159.3 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3691, allocations: 0 / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.3692, allocations: 44.22 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.3695, allocations: 17.75 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002274/0.3718, allocations: 1.682 MB / 1.334 GB, free: 8.914 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003335/0.3721, allocations: 0.6924 MB / 1.335 GB, free: 8.195 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.587e-05/0.3721, allocations: 8 kB / 1.335 GB, free: 8.188 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.98e-05/0.3722, allocations: 19.44 kB / 1.335 GB, free: 8.168 MB / 1.029 GB Notification: Performance of SimCode: time 6.21e-07/0.3722, allocations: 0 / 1.335 GB, free: 8.168 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03115/0.4033, allocations: 2.699 MB / 1.338 GB, free: 5.613 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.49, allocations: 3.938 kB / 1.338 GB, free: 5.609 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Change.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Change_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Change.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Change.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.469213847070932]