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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001236/0.001236, allocations: 108 kB / 15.6 MB, free: 132 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.00124/0.00124, allocations: 192.7 kB / 16.53 MB, free: 6.391 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.345/1.345, 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 11.0.1-master/package.mo): time 2.756/2.756, allocations: 469.4 MB / 0.742 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 67.28 kB / 0.9083 GB, free: 34.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2801, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.002987/0.2831, allocations: 1.783 MB / 1.065 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001473/0.2846, allocations: 1.025 MB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.794e-05/0.2847, allocations: 3.938 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006066/0.2854, allocations: 163.5 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000277/0.2856, allocations: 107.6 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004456/0.2861, allocations: 175.3 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002125/0.2863, allocations: 167.6 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.963e-05/0.2864, allocations: 25.11 kB / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.2866, allocations: 67.75 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.2867, allocations: 67.7 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.424e-05/0.2867, allocations: 11.98 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001429/0.2869, allocations: 55.97 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.901e-05/0.2869, allocations: 47.84 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.032e-05/0.287, allocations: 63.59 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002678/0.2873, allocations: 195.6 kB / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2873, allocations: 0 / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2873, allocations: 0 / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.356e-06/0.2873, allocations: 0 / 1.068 GB, free: 10.58 MB / 0.8262 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.000624/0.2879, allocations: 496.3 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.288, allocations: 8.031 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.49e-05/0.288, allocations: 42.73 kB / 1.068 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.885e-05/0.2881, allocations: 20.75 kB / 1.068 GB, free: 9.961 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/0.2884, allocations: 248.8 kB / 1.068 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.2884, allocations: 4.375 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/0.2884, allocations: 11.94 kB / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.2886, allocations: 87.31 kB / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.2886, allocations: 0 / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.2886, allocations: 0 / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.826e-05/0.2887, allocations: 4 kB / 1.068 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.547e-05/0.2888, allocations: 47.91 kB / 1.068 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000476/0.2892, allocations: 348.7 kB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001874/0.2894, allocations: 74.61 kB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.254e-05/0.2895, allocations: 40.84 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.2895, allocations: 0 / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001565/0.2897, allocations: 79.38 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.2897, allocations: 0 / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0003241/0.2901, allocations: 149.3 kB / 1.069 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/0.2901, allocations: 77.11 kB / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002402/0.2903, allocations: 262.9 kB / 1.069 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.2904, allocations: 33.7 kB / 1.069 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.693e-05/0.2904, allocations: 116 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.2905, allocations: 31.62 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.462e-05/0.2905, allocations: 29.7 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.406e-05/0.2906, allocations: 326.8 kB / 1.07 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.421e-05/0.2907, allocations: 23.98 kB / 1.07 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.454e-05/0.2908, allocations: 67.36 kB / 1.07 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001294/0.2909, allocations: 73.75 kB / 1.07 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.2909, allocations: 3.984 kB / 1.07 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001977/0.2911, allocations: 109.4 kB / 1.07 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.2912, allocations: 4 kB / 1.07 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.2912, allocations: 7.984 kB / 1.07 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.2912, allocations: 0 / 1.07 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.178e-05/0.2913, allocations: 11.94 kB / 1.07 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.2913, allocations: 8.203 kB / 1.07 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.248e-05/0.2914, allocations: 12.31 kB / 1.07 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.926e-06/0.2914, allocations: 4 kB / 1.07 GB, free: 7.504 MB / 0.8262 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.000114/0.2915, allocations: 146.8 kB / 1.07 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.939e-05/0.2915, allocations: 19.8 kB / 1.07 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.38e-05/0.2916, allocations: 29.34 kB / 1.07 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.2916, allocations: 0 / 1.07 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.2916, allocations: 7.984 kB / 1.07 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.2916, allocations: 7.938 kB / 1.07 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001756/0.2918, allocations: 225.4 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2918, allocations: 0 / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.201e-05/0.2918, allocations: 4 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2918, allocations: 0 / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.2918, allocations: 4 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.2919, allocations: 4 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2919, allocations: 0 / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002173/0.2921, allocations: 148.8 kB / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.844e-05/0.2921, allocations: 88.92 kB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.909e-05/0.2922, allocations: 8 kB / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.967e-05/0.2922, allocations: 3.984 kB / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.2923, allocations: 7.938 kB / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.2923, allocations: 4 kB / 1.071 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001705/0.2925, allocations: 192.6 kB / 1.071 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2925, allocations: 0 / 1.071 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002466/0.2927, allocations: 32 kB / 1.071 GB, free: 6.496 MB / 0.8262 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.001362/0.2941, allocations: 0.9985 MB / 1.072 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002163/0.2943, allocations: 75.91 kB / 1.072 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2943, allocations: 0 / 1.072 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.311e-05/0.2944, allocations: 44 kB / 1.072 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.2947, allocations: 38.72 kB / 1.072 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002056/0.2968, allocations: 1.953 MB / 1.074 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/0.2971, allocations: 0.7201 MB / 1.075 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.395e-05/0.2971, allocations: 25.72 kB / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.424e-05/0.2972, allocations: 47.41 kB / 1.075 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2972, allocations: 0 / 1.075 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0197/0.3169, allocations: 4.42 MB / 1.079 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.318/7.635, allocations: 9.312 kB / 1.079 GB, free: 14.3 MB / 0.8419 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