Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,fileNamePrefix="Buildings_10_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.007494/0.007501, allocations: 98.98 kB / 15.73 MB, free: 6.012 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.001304/0.001304, allocations: 191.1 kB / 16.67 MB, free: 5.934 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.436/2.436, allocations: 437 MB / 0.7105 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 64.12 kB / 1.018 GB, free: 9.914 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8451/0.8466, allocations: 151.6 MB / 1.166 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.001858/0.8485, allocations: 0.6267 MB / 1.167 GB, free: 3.18 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001565/0.8501, allocations: 1.119 MB / 1.168 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.793e-05/0.8501, allocations: 0 / 1.168 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.8503, allocations: 3.938 kB / 1.168 GB, free: 2.043 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.199e-05/0.8503, allocations: 11.92 kB / 1.168 GB, free: 2.031 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000528/0.8509, allocations: 126.2 kB / 1.168 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001656/0.851, allocations: 95.88 kB / 1.168 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 8.482e-05/0.8511, allocations: 0 / 1.168 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.321e-05/0.8512, allocations: 43.91 kB / 1.168 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.8514, allocations: 35.88 kB / 1.168 GB, free: 1.738 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.8514, allocations: 8 kB / 1.168 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.788e-05/0.8515, allocations: 19.98 kB / 1.168 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 6.318e-05/0.8515, allocations: 8 kB / 1.168 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.954e-05/0.8516, allocations: 35.84 kB / 1.168 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001862/0.8518, allocations: 91.38 kB / 1.168 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.8518, allocations: 0 / 1.168 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8518, allocations: 0 / 1.168 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.8518, allocations: 0 / 1.168 GB, free: 1.582 MB / 0.8887 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.0005006/0.8523, allocations: 385.1 kB / 1.169 GB, free: 1.152 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.8524, allocations: 8.922 kB / 1.169 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.181e-05/0.8524, allocations: 38.75 kB / 1.169 GB, free: 1.098 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.371e-05/0.8525, allocations: 8.891 kB / 1.169 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.8527, allocations: 188.3 kB / 1.169 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.8527, allocations: 4.375 kB / 1.169 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.526e-05/0.8528, allocations: 4.375 kB / 1.169 GB, free: 0.8594 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.8529, allocations: 50.19 kB / 1.169 GB, free: 0.8047 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.8529, allocations: 3.938 kB / 1.169 GB, free: 0.8008 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.8529, allocations: 7.984 kB / 1.169 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.8529, allocations: 4 kB / 1.169 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.221e-05/0.853, allocations: 8 kB / 1.169 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004108/0.8534, allocations: 300.8 kB / 1.169 GB, free: 448 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 4.489e-05/0.8535, allocations: 26.52 kB / 1.169 GB, free: 412 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.903e-05/0.8535, allocations: 8.844 kB / 1.169 GB, free: 400 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.8535, allocations: 3.984 kB / 1.169 GB, free: 396 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001605/0.8537, allocations: 59.47 kB / 1.169 GB, free: 324 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.422e-06/0.8537, allocations: 0 / 1.169 GB, free: 324 kB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0002067/0.8539, allocations: 69.56 kB / 1.169 GB, free: 248 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.8539, allocations: 59.34 kB / 1.169 GB, free: 176 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.124e-05/0.854, allocations: 105.8 kB / 1.17 GB, free: 60 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.8541, allocations: 25.7 kB / 1.17 GB, free: 28 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 7.009e-05/0.8542, allocations: 88.14 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.197e-05/0.8542, allocations: 7.953 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.33e-05/0.8543, allocations: 29.7 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.8544, allocations: 326.8 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.713e-05/0.8545, allocations: 27.92 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.425e-05/0.8546, allocations: 50.56 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001247/0.8547, allocations: 84.2 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.8547, allocations: 0 / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002521/0.855, allocations: 143.2 kB / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.815e-05/0.855, allocations: 37.69 kB / 1.17 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.855, allocations: 0 / 1.17 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.8551, allocations: 4 kB / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.47e-05/0.8551, allocations: 0 / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.451e-06/0.8551, allocations: 320 / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/0.8553, allocations: 28.06 kB / 1.17 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.559e-05/0.8553, allocations: 16 kB / 1.17 GB, free: 15.14 MB / 0.9044 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.223e-05/0.8554, allocations: 117.8 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.191e-05/0.8555, allocations: 0 / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.156e-05/0.8555, allocations: 11.91 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.8555, allocations: 0 / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.8555, allocations: 0 / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.8555, allocations: 0 / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.8557, allocations: 169.6 kB / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.8557, allocations: 7.938 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.44e-06/0.8557, allocations: 0 / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.093e-06/0.8557, allocations: 0 / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.8557, allocations: 4 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.8557, allocations: 0 / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.8557, allocations: 0 / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001123/0.8558, allocations: 85 kB / 1.171 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.347e-05/0.8559, allocations: 77.11 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.8559, allocations: 8 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.421e-05/0.8559, allocations: 0 / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.486e-05/0.8559, allocations: 288 / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.8559, allocations: 8 kB / 1.171 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.85e-05/0.856, allocations: 83.27 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.856, allocations: 0 / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002197/0.8562, allocations: 19.94 kB / 1.171 GB, free: 14.46 MB / 0.9044 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.0004048/0.8566, allocations: 0.6357 MB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002118/0.8569, allocations: 123.2 kB / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.8569, allocations: 0 / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 2.611e-05/0.8569, allocations: 12 kB / 1.172 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002298/0.8571, allocations: 13.05 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/0.8585, allocations: 1.362 MB / 1.173 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.8588, allocations: 0.6807 MB / 1.174 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.143e-05/0.8589, allocations: 0 / 1.174 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.806e-05/0.8589, allocations: 20.88 kB / 1.174 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of SimCode: time 4.71e-07/0.8589, allocations: 0 / 1.174 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01926/0.8782, allocations: 2.003 MB / 1.176 GB, free: 9.602 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.89/8.768, allocations: 15.83 kB / 1.176 GB, free: 9.59 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches