Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.RealScalarReplicator,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator",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.00172/0.00172, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.002102/0.002102, allocations: 195.4 kB / 16.25 MB, free: 6.629 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.518/1.518, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.418/2.418, allocations: 390.3 MB / 0.6644 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 67.89 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6779/0.6795, allocations: 140.4 MB / 0.9493 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.001699/0.6812, allocations: 0.7049 MB / 0.9499 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006897/0.6819, allocations: 0.7935 MB / 0.9507 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.694e-05/0.682, allocations: 0 / 0.9507 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.477e-05/0.6821, allocations: 0 / 0.9507 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.135e-05/0.6821, allocations: 5.312 kB / 0.9507 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 9.326e-05/0.6822, allocations: 5.375 kB / 0.9507 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.523e-05/0.6823, allocations: 29.55 kB / 0.9508 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.666e-05/0.6823, allocations: 8.109 kB / 0.9508 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.043e-05/0.6824, allocations: 10.69 kB / 0.9508 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.854e-05/0.6824, allocations: 16.09 kB / 0.9508 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.513e-05/0.6825, allocations: 1.375 kB / 0.9508 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.855e-06/0.6825, allocations: 2.75 kB / 0.9508 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.7e-05/0.6825, allocations: 6.688 kB / 0.9508 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.691e-05/0.6826, allocations: 14.67 kB / 0.9508 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.449e-05/0.6826, allocations: 29.39 kB / 0.9508 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.6826, allocations: 1.375 kB / 0.9508 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.643e-06/0.6826, allocations: 4 kB / 0.9508 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.6827, allocations: 0 / 0.9508 GB, free: 7.906 MB / 0.7169 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.0003192/0.683, allocations: 340.8 kB / 0.9512 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.683, allocations: 9.625 kB / 0.9512 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.288e-05/0.683, allocations: 36.12 kB / 0.9512 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.058e-05/0.6831, allocations: 6.219 kB / 0.9512 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.556e-05/0.6832, allocations: 175 kB / 0.9514 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.366e-06/0.6832, allocations: 1.75 kB / 0.9514 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.758e-06/0.6832, allocations: 5.75 kB / 0.9514 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001557/0.6833, allocations: 65.3 kB / 0.9515 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.6834, allocations: 3.938 kB / 0.9515 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.6834, allocations: 1.375 kB / 0.9515 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.6834, allocations: 0 / 0.9515 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.6835, allocations: 36.58 kB / 0.9515 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002877/0.6838, allocations: 277.4 kB / 0.9518 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.515e-05/0.6839, allocations: 35.88 kB / 0.9518 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.182e-05/0.684, allocations: 19.19 kB / 0.9518 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.049e-05/0.684, allocations: 0 / 0.9518 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.334e-05/0.684, allocations: 38.55 kB / 0.9518 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.684, allocations: 1.656 kB / 0.9519 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0002835/0.6843, allocations: 76.81 kB / 0.9519 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.684e-05/0.6844, allocations: 51.41 kB / 0.952 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.673e-05/0.6844, allocations: 104.4 kB / 0.9521 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.801e-06/0.6844, allocations: 29.64 kB / 0.9521 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.174e-05/0.6844, allocations: 87.08 kB / 0.9522 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.279e-05/0.6845, allocations: 3.906 kB / 0.9522 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.486e-05/0.6845, allocations: 15.39 kB / 0.9522 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.481e-05/0.6845, allocations: 320.1 kB / 0.9525 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.99e-05/0.6846, allocations: 11.67 kB / 0.9525 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.122e-05/0.6847, allocations: 17.45 kB / 0.9525 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001203/0.6848, allocations: 38.12 kB / 0.9526 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.6848, allocations: 0 / 0.9526 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001549/0.685, allocations: 62.77 kB / 0.9526 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.685, allocations: 5.344 kB / 0.9526 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.685, allocations: 0 / 0.9526 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.685, allocations: 3.984 kB / 0.9526 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.221e-05/0.6851, allocations: 8.969 kB / 0.9526 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/0.6851, allocations: 0 / 0.9526 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.142e-05/0.6851, allocations: 8.359 kB / 0.9527 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.13e-06/0.6851, allocations: 3.984 kB / 0.9527 GB, free: 6.027 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 4.149e-05/0.6852, allocations: 116.2 kB / 0.9528 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.053e-05/0.6852, allocations: 1.062 kB / 0.9528 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.456e-05/0.6852, allocations: 4.531 kB / 0.9528 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.6852, allocations: 0 / 0.9528 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.6852, allocations: 5.547 kB / 0.9528 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-06/0.6853, allocations: 4 kB / 0.9528 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001005/0.6854, allocations: 163 kB / 0.9529 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.6854, allocations: 1.281 kB / 0.9529 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.821e-05/0.6854, allocations: 11.95 kB / 0.953 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.6854, allocations: 1.5 kB / 0.953 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.6854, allocations: 4.25 kB / 0.953 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.6854, allocations: 4 kB / 0.953 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.6854, allocations: 0 / 0.953 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001735/0.6856, allocations: 169.5 kB / 0.9531 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.392e-05/0.6856, allocations: 77.11 kB / 0.9532 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.6857, allocations: 1.188 kB / 0.9532 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.455e-05/0.6857, allocations: 8.016 kB / 0.9532 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.227e-05/0.6858, allocations: 0 / 0.9532 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.6858, allocations: 1.469 kB / 0.9532 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.095e-05/0.6858, allocations: 90.62 kB / 0.9533 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6858, allocations: 0 / 0.9533 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002008/0.686, allocations: 8.5 kB / 0.9533 GB, free: 5.328 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.00031/0.6863, allocations: 0.6925 MB / 0.954 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001853/0.6865, allocations: 35 kB / 0.954 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.6865, allocations: 0 / 0.954 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.995e-05/0.6866, allocations: 17.89 kB / 0.954 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.6869, allocations: 7.094 kB / 0.954 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009616/0.6878, allocations: 1.239 MB / 0.9552 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.986e-05/0.688, allocations: 0.6827 MB / 0.9559 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.055e-05/0.688, allocations: 1.344 kB / 0.9559 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.206e-05/0.688, allocations: 8.812 kB / 0.9559 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.688, allocations: 0 / 0.9559 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0445/0.7325, allocations: 1.14 MB / 0.957 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001671/0.7327, allocations: 214.3 kB / 0.9572 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/2.47, allocations: 1.312 kB / 0.9572 GB, free: 1.867 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches