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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.007331/0.007331, allocations: 97.39 kB / 15.73 MB, free: 6.039 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.001804/0.001804, allocations: 202.2 kB / 16.68 MB, free: 5.961 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.97/2.97, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002408/0.002408, allocations: 67.89 kB / 1.083 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3089, allocations: 162.2 MB / 1.241 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator): time 0.002119/0.3111, allocations: 0.6737 MB / 1.242 GB, free: 9.516 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001383/0.3125, allocations: 0.8156 MB / 1.243 GB, free: 8.688 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.884e-05/0.3126, allocations: 4 kB / 1.243 GB, free: 8.684 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.3127, allocations: 7.938 kB / 1.243 GB, free: 8.676 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.763e-05/0.3128, allocations: 7.922 kB / 1.243 GB, free: 8.668 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001978/0.313, allocations: 19.98 kB / 1.243 GB, free: 8.648 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.3131, allocations: 31.91 kB / 1.243 GB, free: 8.617 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.3132, allocations: 8 kB / 1.243 GB, free: 8.609 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.648e-05/0.3133, allocations: 19.92 kB / 1.243 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.567e-05/0.3134, allocations: 15.92 kB / 1.243 GB, free: 8.574 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.145e-05/0.3134, allocations: 4 kB / 1.243 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.228e-05/0.3134, allocations: 0 / 1.243 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 6.367e-05/0.3135, allocations: 15.98 kB / 1.243 GB, free: 8.555 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.539e-05/0.3135, allocations: 19.86 kB / 1.243 GB, free: 8.535 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000136/0.3137, allocations: 39.81 kB / 1.243 GB, free: 8.496 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3137, allocations: 0 / 1.243 GB, free: 8.496 MB / 0.9981 GB Notification: Performance of FrontEnd: time 5.881e-06/0.3137, allocations: 0 / 1.243 GB, free: 8.496 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.3137, allocations: 3.938 kB / 1.243 GB, free: 8.492 MB / 0.9981 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.0005755/0.3143, allocations: 347.4 kB / 1.243 GB, free: 8.102 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.3144, allocations: 12.03 kB / 1.243 GB, free: 8.09 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.523e-05/0.3144, allocations: 30.75 kB / 1.243 GB, free: 8.051 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.289e-05/0.3144, allocations: 8.938 kB / 1.243 GB, free: 8.043 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.3147, allocations: 176.3 kB / 1.244 GB, free: 7.832 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.214e-05/0.3147, allocations: 384 / 1.244 GB, free: 7.832 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.3147, allocations: 4.375 kB / 1.244 GB, free: 7.828 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002465/0.315, allocations: 70.19 kB / 1.244 GB, free: 7.754 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.315, allocations: 3.938 kB / 1.244 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.315, allocations: 0 / 1.244 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.315, allocations: 0 / 1.244 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002207/0.3152, allocations: 51.89 kB / 1.244 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004625/0.3157, allocations: 280.8 kB / 1.244 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.3159, allocations: 38.56 kB / 1.244 GB, free: 7.328 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.316, allocations: 32.83 kB / 1.244 GB, free: 7.293 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.316, allocations: 4 kB / 1.244 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.3161, allocations: 30.56 kB / 1.244 GB, free: 7.25 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.3161, allocations: 3.938 kB / 1.244 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0004214/0.3165, allocations: 85.59 kB / 1.244 GB, free: 7.156 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.3166, allocations: 55.41 kB / 1.244 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.3167, allocations: 106 kB / 1.244 GB, free: 6.977 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.3167, allocations: 29.64 kB / 1.244 GB, free: 6.941 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.406e-05/0.3168, allocations: 88.14 kB / 1.244 GB, free: 6.852 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.539e-05/0.3168, allocations: 3.953 kB / 1.244 GB, free: 6.848 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.123e-05/0.3169, allocations: 21.7 kB / 1.245 GB, free: 6.82 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.317, allocations: 314.8 kB / 1.245 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.839e-05/0.3171, allocations: 23.92 kB / 1.245 GB, free: 6.48 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.089e-05/0.3172, allocations: 19.97 kB / 1.245 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.3174, allocations: 48.81 kB / 1.245 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3174, allocations: 0 / 1.245 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002347/0.3177, allocations: 65.66 kB / 1.245 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.3177, allocations: 4 kB / 1.245 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.3177, allocations: 4.094 kB / 1.245 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.3177, allocations: 0 / 1.245 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.3178, allocations: 11.98 kB / 1.245 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.587e-06/0.3178, allocations: 0 / 1.245 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.964e-05/0.3179, allocations: 11.89 kB / 1.245 GB, free: 6.309 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.3179, allocations: 0 / 1.245 GB, free: 6.309 MB / 0.9981 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.000168/0.3181, allocations: 121.8 kB / 1.245 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.3181, allocations: 256 / 1.245 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.497e-05/0.3182, allocations: 7.125 kB / 1.245 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.3182, allocations: 4 kB / 1.245 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.3182, allocations: 4 kB / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.3182, allocations: 0 / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002145/0.3184, allocations: 177.5 kB / 1.245 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3184, allocations: 0 / 1.245 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.085e-05/0.3185, allocations: 11.98 kB / 1.245 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3185, allocations: 0 / 1.245 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.3185, allocations: 0 / 1.245 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.3185, allocations: 0 / 1.245 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3185, allocations: 0 / 1.245 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003056/0.3188, allocations: 167.5 kB / 1.245 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.24e-05/0.3189, allocations: 89.05 kB / 1.246 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.3189, allocations: 3.938 kB / 1.246 GB, free: 5.641 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.675e-05/0.319, allocations: 4 kB / 1.246 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.664e-05/0.3191, allocations: 11.97 kB / 1.246 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-06/0.3191, allocations: 8.031 kB / 1.246 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.287e-05/0.3192, allocations: 79.28 kB / 1.246 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3192, allocations: 0 / 1.246 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002276/0.3194, allocations: 4 kB / 1.246 GB, free: 5.535 MB / 0.9981 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.0006351/0.32, allocations: 0.7111 MB / 1.246 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000234/0.3203, allocations: 47.83 kB / 1.246 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3203, allocations: 0 / 1.246 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.3204, allocations: 23.98 kB / 1.246 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.3207, allocations: 3.984 kB / 1.246 GB, free: 4.723 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/0.3222, allocations: 1.268 MB / 1.248 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.3225, allocations: 0.6807 MB / 1.248 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.894e-05/0.3226, allocations: 4 kB / 1.248 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.91e-05/0.3226, allocations: 19.45 kB / 1.248 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of SimCode: time 3.21e-07/0.3227, allocations: 0 / 1.248 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02178/0.3444, allocations: 1.52 MB / 1.25 GB, free: 1.258 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.594/7.938, allocations: 9.062 kB / 1.25 GB, free: 1.25 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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