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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001256/0.001256, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001298/0.001298, allocations: 197.2 kB / 16.14 MB, free: 6.711 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.258/1.258, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.51/2.51, allocations: 461.8 MB / 0.7342 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 67.86 kB / 0.8985 GB, free: 36.89 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2603, allocations: 157.4 MB / 1.052 GB, free: 8.227 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.001712/0.2621, allocations: 0.6922 MB / 1.053 GB, free: 7.531 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001273/0.2634, allocations: 1.127 MB / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.07e-05/0.2634, allocations: 0 / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.279e-05/0.2636, allocations: 3.938 kB / 1.054 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.102e-05/0.2636, allocations: 7.938 kB / 1.054 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004235/0.264, allocations: 114.8 kB / 1.054 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001087/0.2641, allocations: 75.89 kB / 1.054 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.136e-05/0.2642, allocations: 11.98 kB / 1.054 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.142e-05/0.2643, allocations: 35.91 kB / 1.054 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.379e-05/0.2644, allocations: 23.91 kB / 1.054 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.24e-05/0.2644, allocations: 4 kB / 1.054 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.962e-05/0.2645, allocations: 15.98 kB / 1.054 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.098e-05/0.2645, allocations: 15.92 kB / 1.054 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.973e-05/0.2646, allocations: 27.91 kB / 1.054 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.2647, allocations: 80.06 kB / 1.054 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.2648, allocations: 0 / 1.054 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.402e-06/0.2648, allocations: 4 kB / 1.054 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.396e-06/0.2648, allocations: 4 kB / 1.054 GB, free: 5.977 MB / 0.8106 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.000434/0.2652, allocations: 381.1 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.2653, allocations: 11.97 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.046e-05/0.2653, allocations: 38.73 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.153e-05/0.2654, allocations: 4.938 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001678/0.2655, allocations: 180.3 kB / 1.055 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.2656, allocations: 12.3 kB / 1.055 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.009e-05/0.2656, allocations: 4.375 kB / 1.055 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.828e-05/0.2657, allocations: 50.25 kB / 1.055 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.2657, allocations: 7.875 kB / 1.055 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.425e-06/0.2657, allocations: 0 / 1.055 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.2657, allocations: 4 kB / 1.055 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.084e-05/0.2658, allocations: 8 kB / 1.055 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003436/0.2661, allocations: 312.7 kB / 1.055 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.224e-05/0.2662, allocations: 26.58 kB / 1.055 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.594e-05/0.2662, allocations: 8.859 kB / 1.055 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 5.571e-06/0.2662, allocations: 0 / 1.055 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001218/0.2663, allocations: 59.45 kB / 1.055 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.183e-06/0.2663, allocations: 3.938 kB / 1.055 GB, free: 4.703 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0001612/0.2665, allocations: 61.62 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.2665, allocations: 55.41 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.197e-05/0.2666, allocations: 113.8 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.2667, allocations: 25.7 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.197e-05/0.2667, allocations: 92.12 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.013e-05/0.2667, allocations: 7.891 kB / 1.056 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.938e-05/0.2668, allocations: 29.7 kB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.176e-05/0.2669, allocations: 322.8 kB / 1.056 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.939e-05/0.267, allocations: 27.98 kB / 1.056 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.384e-05/0.267, allocations: 50.81 kB / 1.056 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001018/0.2672, allocations: 80.27 kB / 1.056 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.2672, allocations: 4 kB / 1.056 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000232/0.2674, allocations: 147.3 kB / 1.056 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/0.2674, allocations: 29.7 kB / 1.056 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2675, allocations: 4 kB / 1.056 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.659e-06/0.2675, allocations: 4.094 kB / 1.056 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.349e-05/0.2675, allocations: 0 / 1.056 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.2675, allocations: 0 / 1.056 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002005/0.2677, allocations: 39.86 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.2677, allocations: 4 kB / 1.057 GB, free: 3.531 MB / 0.8106 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 7.825e-05/0.2678, allocations: 121.7 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.107e-05/0.2678, allocations: 4.234 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.854e-05/0.2679, allocations: 11.89 kB / 1.057 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2679, allocations: 3.984 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2679, allocations: 0 / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.2679, allocations: 0 / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.915e-05/0.268, allocations: 161.6 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.268, allocations: 0 / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.751e-06/0.268, allocations: 0 / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.268, allocations: 0 / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.268, allocations: 7.984 kB / 1.057 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.268, allocations: 0 / 1.057 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.268, allocations: 3.938 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001036/0.2681, allocations: 81.06 kB / 1.057 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.455e-05/0.2682, allocations: 88.95 kB / 1.057 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.2682, allocations: 7.938 kB / 1.057 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.39e-05/0.2682, allocations: 0 / 1.057 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.462e-05/0.2682, allocations: 3.984 kB / 1.057 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/0.2683, allocations: 4 kB / 1.057 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.327e-05/0.2683, allocations: 79.28 kB / 1.057 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2683, allocations: 0 / 1.057 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002114/0.2685, allocations: 24 kB / 1.057 GB, free: 2.84 MB / 0.8106 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.000392/0.2689, allocations: 0.6165 MB / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001924/0.2691, allocations: 123.3 kB / 1.058 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2691, allocations: 0 / 1.058 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.792e-05/0.2692, allocations: 16.17 kB / 1.058 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001925/0.2694, allocations: 9.969 kB / 1.058 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.2706, allocations: 1.367 MB / 1.059 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.2709, allocations: 0.6848 MB / 1.06 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.905e-05/0.2709, allocations: 4 kB / 1.06 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.792e-05/0.2709, allocations: 15.42 kB / 1.06 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of SimCode: time 1.9e-07/0.271, allocations: 0 / 1.06 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01077/0.2817, allocations: 1.83 MB / 1.062 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001727/0.2819, allocations: 225.8 kB / 1.062 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.699/1.981, allocations: 5.312 kB / 1.062 GB, free: 13.91 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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