Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_9_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.001391/0.001391, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 197.8 kB / 16.53 MB, free: 6.664 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.321/1.321, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.267/2.267, allocations: 390.2 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 63.91 kB / 0.8127 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.618/0.6194, allocations: 140.3 MB / 0.9497 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.002671/0.6221, allocations: 1.775 MB / 0.9514 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001258/0.6234, allocations: 1.031 MB / 0.9525 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.413e-05/0.6235, allocations: 1.281 kB / 0.9525 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005069/0.624, allocations: 165.3 kB / 0.9526 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002333/0.6243, allocations: 108.7 kB / 0.9527 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003675/0.6246, allocations: 171.5 kB / 0.9529 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001753/0.6248, allocations: 165 kB / 0.953 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.5e-05/0.6249, allocations: 28.09 kB / 0.9531 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.617e-05/0.625, allocations: 72.38 kB / 0.9531 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.909e-05/0.6251, allocations: 72.75 kB / 0.9532 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.314e-05/0.6251, allocations: 8.188 kB / 0.9532 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.6253, allocations: 54.62 kB / 0.9533 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.092e-05/0.6253, allocations: 52.52 kB / 0.9533 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.158e-05/0.6254, allocations: 60.23 kB / 0.9534 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002157/0.6256, allocations: 191.8 kB / 0.9536 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.6256, allocations: 0 / 0.9536 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.984e-06/0.6256, allocations: 1.438 kB / 0.9536 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.6257, allocations: 0 / 0.9536 GB, free: 6.227 MB / 0.7169 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.0005231/0.6262, allocations: 498.7 kB / 0.954 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.6262, allocations: 9.312 kB / 0.954 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.89e-05/0.6263, allocations: 40.8 kB / 0.9541 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.468e-05/0.6263, allocations: 20.31 kB / 0.9541 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002141/0.6265, allocations: 243.5 kB / 0.9543 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.6265, allocations: 2.719 kB / 0.9543 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/0.6266, allocations: 11.38 kB / 0.9543 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001632/0.6267, allocations: 91.77 kB / 0.9544 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.6268, allocations: 0 / 0.9544 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.6268, allocations: 1.219 kB / 0.9544 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/0.6268, allocations: 2.844 kB / 0.9544 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.987e-05/0.6269, allocations: 46.94 kB / 0.9545 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000384/0.6273, allocations: 351.4 kB / 0.9548 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001689/0.6275, allocations: 70.52 kB / 0.9549 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.436e-05/0.6275, allocations: 41.12 kB / 0.9549 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.6276, allocations: 5.406 kB / 0.9549 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001396/0.6277, allocations: 84.97 kB / 0.955 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.6277, allocations: 0 / 0.955 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003046/0.628, allocations: 140.8 kB / 0.9551 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.46e-05/0.6281, allocations: 78.17 kB / 0.9552 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002184/0.6283, allocations: 268.6 kB / 0.9555 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.6283, allocations: 34.62 kB / 0.9555 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.243e-05/0.6284, allocations: 120.9 kB / 0.9556 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/0.6284, allocations: 19.97 kB / 0.9556 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.002e-05/0.6284, allocations: 26.23 kB / 0.9557 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.5e-05/0.6285, allocations: 328.1 kB / 0.956 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.222e-05/0.6286, allocations: 27.17 kB / 0.956 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.032e-05/0.6286, allocations: 60.86 kB / 0.9561 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001267/0.6288, allocations: 80.66 kB / 0.9561 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.6288, allocations: 0 / 0.9561 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001748/0.629, allocations: 117.4 kB / 0.9562 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.919e-06/0.629, allocations: 3.656 kB / 0.9563 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.629, allocations: 0 / 0.9563 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.629, allocations: 4.469 kB / 0.9563 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.617e-05/0.6291, allocations: 6.188 kB / 0.9563 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.6291, allocations: 7.188 kB / 0.9563 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.56e-05/0.6291, allocations: 19.22 kB / 0.9563 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.6292, allocations: 7.656 kB / 0.9563 GB, free: 3.734 MB / 0.7169 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 8.346e-05/0.6292, allocations: 148.2 kB / 0.9564 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.471e-05/0.6293, allocations: 15.58 kB / 0.9565 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.789e-05/0.6293, allocations: 16.03 kB / 0.9565 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.6293, allocations: 7.828 kB / 0.9565 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.6293, allocations: 0 / 0.9565 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.6293, allocations: 7.938 kB / 0.9565 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001315/0.6295, allocations: 222.8 kB / 0.9567 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.6295, allocations: 0 / 0.9567 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.075e-05/0.6295, allocations: 4.562 kB / 0.9567 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.6295, allocations: 0 / 0.9567 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-06/0.6295, allocations: 1.562 kB / 0.9567 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.6295, allocations: 0 / 0.9567 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.6295, allocations: 5.562 kB / 0.9567 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001958/0.6297, allocations: 149 kB / 0.9568 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.196e-05/0.6298, allocations: 97.95 kB / 0.9569 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.676e-05/0.6298, allocations: 1.469 kB / 0.9569 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.923e-05/0.6299, allocations: 7.109 kB / 0.9569 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.093e-05/0.6299, allocations: 11.03 kB / 0.957 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-06/0.6299, allocations: 1.438 kB / 0.957 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000143/0.6301, allocations: 198.6 kB / 0.9571 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6301, allocations: 0 / 0.9571 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002324/0.6303, allocations: 31.44 kB / 0.9572 GB, free: 2.953 MB / 0.7169 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.001134/0.6315, allocations: 1.003 MB / 0.9582 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001969/0.6317, allocations: 76.75 kB / 0.9582 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.6317, allocations: 0 / 0.9582 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.683e-05/0.6318, allocations: 45.94 kB / 0.9583 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.632, allocations: 33.45 kB / 0.9583 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.6338, allocations: 1.95 MB / 0.9602 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001648/0.634, allocations: 0.7195 MB / 0.9609 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.354e-05/0.634, allocations: 26.41 kB / 0.9609 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.313e-05/0.6341, allocations: 52.66 kB / 0.961 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.6341, allocations: 0 / 0.961 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02168/0.6558, allocations: 4.42 MB / 0.9653 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.368/8.024, allocations: 10.34 kB / 0.9653 GB, free: 13.52 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Examples_BooleanReplicator.fmu > Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_BooleanReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches