Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002174/0.002174, allocations: 104 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002463/0.002463, allocations: 210.4 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.54/1.54, allocations: 230.6 MB / 252.8 MB, free: 9.129 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.259/3.259, allocations: 0.49 GB / 0.7916 GB, free: 33.26 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002123/0.002123, allocations: 66.77 kB / 1.149 GB, free: 26.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3749/0.377, allocations: 176.1 MB / 1.321 GB, free: 3.348 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.002211/0.3792, allocations: 0.6326 MB / 1.321 GB, free: 2.715 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001893/0.3811, allocations: 1.14 MB / 1.323 GB, free: 1.562 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.076e-05/0.3812, allocations: 7.938 kB / 1.323 GB, free: 1.555 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.3813, allocations: 0 / 1.323 GB, free: 1.555 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 3.789e-05/0.3814, allocations: 11.92 kB / 1.323 GB, free: 1.543 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006431/0.382, allocations: 122.1 kB / 1.323 GB, free: 1.426 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001939/0.3822, allocations: 91.81 kB / 1.323 GB, free: 1.336 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 8.667e-05/0.3823, allocations: 7.938 kB / 1.323 GB, free: 1.328 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.088e-05/0.3824, allocations: 35.97 kB / 1.323 GB, free: 1.293 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001148/0.3825, allocations: 35.83 kB / 1.323 GB, free: 1.258 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.486e-05/0.3825, allocations: 8 kB / 1.323 GB, free: 1.25 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.992e-05/0.3826, allocations: 19.98 kB / 1.323 GB, free: 1.23 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 5.988e-05/0.3826, allocations: 15.97 kB / 1.323 GB, free: 1.215 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 6.281e-05/0.3827, allocations: 35.86 kB / 1.323 GB, free: 1.18 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001991/0.3829, allocations: 83.78 kB / 1.323 GB, free: 1.098 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3829, allocations: 0 / 1.323 GB, free: 1.098 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3829, allocations: 0 / 1.323 GB, free: 1.098 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.992e-06/0.3829, allocations: 4 kB / 1.323 GB, free: 1.094 MB / 1.014 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.0005375/0.3835, allocations: 385 kB / 1.323 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.3835, allocations: 11.98 kB / 1.323 GB, free: 0.6484 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.574e-05/0.3835, allocations: 34.69 kB / 1.323 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.905e-05/0.3836, allocations: 8.891 kB / 1.323 GB, free: 0.5977 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002216/0.3838, allocations: 188.4 kB / 1.324 GB, free: 384 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.3838, allocations: 4.375 kB / 1.324 GB, free: 380 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.789e-05/0.3839, allocations: 8.312 kB / 1.324 GB, free: 372 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000119/0.384, allocations: 42.25 kB / 1.324 GB, free: 324 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.384, allocations: 3.938 kB / 1.324 GB, free: 320 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.676e-06/0.384, allocations: 0 / 1.324 GB, free: 320 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.384, allocations: 4 kB / 1.324 GB, free: 316 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.801e-05/0.384, allocations: 11.98 kB / 1.324 GB, free: 304 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004456/0.3845, allocations: 312.7 kB / 1.324 GB, free: 15.94 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.291e-05/0.3845, allocations: 18.58 kB / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.931e-05/0.3846, allocations: 8.859 kB / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 7.825e-06/0.3846, allocations: 0 / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001683/0.3847, allocations: 63.44 kB / 1.324 GB, free: 15.83 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.412e-06/0.3847, allocations: 3.938 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0002392/0.385, allocations: 57.62 kB / 1.324 GB, free: 15.76 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.385, allocations: 55.41 kB / 1.324 GB, free: 15.7 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.3852, allocations: 113.8 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.425e-05/0.3852, allocations: 29.7 kB / 1.324 GB, free: 15.54 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.69e-05/0.3853, allocations: 96.11 kB / 1.324 GB, free: 15.44 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.517e-05/0.3853, allocations: 3.953 kB / 1.324 GB, free: 15.44 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.015e-05/0.3854, allocations: 29.7 kB / 1.324 GB, free: 15.4 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000192/0.3856, allocations: 318.8 kB / 1.325 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.3857, allocations: 31.98 kB / 1.325 GB, free: 15.05 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.3858, allocations: 50.55 kB / 1.325 GB, free: 14.99 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.386, allocations: 84.2 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.386, allocations: 0 / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003803/0.3864, allocations: 143.3 kB / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.821e-05/0.3864, allocations: 33.8 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.3864, allocations: 4.312 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.007e-05/0.3864, allocations: 0 / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.576e-05/0.3865, allocations: 7.984 kB / 1.325 GB, free: 14.69 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.3865, allocations: 4 kB / 1.325 GB, free: 14.69 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002813/0.3868, allocations: 31.86 kB / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.596e-05/0.3868, allocations: 4 kB / 1.325 GB, free: 14.65 MB / 1.029 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 0.0001338/0.3869, allocations: 121.7 kB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.271e-05/0.387, allocations: 11.98 kB / 1.325 GB, free: 14.51 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.709e-05/0.387, allocations: 7.906 kB / 1.325 GB, free: 14.49 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.387, allocations: 0 / 1.325 GB, free: 14.49 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.387, allocations: 0 / 1.325 GB, free: 14.49 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.387, allocations: 0 / 1.325 GB, free: 14.49 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001892/0.3872, allocations: 165.5 kB / 1.325 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.3872, allocations: 3.984 kB / 1.325 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.394e-06/0.3872, allocations: 0 / 1.325 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3872, allocations: 4 kB / 1.325 GB, free: 14.27 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.3872, allocations: 0 / 1.325 GB, free: 14.27 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3872, allocations: 0 / 1.325 GB, free: 14.27 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3872, allocations: 4 kB / 1.325 GB, free: 14.27 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001571/0.3874, allocations: 77.06 kB / 1.325 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.204e-05/0.3874, allocations: 85.06 kB / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.3875, allocations: 7.922 kB / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.76e-05/0.3875, allocations: 0 / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.22e-05/0.3875, allocations: 3.938 kB / 1.326 GB, free: 14.06 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.3875, allocations: 8 kB / 1.326 GB, free: 14.05 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.562e-05/0.3876, allocations: 83.28 kB / 1.326 GB, free: 13.97 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3876, allocations: 0 / 1.326 GB, free: 13.97 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003238/0.3879, allocations: 19.98 kB / 1.326 GB, free: 13.95 MB / 1.029 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.0006146/0.3885, allocations: 0.6167 MB / 1.326 GB, free: 13.31 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000311/0.3888, allocations: 115.4 kB / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3888, allocations: 4.062 kB / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 3.326e-05/0.3889, allocations: 4 kB / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.3892, allocations: 13.86 kB / 1.326 GB, free: 13.16 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.3914, allocations: 1.379 MB / 1.328 GB, free: 11.69 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004171/0.3918, allocations: 0.6885 MB / 1.328 GB, free: 10.97 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.961e-05/0.3918, allocations: 4 kB / 1.328 GB, free: 10.97 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.049e-05/0.3918, allocations: 11.44 kB / 1.328 GB, free: 10.96 MB / 1.029 GB Notification: Performance of SimCode: time 4.91e-07/0.3918, allocations: 3.938 kB / 1.328 GB, free: 10.95 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03173/0.4236, allocations: 2.006 MB / 1.33 GB, free: 9.098 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.056/8.479, allocations: 10.69 kB / 1.33 GB, free: 9.09 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.2814760718029]