Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.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: translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001484/0.001484, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.342/1.342, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.638/2.638, allocations: 482.4 MB / 0.7553 GB, free: 6.973 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 64.33 kB / 0.9245 GB, free: 15.97 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.726/0.7279, allocations: 162.2 MB / 1.083 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006904/0.7349, allocations: 4.358 MB / 1.087 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003626/0.7385, allocations: 1.856 MB / 1.089 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005083/0.7391, allocations: 7.625 kB / 1.089 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001963/0.741, allocations: 0.5944 MB / 1.09 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0009005/0.742, allocations: 261.6 kB / 1.09 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008356/0.7428, allocations: 263 kB / 1.09 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001001/0.7438, allocations: 0.6048 MB / 1.091 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000907/0.7447, allocations: 474.5 kB / 1.091 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004987/0.7453, allocations: 245.7 kB / 1.091 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006764/0.7459, allocations: 274.2 kB / 1.092 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.7461, allocations: 36.44 kB / 1.092 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006184/0.7467, allocations: 249.5 kB / 1.092 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002398/0.7469, allocations: 153.5 kB / 1.092 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000313/0.7473, allocations: 214.9 kB / 1.092 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0009015/0.7482, allocations: 0.604 MB / 1.093 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.7482, allocations: 0 / 1.093 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.112e-06/0.7482, allocations: 0 / 1.093 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.528e-06/0.7482, allocations: 1.438 kB / 1.093 GB, free: 11.57 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001394/0.7496, allocations: 0.7199 MB / 1.094 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.7496, allocations: 9.375 kB / 1.094 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/0.7507, allocations: 155.4 kB / 1.094 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004996/0.7512, allocations: 325.5 kB / 1.094 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.325e-05/0.7513, allocations: 22.59 kB / 1.094 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.379e-05/0.7513, allocations: 34.16 kB / 1.094 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009548/0.7523, allocations: 0.5394 MB / 1.095 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.7523, allocations: 1.062 kB / 1.095 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.487e-05/0.7524, allocations: 12.59 kB / 1.095 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.503e-05/0.7524, allocations: 32.77 kB / 1.095 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006172/0.753, allocations: 390.3 kB / 1.095 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002794/0.7558, allocations: 2.405 MB / 1.097 GB, free: 8.199 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005544/0.7564, allocations: 269.1 kB / 1.098 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001776/0.7566, allocations: 112.1 kB / 1.098 GB, free: 8.031 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.7566, allocations: 7.188 kB / 1.098 GB, free: 8.027 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.7567, allocations: 31.78 kB / 1.098 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 1.573e-06/0.7567, allocations: 0 / 1.098 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of matching and sorting (n=23): time 0.002257/0.7589, allocations: 1.13 MB / 1.099 GB, free: 7.234 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.759, allocations: 53.45 kB / 1.099 GB, free: 7.172 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003485/0.7593, allocations: 303.4 kB / 1.099 GB, free: 7 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.7594, allocations: 34.83 kB / 1.099 GB, free: 6.961 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.7596, allocations: 227.5 kB / 1.099 GB, free: 6.773 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.542e-05/0.7596, allocations: 84.42 kB / 1.1 GB, free: 6.707 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.7598, allocations: 58.2 kB / 1.1 GB, free: 6.672 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001649/0.7599, allocations: 338.4 kB / 1.1 GB, free: 6.348 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.7601, allocations: 108.4 kB / 1.1 GB, free: 6.309 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002456/0.7604, allocations: 194.7 kB / 1.1 GB, free: 6.16 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004381/0.7608, allocations: 313.9 kB / 1.1 GB, free: 5.961 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.7608, allocations: 9.312 kB / 1.1 GB, free: 5.953 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007833/0.7616, allocations: 439 kB / 1.101 GB, free: 5.754 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.7616, allocations: 10.39 kB / 1.101 GB, free: 5.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.7617, allocations: 3.25 kB / 1.101 GB, free: 5.75 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003751/0.762, allocations: 99 kB / 1.101 GB, free: 5.707 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000295/0.7623, allocations: 65.31 kB / 1.101 GB, free: 5.699 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003636/0.766, allocations: 4.392 MB / 1.105 GB, free: 1.367 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002674/0.7663, allocations: 8 kB / 1.105 GB, free: 1.363 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.592e-05/0.7663, allocations: 15.44 kB / 1.105 GB, free: 1.359 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002526/0.7666, allocations: 186 kB / 1.106 GB, free: 1.207 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.098e-05/0.7666, allocations: 36.34 kB / 1.106 GB, free: 1.188 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.288e-05/0.7667, allocations: 37.22 kB / 1.106 GB, free: 1.164 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.7667, allocations: 7.469 kB / 1.106 GB, free: 1.16 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.7667, allocations: 1.125 kB / 1.106 GB, free: 1.16 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.7668, allocations: 1.547 kB / 1.106 GB, free: 1.16 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005404/0.7673, allocations: 397.1 kB / 1.106 GB, free: 0.8906 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.7673, allocations: 4 kB / 1.106 GB, free: 0.8867 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002029/0.7675, allocations: 40.25 kB / 1.106 GB, free: 0.8789 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003126/0.7678, allocations: 92.05 kB / 1.106 GB, free: 0.8398 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.841e-05/0.7679, allocations: 5.797 kB / 1.106 GB, free: 0.8359 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003448/0.7713, allocations: 4.384 MB / 1.11 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.7713, allocations: 0.6562 kB / 1.11 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009059/0.7723, allocations: 0.5607 MB / 1.111 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001688/0.7724, allocations: 124.7 kB / 1.111 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.145e-05/0.7725, allocations: 5.75 kB / 1.111 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.7727, allocations: 11.45 kB / 1.111 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.446e-05/0.7728, allocations: 23.61 kB / 1.111 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.7728, allocations: 8.781 kB / 1.111 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002515/0.773, allocations: 208.8 kB / 1.111 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.434e-06/0.773, allocations: 0 / 1.111 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005292/0.7736, allocations: 107.1 kB / 1.111 GB, free: 11.92 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001531/0.7737, allocations: 101.2 kB / 1.112 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009326/0.7747, allocations: 0.6267 MB / 1.112 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.7747, allocations: 0 / 1.112 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0005298/0.7752, allocations: 475.7 kB / 1.113 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005249/0.7758, allocations: 88.14 kB / 1.113 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.7771, allocations: 0.7618 MB / 1.113 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005198/0.7776, allocations: 0.8315 MB / 1.114 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.57e-05/0.7777, allocations: 25.31 kB / 1.114 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.7777, allocations: 0 / 1.114 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of Templates: time 0.01456/0.7923, allocations: 8.655 MB / 1.123 GB, free: 7.965 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches