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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001077/0.001077, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001082/0.001082, allocations: 196.3 kB / 16.14 MB, free: 6.691 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.29/1.29, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.549/2.549, allocations: 461.8 MB / 0.7342 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 72 kB / 0.8985 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2762, allocations: 157.4 MB / 1.052 GB, free: 8.203 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator): time 0.002014/0.2783, allocations: 0.7365 MB / 1.053 GB, free: 7.465 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001069/0.2794, allocations: 0.8273 MB / 1.054 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.985e-05/0.2795, allocations: 0 / 1.054 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.2796, allocations: 7.922 kB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.33e-05/0.2796, allocations: 4 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001736/0.2798, allocations: 8 kB / 1.054 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.788e-05/0.2799, allocations: 31.92 kB / 1.054 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.28, allocations: 19.97 kB / 1.054 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.523e-05/0.2801, allocations: 11.94 kB / 1.054 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.647e-05/0.2802, allocations: 15.91 kB / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.945e-05/0.2802, allocations: 4 kB / 1.054 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.274e-05/0.2802, allocations: 0 / 1.054 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.019e-05/0.2803, allocations: 8 kB / 1.054 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.113e-05/0.2803, allocations: 23.84 kB / 1.054 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.124e-05/0.2804, allocations: 35.89 kB / 1.054 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2804, allocations: 0 / 1.054 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.51e-07/0.2804, allocations: 0 / 1.054 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.2804, allocations: 4 kB / 1.054 GB, free: 6.453 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.0005039/0.281, allocations: 347.7 kB / 1.054 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.281, allocations: 11.97 kB / 1.054 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.982e-05/0.2811, allocations: 42.69 kB / 1.054 GB, free: 6 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.877e-05/0.2811, allocations: 0.9375 kB / 1.054 GB, free: 6 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001629/0.2813, allocations: 172.3 kB / 1.054 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.406e-05/0.2813, allocations: 8.375 kB / 1.054 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/0.2813, allocations: 384 / 1.054 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002092/0.2815, allocations: 70.22 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.2815, allocations: 3.938 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.2816, allocations: 0 / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.2816, allocations: 0 / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001844/0.2818, allocations: 43.95 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003878/0.2822, allocations: 284.7 kB / 1.055 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.2823, allocations: 38.55 kB / 1.055 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.174e-05/0.2824, allocations: 24.91 kB / 1.055 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.56e-05/0.2824, allocations: 0 / 1.055 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.2824, allocations: 38.5 kB / 1.055 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.2824, allocations: 4 kB / 1.055 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003508/0.2828, allocations: 89.62 kB / 1.055 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.2828, allocations: 51.41 kB / 1.055 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.225e-05/0.2829, allocations: 113.7 kB / 1.055 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.2829, allocations: 25.7 kB / 1.055 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.31e-05/0.283, allocations: 84.08 kB / 1.055 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.283, allocations: 16.03 kB / 1.055 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.245e-05/0.2831, allocations: 13.72 kB / 1.055 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.818e-05/0.2831, allocations: 318.8 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.494e-05/0.2832, allocations: 15.98 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.713e-05/0.2833, allocations: 19.98 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000153/0.2835, allocations: 48.81 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2835, allocations: 0 / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001946/0.2837, allocations: 69.66 kB / 1.056 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.2837, allocations: 9.25 kB / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.2837, allocations: 0 / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.939e-06/0.2837, allocations: 0 / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.37e-05/0.2838, allocations: 7.984 kB / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.2838, allocations: 4 kB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.665e-05/0.2839, allocations: 12.27 kB / 1.056 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.2839, allocations: 7.984 kB / 1.056 GB, free: 4.262 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.0001299/0.2841, allocations: 113.8 kB / 1.056 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.78e-05/0.2841, allocations: 3.906 kB / 1.056 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.275e-05/0.2841, allocations: 15.05 kB / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.2841, allocations: 0 / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2841, allocations: 0 / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.2841, allocations: 0 / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001493/0.2843, allocations: 169.6 kB / 1.056 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2843, allocations: 4 kB / 1.056 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.184e-05/0.2844, allocations: 7.984 kB / 1.056 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2844, allocations: 3.938 kB / 1.056 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.2844, allocations: 0 / 1.056 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.2844, allocations: 4 kB / 1.056 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2844, allocations: 0 / 1.056 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002376/0.2847, allocations: 167.5 kB / 1.056 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.391e-05/0.2847, allocations: 81.11 kB / 1.056 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.394e-05/0.2847, allocations: 0 / 1.056 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.945e-05/0.2848, allocations: 7.984 kB / 1.056 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.483e-05/0.2849, allocations: 7.984 kB / 1.056 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.2849, allocations: 0 / 1.056 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.937e-05/0.2849, allocations: 87.22 kB / 1.056 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2849, allocations: 0 / 1.056 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002137/0.2851, allocations: 12.03 kB / 1.056 GB, free: 3.5 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.000529/0.2857, allocations: 0.7006 MB / 1.057 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001986/0.2859, allocations: 43.98 kB / 1.057 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2859, allocations: 3.938 kB / 1.057 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.155e-05/0.286, allocations: 23.92 kB / 1.057 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002284/0.2862, allocations: 9.375 kB / 1.057 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.2875, allocations: 1.262 MB / 1.058 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002158/0.2877, allocations: 0.6809 MB / 1.059 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.008e-05/0.2878, allocations: 4 kB / 1.059 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.468e-05/0.2878, allocations: 11.44 kB / 1.059 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.2878, allocations: 4.031 kB / 1.059 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01034/0.2982, allocations: 1.307 MB / 1.06 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002131/0.2984, allocations: 233.1 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/1.94, allocations: 1.375 kB / 1.061 GB, free: 15.2 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