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.006829/0.00683, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.00152/0.00152, allocations: 199.1 kB / 16.68 MB, free: 5.977 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.323/1.323, 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.739/2.739, allocations: 482.6 MB / 0.755 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 67.89 kB / 1.083 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2616, allocations: 162.3 MB / 1.242 GB, free: 9.812 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator): time 0.001549/0.2632, allocations: 0.6647 MB / 1.243 GB, free: 9.148 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0009086/0.2641, allocations: 0.8312 MB / 1.243 GB, free: 8.305 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.702e-05/0.2641, allocations: 0 / 1.243 GB, free: 8.305 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 7.411e-05/0.2642, allocations: 3.938 kB / 1.243 GB, free: 8.301 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 1.525e-05/0.2643, allocations: 4 kB / 1.243 GB, free: 8.297 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001334/0.2644, allocations: 23.92 kB / 1.243 GB, free: 8.273 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.93e-05/0.2645, allocations: 31.92 kB / 1.243 GB, free: 8.242 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.389e-05/0.2646, allocations: 11.98 kB / 1.243 GB, free: 8.23 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.466e-05/0.2646, allocations: 19.91 kB / 1.243 GB, free: 8.211 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.141e-05/0.2647, allocations: 15.92 kB / 1.243 GB, free: 8.195 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.765e-05/0.2647, allocations: 4 kB / 1.243 GB, free: 8.191 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.122e-05/0.2647, allocations: 4 kB / 1.243 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.195e-05/0.2648, allocations: 8 kB / 1.243 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.613e-05/0.2648, allocations: 19.86 kB / 1.243 GB, free: 8.16 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 8.506e-05/0.2649, allocations: 39.81 kB / 1.243 GB, free: 8.121 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2649, allocations: 0 / 1.243 GB, free: 8.121 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2649, allocations: 0 / 1.243 GB, free: 8.121 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.577e-06/0.2649, allocations: 4 kB / 1.243 GB, free: 8.117 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.000424/0.2653, allocations: 347.4 kB / 1.244 GB, free: 7.727 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.2654, allocations: 8.031 kB / 1.244 GB, free: 7.719 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.127e-05/0.2654, allocations: 30.75 kB / 1.244 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.14e-05/0.2654, allocations: 12.89 kB / 1.244 GB, free: 7.668 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.2656, allocations: 180.2 kB / 1.244 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.2656, allocations: 384 / 1.244 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.748e-06/0.2656, allocations: 4.375 kB / 1.244 GB, free: 7.449 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001792/0.2658, allocations: 66.2 kB / 1.244 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.2658, allocations: 3.938 kB / 1.244 GB, free: 7.375 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.906e-06/0.2658, allocations: 4 kB / 1.244 GB, free: 7.371 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.2658, allocations: 0 / 1.244 GB, free: 7.371 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.266, allocations: 47.95 kB / 1.244 GB, free: 7.324 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003234/0.2664, allocations: 280.7 kB / 1.244 GB, free: 7 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001274/0.2665, allocations: 38.55 kB / 1.244 GB, free: 6.953 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.129e-05/0.2666, allocations: 28.84 kB / 1.245 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.2666, allocations: 8.062 kB / 1.245 GB, free: 6.914 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.2667, allocations: 38.48 kB / 1.245 GB, free: 6.867 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.2667, allocations: 0 / 1.245 GB, free: 6.867 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0003414/0.267, allocations: 89.58 kB / 1.245 GB, free: 6.773 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.2671, allocations: 51.41 kB / 1.245 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.251e-05/0.2671, allocations: 113.9 kB / 1.245 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.2672, allocations: 25.7 kB / 1.245 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.37e-05/0.2672, allocations: 84.14 kB / 1.245 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.174e-05/0.2672, allocations: 3.953 kB / 1.245 GB, free: 6.469 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.58e-05/0.2673, allocations: 13.72 kB / 1.245 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.2674, allocations: 326.8 kB / 1.245 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.79e-05/0.2675, allocations: 11.98 kB / 1.245 GB, free: 6.109 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.399e-05/0.2676, allocations: 27.97 kB / 1.245 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.2677, allocations: 40.77 kB / 1.245 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2677, allocations: 0 / 1.245 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001976/0.2679, allocations: 69.66 kB / 1.245 GB, free: 5.965 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.268, allocations: 4 kB / 1.245 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-06/0.268, allocations: 256 / 1.245 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.846e-06/0.268, allocations: 8.094 kB / 1.245 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.739e-05/0.2681, allocations: 11.98 kB / 1.245 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.2681, allocations: 0 / 1.245 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.13e-05/0.2681, allocations: 7.984 kB / 1.245 GB, free: 5.934 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-06/0.2681, allocations: 0 / 1.245 GB, free: 5.934 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.0001034/0.2683, allocations: 118.3 kB / 1.246 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.407e-05/0.2683, allocations: 7.953 kB / 1.246 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.577e-05/0.2683, allocations: 7.109 kB / 1.246 GB, free: 5.793 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.2683, allocations: 4 kB / 1.246 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2683, allocations: 0 / 1.246 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.2683, allocations: 3.938 kB / 1.246 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001643/0.2685, allocations: 173.5 kB / 1.246 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.2685, allocations: 3.938 kB / 1.246 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.84e-05/0.2686, allocations: 11.98 kB / 1.246 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.2686, allocations: 0 / 1.246 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-06/0.2686, allocations: 0 / 1.246 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.2686, allocations: 0 / 1.246 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2686, allocations: 0 / 1.246 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002452/0.2689, allocations: 171.5 kB / 1.246 GB, free: 5.367 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.531e-05/0.2689, allocations: 77.11 kB / 1.246 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.092e-05/0.2689, allocations: 0 / 1.246 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.134e-05/0.269, allocations: 7.984 kB / 1.246 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.725e-05/0.269, allocations: 7.984 kB / 1.246 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.2691, allocations: 11.97 kB / 1.246 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.739e-05/0.2691, allocations: 79.28 kB / 1.246 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2691, allocations: 0 / 1.246 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002016/0.2693, allocations: 7.953 kB / 1.246 GB, free: 5.16 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.0005339/0.2698, allocations: 0.7085 MB / 1.247 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002017/0.2701, allocations: 39.95 kB / 1.247 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2701, allocations: 4 kB / 1.247 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.206e-05/0.2702, allocations: 23.92 kB / 1.247 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002095/0.2704, allocations: 5.719 kB / 1.247 GB, free: 4.352 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.2717, allocations: 1.261 MB / 1.248 GB, free: 3.012 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/0.272, allocations: 0.6807 MB / 1.249 GB, free: 2.305 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.133e-05/0.272, allocations: 4 kB / 1.249 GB, free: 2.301 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.595e-05/0.2721, allocations: 15.47 kB / 1.249 GB, free: 2.285 MB / 0.9981 GB Notification: Performance of SimCode: time 2.4e-07/0.2721, allocations: 4 kB / 1.249 GB, free: 2.281 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.62/1.892, allocations: 1.527 MB / 1.25 GB, free: 0.8867 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.48/16.37, allocations: 9.688 kB / 1.25 GB, free: 0.8789 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 & /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=400 --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