Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaRep.u|reaRep.y.1.|reaRep.y.2.|reaRep.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaRep.u|reaRep.y.1.|reaRep.y.2.|reaRep.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009074/0.0009073, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007981/0.007981, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.505/1.505, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.94/2.94, allocations: 443.3 MB / 0.7175 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004055/0.0004055, allocations: 8.688 kB / 0.8796 GB, free: 41.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3944/0.3949, allocations: 155.2 MB / 1.031 GB, free: 4.27 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.0009453/0.3959, allocations: 379.8 kB / 1.031 GB, free: 3.902 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0009339/0.3968, allocations: 0.7924 MB / 1.032 GB, free: 3.098 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.1e-05/0.3969, allocations: 0 / 1.032 GB, free: 3.098 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.227e-05/0.397, allocations: 3.938 kB / 1.032 GB, free: 3.094 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 2.571e-05/0.397, allocations: 0 / 1.032 GB, free: 3.094 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001026/0.3971, allocations: 7.984 kB / 1.032 GB, free: 3.086 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.804e-05/0.3972, allocations: 27.92 kB / 1.032 GB, free: 3.059 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.3973, allocations: 4 kB / 1.032 GB, free: 3.055 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.859e-05/0.3974, allocations: 11.94 kB / 1.032 GB, free: 3.043 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.427e-05/0.3974, allocations: 7.984 kB / 1.032 GB, free: 3.035 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.491e-05/0.3975, allocations: 0 / 1.032 GB, free: 3.035 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.355e-06/0.3975, allocations: 0 / 1.032 GB, free: 3.035 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.125e-05/0.3975, allocations: 15.92 kB / 1.032 GB, free: 3.02 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.971e-05/0.3976, allocations: 33.64 kB / 1.032 GB, free: 2.98 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.152e-05/0.3977, allocations: 31.88 kB / 1.032 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3977, allocations: 4 kB / 1.032 GB, free: 2.945 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.505e-06/0.3977, allocations: 0 / 1.032 GB, free: 2.945 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.216e-06/0.3977, allocations: 0 / 1.032 GB, free: 2.945 MB / 0.7794 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.0005805/0.3983, allocations: 343.7 kB / 1.033 GB, free: 2.559 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.3983, allocations: 8.031 kB / 1.033 GB, free: 2.551 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.3984, allocations: 4.844 kB / 1.033 GB, free: 2.547 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002468/0.3986, allocations: 172.3 kB / 1.033 GB, free: 2.34 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.3987, allocations: 12.38 kB / 1.033 GB, free: 2.328 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.3987, allocations: 384 / 1.033 GB, free: 2.328 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.3989, allocations: 58.23 kB / 1.033 GB, free: 2.266 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3989, allocations: 192 / 1.033 GB, free: 2.266 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.3989, allocations: 3.938 kB / 1.033 GB, free: 2.262 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.3989, allocations: 0 / 1.033 GB, free: 2.262 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.3991, allocations: 55.95 kB / 1.033 GB, free: 2.207 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004781/0.3996, allocations: 280.8 kB / 1.033 GB, free: 1.883 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001197/0.3998, allocations: 38.56 kB / 1.033 GB, free: 1.836 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.367e-05/0.3999, allocations: 24.91 kB / 1.033 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.381e-05/0.3999, allocations: 3.984 kB / 1.033 GB, free: 1.805 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.3999, allocations: 38.56 kB / 1.033 GB, free: 1.758 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 9.81e-07/0.3999, allocations: 0 / 1.033 GB, free: 1.758 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0003586/0.4003, allocations: 89.69 kB / 1.033 GB, free: 1.664 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.4003, allocations: 55.39 kB / 1.034 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.7e-05/0.4004, allocations: 102.4 kB / 1.034 GB, free: 1.488 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.4004, allocations: 25.7 kB / 1.034 GB, free: 1.457 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.158e-05/0.4005, allocations: 92.08 kB / 1.034 GB, free: 1.363 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.4005, allocations: 11.83 kB / 1.034 GB, free: 1.352 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.564e-05/0.4006, allocations: 13.66 kB / 1.034 GB, free: 1.332 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.4007, allocations: 314.8 kB / 1.034 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.841e-05/0.4008, allocations: 24.02 kB / 1.034 GB, free: 0.9922 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.839e-05/0.4009, allocations: 19.98 kB / 1.034 GB, free: 0.9727 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001738/0.4011, allocations: 56.81 kB / 1.034 GB, free: 0.9141 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4011, allocations: 0 / 1.034 GB, free: 0.9141 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001941/0.4013, allocations: 69.67 kB / 1.034 GB, free: 0.8398 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.4013, allocations: 9.875 kB / 1.034 GB, free: 0.832 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.4013, allocations: 3.984 kB / 1.034 GB, free: 0.8281 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.4013, allocations: 0 / 1.034 GB, free: 0.8281 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.125e-05/0.4014, allocations: 8 kB / 1.034 GB, free: 0.8203 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.4014, allocations: 0 / 1.034 GB, free: 0.8203 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.863e-05/0.4015, allocations: 7.984 kB / 1.034 GB, free: 0.8125 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.4015, allocations: 256 / 1.034 GB, free: 0.8125 MB / 0.7794 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 9.572e-05/0.4016, allocations: 117.8 kB / 1.034 GB, free: 0.6875 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.122e-05/0.4016, allocations: 0 / 1.034 GB, free: 0.6875 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.702e-05/0.4017, allocations: 7.125 kB / 1.034 GB, free: 0.6758 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.4017, allocations: 11.97 kB / 1.034 GB, free: 0.6641 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.4017, allocations: 4 kB / 1.034 GB, free: 0.6602 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.4017, allocations: 0 / 1.034 GB, free: 0.6602 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001678/0.4019, allocations: 157.6 kB / 1.035 GB, free: 468 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.4019, allocations: 0 / 1.035 GB, free: 468 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.767e-05/0.4019, allocations: 15.98 kB / 1.035 GB, free: 452 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.4019, allocations: 0 / 1.035 GB, free: 452 kB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.402, allocations: 0 / 1.035 GB, free: 452 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.402, allocations: 7.938 kB / 1.035 GB, free: 444 kB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.402, allocations: 0 / 1.035 GB, free: 444 kB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002429/0.4022, allocations: 167.5 kB / 1.035 GB, free: 260 kB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.4023, allocations: 85.02 kB / 1.035 GB, free: 156 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.4024, allocations: 0 / 1.035 GB, free: 156 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.226e-05/0.4024, allocations: 7.984 kB / 1.035 GB, free: 148 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.032e-05/0.4025, allocations: 8 kB / 1.035 GB, free: 140 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-06/0.4025, allocations: 0 / 1.035 GB, free: 140 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.279e-05/0.4025, allocations: 83.27 kB / 1.035 GB, free: 56 kB / 0.7794 GB Notification: Performance of sort global known variables: time 1.793e-06/0.4026, allocations: 4.031 kB / 1.035 GB, free: 52 kB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000206/0.4028, allocations: 7.938 kB / 1.035 GB, free: 44 kB / 0.7794 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.0001971/0.403, allocations: 95.3 kB / 1.035 GB, free: 15.94 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002111/0.4032, allocations: 47.86 kB / 1.035 GB, free: 15.89 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4032, allocations: 0 / 1.035 GB, free: 15.89 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.828e-05/0.4033, allocations: 23.98 kB / 1.035 GB, free: 15.87 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.4036, allocations: 15.86 kB / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002942/0.4039, allocations: 115.2 kB / 1.035 GB, free: 15.71 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.4042, allocations: 0.6809 MB / 1.036 GB, free: 15.01 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.872e-05/0.4042, allocations: 4 kB / 1.036 GB, free: 15 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.161e-05/0.4043, allocations: 7.438 kB / 1.036 GB, free: 15 MB / 0.795 GB Notification: Performance of SimCode: time 3.41e-07/0.4043, allocations: 0 / 1.036 GB, free: 15 MB / 0.795 GB Notification: Performance of Templates: time 0.002613/0.4069, allocations: 347.8 kB / 1.036 GB, free: 14.66 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches