Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator",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.007848/0.007848, allocations: 97.23 kB / 15.73 MB, free: 6.484 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.002171/0.002171, allocations: 192.1 kB / 16.67 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.887/2.887, allocations: 482.4 MB / 0.7548 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 63.91 kB / 1.083 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2947, allocations: 162.2 MB / 1.241 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.001666/0.2964, allocations: 0.6257 MB / 1.242 GB, free: 9.566 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001418/0.2979, allocations: 1.108 MB / 1.243 GB, free: 8.445 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.006e-05/0.2979, allocations: 3.938 kB / 1.243 GB, free: 8.441 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 7.564e-05/0.298, allocations: 0 / 1.243 GB, free: 8.441 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 1.809e-05/0.298, allocations: 3.938 kB / 1.243 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004336/0.2985, allocations: 127.5 kB / 1.243 GB, free: 8.316 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.2986, allocations: 91.88 kB / 1.243 GB, free: 8.227 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.03e-05/0.2987, allocations: 15.92 kB / 1.243 GB, free: 8.211 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.096e-05/0.2988, allocations: 27.98 kB / 1.243 GB, free: 8.184 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.2989, allocations: 39.88 kB / 1.243 GB, free: 8.145 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.159e-05/0.2989, allocations: 8 kB / 1.243 GB, free: 8.137 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.757e-05/0.299, allocations: 23.92 kB / 1.243 GB, free: 8.113 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.896e-05/0.299, allocations: 8 kB / 1.243 GB, free: 8.105 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.303e-05/0.2991, allocations: 31.91 kB / 1.244 GB, free: 8.074 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001538/0.2992, allocations: 91.66 kB / 1.244 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.2993, allocations: 0 / 1.244 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2993, allocations: 0 / 1.244 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.877e-06/0.2993, allocations: 0 / 1.244 GB, free: 7.984 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004553/0.2997, allocations: 381.1 kB / 1.244 GB, free: 7.555 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.2998, allocations: 12.03 kB / 1.244 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.936e-05/0.2998, allocations: 38.73 kB / 1.244 GB, free: 7.496 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.616e-05/0.2999, allocations: 8.891 kB / 1.244 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.3, allocations: 176.4 kB / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.3001, allocations: 4.359 kB / 1.244 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.999e-05/0.3001, allocations: 8.375 kB / 1.244 GB, free: 7.266 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.804e-05/0.3002, allocations: 54.17 kB / 1.244 GB, free: 7.207 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.565e-06/0.3002, allocations: 7.938 kB / 1.244 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.203e-06/0.3002, allocations: 0 / 1.244 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.3002, allocations: 0 / 1.244 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.38e-05/0.3003, allocations: 12 kB / 1.244 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003654/0.3006, allocations: 308.7 kB / 1.245 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.284e-05/0.3007, allocations: 26.52 kB / 1.245 GB, free: 6.801 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.869e-05/0.3007, allocations: 8.922 kB / 1.245 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.704e-06/0.3007, allocations: 4 kB / 1.245 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001205/0.3009, allocations: 55.39 kB / 1.245 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.3009, allocations: 0 / 1.245 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0001698/0.301, allocations: 69.58 kB / 1.245 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.3011, allocations: 51.41 kB / 1.245 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.949e-05/0.3012, allocations: 105.8 kB / 1.245 GB, free: 6.469 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.354e-05/0.3012, allocations: 29.7 kB / 1.245 GB, free: 6.434 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.836e-05/0.3013, allocations: 96.08 kB / 1.245 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.135e-05/0.3013, allocations: 3.953 kB / 1.245 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.785e-05/0.3014, allocations: 37.62 kB / 1.245 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3015, allocations: 318.8 kB / 1.245 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.728e-05/0.3016, allocations: 27.98 kB / 1.245 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.679e-05/0.3017, allocations: 46.88 kB / 1.245 GB, free: 5.887 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.3018, allocations: 84.2 kB / 1.245 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.3018, allocations: 4 kB / 1.245 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002551/0.3021, allocations: 151.2 kB / 1.246 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/0.3021, allocations: 33.7 kB / 1.246 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.3022, allocations: 0 / 1.246 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.3022, allocations: 0 / 1.246 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.396e-05/0.3022, allocations: 4 kB / 1.246 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.3022, allocations: 0 / 1.246 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002006/0.3024, allocations: 32.06 kB / 1.246 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/0.3024, allocations: 7.984 kB / 1.246 GB, free: 5.543 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (booPul.y,$PRE.booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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 9.276e-05/0.3025, allocations: 121.7 kB / 1.246 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.089e-05/0.3025, allocations: 4 kB / 1.246 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.022e-05/0.3026, allocations: 3.906 kB / 1.246 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.3026, allocations: 0 / 1.246 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.3026, allocations: 4 kB / 1.246 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.3026, allocations: 3.984 kB / 1.246 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001287/0.3027, allocations: 161.6 kB / 1.246 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3027, allocations: 4 kB / 1.246 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.179e-06/0.3027, allocations: 0 / 1.246 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3028, allocations: 240 / 1.246 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.36e-06/0.3028, allocations: 0 / 1.246 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3028, allocations: 0 / 1.246 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3028, allocations: 3.984 kB / 1.246 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001096/0.3029, allocations: 89 kB / 1.246 GB, free: 5.07 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.245e-05/0.3029, allocations: 81.11 kB / 1.246 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.1e-05/0.303, allocations: 0 / 1.246 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.622e-05/0.303, allocations: 4 kB / 1.246 GB, free: 4.969 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.28e-05/0.303, allocations: 7.984 kB / 1.246 GB, free: 4.961 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.303, allocations: 3.938 kB / 1.246 GB, free: 4.957 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.49e-05/0.3031, allocations: 79.28 kB / 1.246 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3031, allocations: 0 / 1.246 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002158/0.3033, allocations: 23.94 kB / 1.246 GB, free: 4.855 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004257/0.3037, allocations: 0.6359 MB / 1.247 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001998/0.3039, allocations: 127.3 kB / 1.247 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.3039, allocations: 3.938 kB / 1.247 GB, free: 4.051 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.541e-05/0.304, allocations: 7.984 kB / 1.247 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001902/0.3042, allocations: 16 kB / 1.247 GB, free: 4.027 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.3056, allocations: 1.365 MB / 1.248 GB, free: 2.562 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.3059, allocations: 0.6807 MB / 1.249 GB, free: 1.855 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.75e-05/0.306, allocations: 4 kB / 1.249 GB, free: 1.852 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.861e-05/0.306, allocations: 15.42 kB / 1.249 GB, free: 1.836 MB / 0.9981 GB Notification: Performance of SimCode: time 2.41e-07/0.306, allocations: 0 / 1.249 GB, free: 1.836 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5158/0.8219, allocations: 1.993 MB / 1.251 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.641/8.462, allocations: 6.422 kB / 1.251 GB, free: 15.14 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches