Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.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.001782/0.001782, allocations: 103.6 kB / 18.94 MB, free: 2.688 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.002222/0.002222, allocations: 213.5 kB / 22.24 MB, free: 5.25 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.632/1.632, allocations: 230.6 MB / 256 MB, free: 7.797 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.402/3.402, allocations: 0.5107 GB / 0.8158 GB, free: 17.81 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.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_BooleanReplicator",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.002308/0.002308, allocations: 74.17 kB / 1.186 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4539/0.4562, allocations: 181.9 MB / 1.363 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003931/0.4602, allocations: 1.781 MB / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002204/0.4624, allocations: 1.12 MB / 1.366 GB, free: 11.17 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.816e-05/0.4625, allocations: 0 / 1.366 GB, free: 11.17 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0006924/0.4632, allocations: 171.5 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0004086/0.4636, allocations: 159.4 kB / 1.367 GB, free: 10.84 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003823/0.4639, allocations: 134.7 kB / 1.367 GB, free: 10.71 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002539/0.4642, allocations: 175.5 kB / 1.367 GB, free: 10.54 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.4643, allocations: 21.52 kB / 1.367 GB, free: 10.52 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.4644, allocations: 75.69 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/0.4646, allocations: 79.67 kB / 1.367 GB, free: 10.37 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.371e-05/0.4646, allocations: 8 kB / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.4647, allocations: 71.94 kB / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.538e-05/0.4648, allocations: 43.84 kB / 1.367 GB, free: 10.25 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.955e-05/0.4649, allocations: 47.61 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003248/0.4652, allocations: 211.1 kB / 1.367 GB, free: 9.992 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4652, allocations: 0 / 1.367 GB, free: 9.992 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.713e-06/0.4652, allocations: 0 / 1.367 GB, free: 9.992 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.913e-06/0.4652, allocations: 0 / 1.367 GB, free: 9.992 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007768/0.466, allocations: 438.8 kB / 1.368 GB, free: 9.527 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.466, allocations: 12.03 kB / 1.368 GB, free: 9.516 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.42e-05/0.4661, allocations: 30.75 kB / 1.368 GB, free: 9.477 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.16e-05/0.4661, allocations: 16.84 kB / 1.368 GB, free: 9.461 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.4664, allocations: 186.2 kB / 1.368 GB, free: 9.254 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.4665, allocations: 8.375 kB / 1.368 GB, free: 9.246 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.614e-05/0.4665, allocations: 7.938 kB / 1.368 GB, free: 9.238 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001853/0.4667, allocations: 73.59 kB / 1.368 GB, free: 9.16 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.4667, allocations: 0 / 1.368 GB, free: 9.16 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.4667, allocations: 0 / 1.368 GB, free: 9.16 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/0.4667, allocations: 11.98 kB / 1.368 GB, free: 9.148 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001093/0.4668, allocations: 39.98 kB / 1.368 GB, free: 9.109 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005548/0.4674, allocations: 323.7 kB / 1.368 GB, free: 8.75 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002117/0.4676, allocations: 78.61 kB / 1.369 GB, free: 8.664 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.594e-05/0.4677, allocations: 32.84 kB / 1.369 GB, free: 8.629 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.4677, allocations: 0 / 1.369 GB, free: 8.629 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001882/0.4679, allocations: 83.38 kB / 1.369 GB, free: 8.535 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.4679, allocations: 0 / 1.369 GB, free: 8.535 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0003817/0.4682, allocations: 149.8 kB / 1.369 GB, free: 8.383 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/0.4683, allocations: 59.34 kB / 1.369 GB, free: 8.312 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003206/0.4686, allocations: 283.7 kB / 1.369 GB, free: 8.023 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.4686, allocations: 29.7 kB / 1.369 GB, free: 7.988 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.4687, allocations: 116.1 kB / 1.369 GB, free: 7.871 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.928e-05/0.4688, allocations: 31.77 kB / 1.369 GB, free: 7.84 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.763e-05/0.4688, allocations: 25.72 kB / 1.369 GB, free: 7.809 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.469, allocations: 338.8 kB / 1.37 GB, free: 7.469 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.002e-05/0.4691, allocations: 27.98 kB / 1.37 GB, free: 7.441 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.4692, allocations: 76.27 kB / 1.37 GB, free: 7.352 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.4693, allocations: 77.72 kB / 1.37 GB, free: 7.27 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.4693, allocations: 0 / 1.37 GB, free: 7.27 MB / 1.061 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002423/0.4696, allocations: 121.6 kB / 1.37 GB, free: 7.145 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.4696, allocations: 4 kB / 1.37 GB, free: 7.141 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.4696, allocations: 4.078 kB / 1.37 GB, free: 7.137 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.4696, allocations: 3.938 kB / 1.37 GB, free: 7.133 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.655e-05/0.4697, allocations: 8 kB / 1.37 GB, free: 7.125 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.4697, allocations: 3.984 kB / 1.37 GB, free: 7.121 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.41e-05/0.4698, allocations: 15.88 kB / 1.37 GB, free: 7.105 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.4698, allocations: 8.031 kB / 1.37 GB, free: 7.098 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.booTab.combiTimeTable.nextTimeEvent,$whenCondition1,booRep.y[4],booRep.y[3],booRep.y[2],booRep.y[1],booTab.combiTimeTable.nextTimeEventScaled,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEvent,booTab.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 0 * 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.0001576/0.4699, allocations: 137.8 kB / 1.37 GB, free: 6.953 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.949e-05/0.47, allocations: 15.91 kB / 1.37 GB, free: 6.938 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003166/0.4703, allocations: 139.1 kB / 1.37 GB, free: 6.793 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.4703, allocations: 7.984 kB / 1.37 GB, free: 6.785 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4703, allocations: 0 / 1.37 GB, free: 6.785 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.4703, allocations: 3.938 kB / 1.37 GB, free: 6.781 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002516/0.4706, allocations: 192.7 kB / 1.37 GB, free: 6.551 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.4706, allocations: 3.938 kB / 1.37 GB, free: 6.547 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.021e-05/0.4706, allocations: 8 kB / 1.37 GB, free: 6.539 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.4706, allocations: 0 / 1.37 GB, free: 6.539 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.4706, allocations: 4 kB / 1.37 GB, free: 6.535 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.4706, allocations: 7.984 kB / 1.37 GB, free: 6.527 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.4706, allocations: 0 / 1.37 GB, free: 6.527 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002839/0.4709, allocations: 156.8 kB / 1.371 GB, free: 6.355 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.815e-05/0.4709, allocations: 19.89 kB / 1.371 GB, free: 6.336 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.777e-05/0.471, allocations: 0 / 1.371 GB, free: 6.336 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.013e-05/0.471, allocations: 4 kB / 1.371 GB, free: 6.332 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.769e-05/0.4711, allocations: 11.92 kB / 1.371 GB, free: 6.32 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.4711, allocations: 8 kB / 1.371 GB, free: 6.312 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002477/0.4713, allocations: 208.6 kB / 1.371 GB, free: 6.109 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.4713, allocations: 0 / 1.371 GB, free: 6.109 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002662/0.4716, allocations: 31.89 kB / 1.371 GB, free: 6.078 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booTab.y,booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 1 * 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.002447/0.4741, allocations: 1.027 MB / 1.372 GB, free: 5.211 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002681/0.4743, allocations: 75.89 kB / 1.372 GB, free: 5.137 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.4743, allocations: 4 kB / 1.372 GB, free: 5.133 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.76e-05/0.4744, allocations: 39.98 kB / 1.372 GB, free: 5.094 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003638/0.4748, allocations: 46.48 kB / 1.372 GB, free: 5.051 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003178/0.478, allocations: 2.005 MB / 1.374 GB, free: 2.957 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000169/0.4781, allocations: 114.6 kB / 1.374 GB, free: 2.828 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001215/0.4783, allocations: 25.72 kB / 1.374 GB, free: 2.801 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.4784, allocations: 51.42 kB / 1.374 GB, free: 2.75 MB / 1.061 GB Notification: Performance of SimCode: time 8.32e-07/0.4784, allocations: 0 / 1.374 GB, free: 2.75 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03889/0.5173, allocations: 5.288 MB / 1.379 GB, free: 13.54 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.9, allocations: 8.484 kB / 1.379 GB, free: 13.53 MB / 1.076 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_BooleanReplicator_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_BooleanReplicator.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_BooleanReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.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: 19.357479908969253]