Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.IntegerScalarReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator",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: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 192.7 kB / 16.53 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.632/2.632, allocations: 461.9 MB / 0.7346 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 73.19 kB / 0.8992 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3217, allocations: 157.4 MB / 1.053 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator): time 0.002177/0.324, allocations: 0.6677 MB / 1.054 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.3251, allocations: 0.8351 MB / 1.054 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.678e-05/0.3251, allocations: 0 / 1.054 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.3253, allocations: 7.938 kB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.456e-05/0.3253, allocations: 3.938 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002089/0.3255, allocations: 19.97 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.838e-05/0.3257, allocations: 31.92 kB / 1.054 GB, free: 6.668 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.3258, allocations: 12 kB / 1.054 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.859e-05/0.3259, allocations: 19.92 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.273e-05/0.3259, allocations: 15.92 kB / 1.054 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.364e-05/0.326, allocations: 4 kB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.362e-05/0.326, allocations: 0 / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.931e-05/0.3261, allocations: 15.97 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.679e-05/0.3261, allocations: 15.88 kB / 1.055 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001102/0.3262, allocations: 35.88 kB / 1.055 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3263, allocations: 0 / 1.055 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.853e-06/0.3263, allocations: 0 / 1.055 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.3263, allocations: 0 / 1.055 GB, free: 6.551 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005203/0.3268, allocations: 347.7 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.3269, allocations: 12.62 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.817e-05/0.3269, allocations: 34.75 kB / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.325e-05/0.3269, allocations: 8.938 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.3271, allocations: 172.2 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.3272, allocations: 8.375 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.3272, allocations: 384 / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002212/0.3274, allocations: 74.2 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.3274, allocations: 3.938 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.3275, allocations: 0 / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.3275, allocations: 0 / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.3277, allocations: 43.95 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004327/0.3281, allocations: 284.7 kB / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001498/0.3283, allocations: 46.55 kB / 1.056 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.925e-05/0.3284, allocations: 28.83 kB / 1.056 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.662e-05/0.3284, allocations: 0 / 1.056 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.3284, allocations: 34.56 kB / 1.056 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 6.983e-06/0.3284, allocations: 0 / 1.056 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003859/0.3288, allocations: 89.58 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/0.3289, allocations: 55.41 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.624e-05/0.329, allocations: 109.7 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.329, allocations: 25.7 kB / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.508e-05/0.3291, allocations: 84.14 kB / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.679e-05/0.3291, allocations: 8.031 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.56e-05/0.3291, allocations: 21.7 kB / 1.056 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.641e-05/0.3292, allocations: 318.8 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.759e-05/0.3293, allocations: 15.98 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.05e-05/0.3294, allocations: 19.97 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000173/0.3296, allocations: 48.81 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3296, allocations: 4 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002215/0.3298, allocations: 69.66 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.3298, allocations: 4 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.3299, allocations: 0 / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.3299, allocations: 0 / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.33, allocations: 11.98 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.33, allocations: 0 / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.322e-05/0.3301, allocations: 8.031 kB / 1.056 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.3301, allocations: 0 / 1.056 GB, free: 4.363 MB / 0.8106 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.0001599/0.3303, allocations: 119.3 kB / 1.057 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.71e-05/0.3303, allocations: 3.906 kB / 1.057 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.44e-05/0.3303, allocations: 7.125 kB / 1.057 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.3303, allocations: 4 kB / 1.057 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3303, allocations: 0 / 1.057 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.3304, allocations: 0 / 1.057 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001612/0.3305, allocations: 169.5 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3305, allocations: 4.25 kB / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.152e-05/0.3306, allocations: 15.98 kB / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.3306, allocations: 7.938 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.3306, allocations: 0 / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.3306, allocations: 0 / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3306, allocations: 0 / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002501/0.3309, allocations: 167.5 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.621e-05/0.3309, allocations: 85.09 kB / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.331, allocations: 0 / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.059e-05/0.331, allocations: 4 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.305e-05/0.3311, allocations: 3.984 kB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.3311, allocations: 7.938 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.152e-05/0.3312, allocations: 83.28 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.3312, allocations: 0 / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002155/0.3314, allocations: 4 kB / 1.057 GB, free: 3.602 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: 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.000526/0.3319, allocations: 0.7084 MB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002321/0.3322, allocations: 47.98 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3322, allocations: 0 / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.3323, allocations: 27.92 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002483/0.3325, allocations: 5.703 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.334, allocations: 1.253 MB / 1.059 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002425/0.3342, allocations: 0.6845 MB / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.173e-05/0.3343, allocations: 4 kB / 1.06 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.789e-05/0.3343, allocations: 19.42 kB / 1.06 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of SimCode: time 6.01e-07/0.3343, allocations: 0 / 1.06 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02021/0.3546, allocations: 1.508 MB / 1.061 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.109/7.464, allocations: 9.25 kB / 1.061 GB, free: 15.33 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches