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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004571/0.004571, allocations: 102.1 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 192.1 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.596/2.596, allocations: 469.4 MB / 0.7422 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.91 kB / 1.064 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8886/0.8899, allocations: 159.1 MB / 1.22 GB, free: 2.254 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003303/0.8932, allocations: 1.788 MB / 1.221 GB, free: 468 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001805/0.8951, allocations: 1.022 MB / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.8952, allocations: 0 / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0006075/0.8958, allocations: 163.5 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003241/0.8962, allocations: 115.5 kB / 1.223 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005699/0.8967, allocations: 171.1 kB / 1.223 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000291/0.897, allocations: 167.5 kB / 1.223 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.8972, allocations: 33.09 kB / 1.223 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.8974, allocations: 63.77 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001653/0.8975, allocations: 67.75 kB / 1.223 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.043e-05/0.8976, allocations: 8 kB / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002085/0.8978, allocations: 63.89 kB / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 9.214e-05/0.8979, allocations: 43.84 kB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 9.809e-05/0.898, allocations: 59.61 kB / 1.223 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004151/0.8984, allocations: 198.9 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.8984, allocations: 4 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.773e-06/0.8985, allocations: 7.938 kB / 1.224 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.69e-05/0.8985, allocations: 4 kB / 1.224 GB, free: 14.29 MB / 0.9512 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.001039/0.8995, allocations: 0.4947 MB / 1.224 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.8996, allocations: 12.62 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.174e-05/0.8996, allocations: 30.75 kB / 1.224 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.657e-05/0.8997, allocations: 20.78 kB / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/0.9001, allocations: 249 kB / 1.224 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.9001, allocations: 4.359 kB / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.9002, allocations: 15.94 kB / 1.224 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002331/0.9004, allocations: 87.27 kB / 1.224 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.9004, allocations: 0 / 1.224 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.9005, allocations: 7.984 kB / 1.224 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/0.9005, allocations: 0 / 1.224 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001104/0.9006, allocations: 35.98 kB / 1.225 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005692/0.9012, allocations: 360.6 kB / 1.225 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.9014, allocations: 78.66 kB / 1.225 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.135e-05/0.9015, allocations: 32.84 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.9015, allocations: 0 / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001731/0.9017, allocations: 87.31 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=10): time 1.823e-06/0.9017, allocations: 4 kB / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10): time 0.0003585/0.9021, allocations: 141.5 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.103e-05/0.9021, allocations: 81.11 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002666/0.9024, allocations: 262.9 kB / 1.226 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.9024, allocations: 29.7 kB / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.524e-05/0.9025, allocations: 116.1 kB / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.277e-05/0.9026, allocations: 31.78 kB / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.87e-05/0.9026, allocations: 29.7 kB / 1.226 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.9027, allocations: 331.1 kB / 1.226 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.158e-05/0.9028, allocations: 27.98 kB / 1.226 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.9029, allocations: 63.39 kB / 1.226 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001255/0.9031, allocations: 73.64 kB / 1.226 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.9031, allocations: 0 / 1.226 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002251/0.9033, allocations: 117.5 kB / 1.226 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.9033, allocations: 9.875 kB / 1.226 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.9033, allocations: 0 / 1.226 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.9034, allocations: 0 / 1.226 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.452e-05/0.9035, allocations: 8 kB / 1.226 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.9035, allocations: 4 kB / 1.226 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.236e-05/0.9036, allocations: 23.88 kB / 1.226 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.9036, allocations: 0 / 1.226 GB, free: 11.19 MB / 0.9512 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.000149/0.9037, allocations: 150.3 kB / 1.227 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.819e-05/0.9038, allocations: 19.91 kB / 1.227 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.689e-05/0.9038, allocations: 17.39 kB / 1.227 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.9039, allocations: 4 kB / 1.227 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.9039, allocations: 0 / 1.227 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.9039, allocations: 3.938 kB / 1.227 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002361/0.9041, allocations: 213.6 kB / 1.227 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.9041, allocations: 4 kB / 1.227 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.28e-05/0.9042, allocations: 0 / 1.227 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.9042, allocations: 4 kB / 1.227 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.9042, allocations: 15.97 kB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.9042, allocations: 0 / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.9042, allocations: 0 / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002663/0.9045, allocations: 148.9 kB / 1.227 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 8.126e-05/0.9046, allocations: 100.9 kB / 1.227 GB, free: 10.42 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.253e-05/0.9046, allocations: 4 kB / 1.227 GB, free: 10.42 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.344e-05/0.9047, allocations: 4 kB / 1.227 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.663e-05/0.9047, allocations: 7.922 kB / 1.227 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.9048, allocations: 8 kB / 1.227 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000217/0.905, allocations: 196.4 kB / 1.227 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.124e-06/0.905, allocations: 0 / 1.227 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002758/0.9053, allocations: 35.86 kB / 1.227 GB, free: 10.17 MB / 0.9512 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.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.00145/0.9067, allocations: 0.9897 MB / 1.228 GB, free: 9.312 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002498/0.907, allocations: 71.91 kB / 1.228 GB, free: 9.242 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.907, allocations: 0 / 1.228 GB, free: 9.242 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.635e-05/0.9071, allocations: 35.98 kB / 1.228 GB, free: 9.207 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/0.9074, allocations: 47.83 kB / 1.228 GB, free: 9.16 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/0.9096, allocations: 1.972 MB / 1.23 GB, free: 7.113 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.9099, allocations: 0.724 MB / 1.231 GB, free: 6.363 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 7.551e-05/0.91, allocations: 21.72 kB / 1.231 GB, free: 6.34 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.958e-05/0.9101, allocations: 43.42 kB / 1.231 GB, free: 6.297 MB / 0.9512 GB Notification: Performance of SimCode: time 4.41e-07/0.9101, allocations: 4 kB / 1.231 GB, free: 6.293 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02226/0.9324, allocations: 4.512 MB / 1.235 GB, free: 1.906 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.871/8.803, allocations: 10.2 kB / 1.235 GB, free: 1.898 MB / 0.9512 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 Buildings_latest_Buildings_Utilities_Math_Examples_BooleanReplicator.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator_res.csv","/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) Reference file matches