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.006223/0.006223, allocations: 99.52 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.001252/0.001253, allocations: 195.6 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.176 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.482/2.482, allocations: 390.3 MB / 0.6648 GB, free: 160 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001532, allocations: 68.44 kB / 0.9504 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2822, allocations: 140.4 MB / 1.087 GB, free: 2.027 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003306/0.2856, allocations: 1.783 MB / 1.089 GB, free: 232 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001917/0.2875, allocations: 1.031 MB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.2877, allocations: 0 / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0007334/0.2884, allocations: 165.4 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003668/0.2888, allocations: 111.6 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005533/0.2894, allocations: 173 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002668/0.2896, allocations: 163.6 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.2898, allocations: 32.84 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.2899, allocations: 71.75 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.29, allocations: 79.62 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.563e-05/0.2901, allocations: 8 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001779/0.2903, allocations: 55.97 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.101e-05/0.2903, allocations: 39.89 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.786e-05/0.2904, allocations: 63.61 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003129/0.2907, allocations: 203.4 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2908, allocations: 0 / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2908, allocations: 0 / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.679e-06/0.2908, allocations: 4 kB / 1.091 GB, free: 14.04 MB / 0.8575 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.0007382/0.2915, allocations: 0.4883 MB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.2916, allocations: 12.02 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.575e-05/0.2916, allocations: 38.75 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.769e-05/0.2917, allocations: 16.8 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003331/0.292, allocations: 256.9 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.2921, allocations: 4.375 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.992e-05/0.2921, allocations: 11.92 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002068/0.2923, allocations: 87.39 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.2923, allocations: 0 / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.2923, allocations: 3.984 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.294e-05/0.2924, allocations: 4 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.2925, allocations: 39.92 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005543/0.293, allocations: 340.7 kB / 1.093 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.2933, allocations: 82.61 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.368e-05/0.2934, allocations: 32.84 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.2934, allocations: 4 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001708/0.2936, allocations: 83.31 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 3.376e-06/0.2936, allocations: 4 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0003563/0.2939, allocations: 145.6 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.294, allocations: 81.05 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002895/0.2943, allocations: 274.9 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.2943, allocations: 25.7 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.719e-05/0.2944, allocations: 116.1 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.891e-05/0.2944, allocations: 23.8 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/0.2945, allocations: 25.7 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001341/0.2946, allocations: 330.8 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.9e-05/0.2947, allocations: 27.98 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.669e-05/0.2948, allocations: 63.36 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001319/0.295, allocations: 73.69 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.295, allocations: 0 / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002298/0.2952, allocations: 121.9 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.2952, allocations: 4 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.2952, allocations: 0 / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.2953, allocations: 4 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.877e-05/0.2953, allocations: 15.88 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.2954, allocations: 0 / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.071e-05/0.2954, allocations: 19.86 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.2954, allocations: 4 kB / 1.094 GB, free: 10.95 MB / 0.8575 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.0001344/0.2956, allocations: 142.9 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.984e-05/0.2956, allocations: 15.91 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.703e-05/0.2957, allocations: 21.39 kB / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.2957, allocations: 0 / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2957, allocations: 0 / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.2957, allocations: 3.938 kB / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002023/0.2959, allocations: 229.5 kB / 1.094 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2959, allocations: 0 / 1.094 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.352e-05/0.296, allocations: 4 kB / 1.094 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.296, allocations: 0 / 1.094 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.296, allocations: 3.938 kB / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.296, allocations: 11.92 kB / 1.095 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.296, allocations: 0 / 1.095 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002384/0.2962, allocations: 145 kB / 1.095 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.603e-05/0.2963, allocations: 89.02 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.2964, allocations: 3.984 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.145e-05/0.2964, allocations: 4 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.719e-05/0.2965, allocations: 15.92 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.2965, allocations: 7.984 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001818/0.2967, allocations: 196.5 kB / 1.095 GB, free: 9.984 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2967, allocations: 0 / 1.095 GB, free: 9.984 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002519/0.2969, allocations: 27.94 kB / 1.095 GB, free: 9.957 MB / 0.8575 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.001412/0.2984, allocations: 1.005 MB / 1.096 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002105/0.2986, allocations: 71.97 kB / 1.096 GB, free: 9.016 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2986, allocations: 0 / 1.096 GB, free: 9.016 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.212e-05/0.2987, allocations: 39.92 kB / 1.096 GB, free: 8.977 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.299, allocations: 47.67 kB / 1.096 GB, free: 8.93 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002134/0.3011, allocations: 1.945 MB / 1.098 GB, free: 6.898 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.3014, allocations: 0.7279 MB / 1.099 GB, free: 6.145 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.583e-05/0.3015, allocations: 25.72 kB / 1.099 GB, free: 6.121 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.19e-05/0.3016, allocations: 51.42 kB / 1.099 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of SimCode: time 2.8e-07/0.3016, allocations: 4 kB / 1.099 GB, free: 6.066 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02031/0.3219, allocations: 4.51 MB / 1.103 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.763/8.085, allocations: 8 kB / 1.103 GB, free: 1.629 MB / 0.8575 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