Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.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.001372/0.001372, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001541/0.001541, allocations: 216 kB / 22.25 MB, free: 5.105 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.487/1.487, allocations: 230.6 MB / 256 MB, free: 7.785 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.215/3.215, allocations: 0.49 GB / 0.7951 GB, free: 35.42 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.IntegerScalarReplicator,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator",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.00208/0.00208, allocations: 69.59 kB / 1.154 GB, free: 25.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3716/0.3737, allocations: 176.1 MB / 1.326 GB, free: 1.477 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator): time 0.002105/0.3758, allocations: 0.6635 MB / 1.326 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001306/0.3771, allocations: 0.8592 MB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.951e-05/0.3772, allocations: 4 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.3773, allocations: 7.938 kB / 1.327 GB, free: 15.94 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 2.782e-05/0.3773, allocations: 3.938 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001796/0.3775, allocations: 15.97 kB / 1.327 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.534e-05/0.3776, allocations: 31.92 kB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.3777, allocations: 4 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 6.399e-05/0.3777, allocations: 15.92 kB / 1.327 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.331e-05/0.3778, allocations: 27.91 kB / 1.327 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.928e-05/0.3778, allocations: 0 / 1.327 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.798e-06/0.3778, allocations: 8 kB / 1.327 GB, free: 15.83 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.004e-05/0.3779, allocations: 11.98 kB / 1.327 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.843e-05/0.3779, allocations: 11.94 kB / 1.327 GB, free: 15.81 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.3781, allocations: 43.8 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3781, allocations: 0 / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3781, allocations: 3.938 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.041e-05/0.3781, allocations: 0 / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005185/0.3786, allocations: 270.3 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.3786, allocations: 8.031 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.249e-05/0.3787, allocations: 34.75 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.849e-05/0.3787, allocations: 12.89 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000163/0.3789, allocations: 110.5 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.3789, allocations: 384 / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.758e-05/0.3789, allocations: 8.375 kB / 1.328 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002102/0.3791, allocations: 62.22 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.3791, allocations: 7.938 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.3791, allocations: 3.938 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.3791, allocations: 3.984 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.3793, allocations: 47.95 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003985/0.3797, allocations: 247.8 kB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001652/0.3799, allocations: 42.48 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.38, allocations: 24.91 kB / 1.328 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.38, allocations: 3.938 kB / 1.328 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.3801, allocations: 30.56 kB / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.3801, allocations: 4 kB / 1.328 GB, free: 14.72 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0004088/0.3805, allocations: 89.62 kB / 1.328 GB, free: 14.63 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.3805, allocations: 51.41 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.889e-05/0.3806, allocations: 101.9 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.3806, allocations: 29.64 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.112e-05/0.3807, allocations: 100 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.3807, allocations: 3.953 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.115e-05/0.3808, allocations: 17.72 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001899/0.381, allocations: 314.8 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.757e-05/0.3811, allocations: 28.09 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.601e-05/0.3811, allocations: 11.98 kB / 1.329 GB, free: 13.94 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002385/0.3814, allocations: 44.81 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.3814, allocations: 0 / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000215/0.3816, allocations: 73.72 kB / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.3816, allocations: 4 kB / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.3816, allocations: 0 / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.3816, allocations: 0 / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.3817, allocations: 15.92 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.3817, allocations: 0 / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.774e-05/0.3818, allocations: 7.984 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.3818, allocations: 0 / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (intRep.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * 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.0001888/0.382, allocations: 118.3 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.294e-05/0.382, allocations: 4.031 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.3821, allocations: 3.312 kB / 1.329 GB, free: 13.65 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.3821, allocations: 4 kB / 1.329 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3821, allocations: 0 / 1.329 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.706e-06/0.3821, allocations: 0 / 1.329 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.3823, allocations: 148.7 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3823, allocations: 0 / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.451e-05/0.3824, allocations: 11.98 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3824, allocations: 0 / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.3824, allocations: 0 / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.3824, allocations: 0 / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3824, allocations: 4 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003273/0.3828, allocations: 171.4 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.087e-06/0.3828, allocations: 256 / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.3828, allocations: 0 / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.747e-05/0.3829, allocations: 11.98 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.246e-05/0.3829, allocations: 11.98 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.3829, allocations: 0 / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.236e-05/0.383, allocations: 87.16 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.383, allocations: 4.031 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002178/0.3832, allocations: 4 kB / 1.33 GB, free: 13.14 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: 1 (intRep.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0008911/0.3841, allocations: 0.7105 MB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002415/0.3844, allocations: 39.89 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3844, allocations: 4.094 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.3845, allocations: 23.98 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.3847, allocations: 0.9375 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001776/0.3865, allocations: 1.261 MB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.336e-05/0.3866, allocations: 67.44 kB / 1.332 GB, free: 10.91 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.003e-05/0.3866, allocations: 4 kB / 1.332 GB, free: 10.91 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.683e-05/0.3867, allocations: 19.42 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of SimCode: time 3.81e-07/0.3867, allocations: 0 / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03079/0.4175, allocations: 2.08 MB / 1.334 GB, free: 8.941 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.76, allocations: 11.64 kB / 1.334 GB, free: 8.934 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.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: 18.51190179999685]