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 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.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.001435/0.001435, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 196 kB / 16.79 MB, free: 6.809 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.458/1.458, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.889/2.889, allocations: 461.8 MB / 0.7348 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 66.45 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3238, allocations: 157.4 MB / 1.053 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006823/0.3307, allocations: 4.395 MB / 1.057 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003223/0.334, allocations: 1.866 MB / 1.059 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003982/0.3344, allocations: 11.94 kB / 1.059 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001701/0.3362, allocations: 0.5607 MB / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000741/0.3369, allocations: 242.9 kB / 1.06 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006817/0.3376, allocations: 230 kB / 1.06 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0009299/0.3386, allocations: 0.8452 MB / 1.061 GB, free: 160 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005491/0.3391, allocations: 303 kB / 1.061 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003632/0.3395, allocations: 211.1 kB / 1.061 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005594/0.3401, allocations: 290.9 kB / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.565e-05/0.3402, allocations: 27.94 kB / 1.061 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006213/0.3408, allocations: 315.4 kB / 1.062 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001868/0.341, allocations: 139.6 kB / 1.062 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002779/0.3413, allocations: 202.9 kB / 1.062 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006256/0.3419, allocations: 479.1 kB / 1.063 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3419, allocations: 0 / 1.063 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.32e-07/0.3419, allocations: 0 / 1.063 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.904e-05/0.342, allocations: 0 / 1.063 GB, free: 14.23 MB / 0.8262 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.001477/0.3435, allocations: 0.7213 MB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.3435, allocations: 12.03 kB / 1.063 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001102/0.3446, allocations: 148.3 kB / 1.063 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004995/0.3451, allocations: 330.4 kB / 1.064 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.844e-05/0.3452, allocations: 25.38 kB / 1.064 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.609e-05/0.3452, allocations: 36.36 kB / 1.064 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008483/0.3461, allocations: 0.5356 MB / 1.064 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.3461, allocations: 0 / 1.064 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.478e-05/0.3462, allocations: 16 kB / 1.064 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.002e-05/0.3462, allocations: 28.64 kB / 1.064 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006202/0.3469, allocations: 386.3 kB / 1.065 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002746/0.3496, allocations: 2.415 MB / 1.067 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005371/0.3502, allocations: 262.5 kB / 1.067 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.3504, allocations: 108.8 kB / 1.067 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.48e-05/0.3504, allocations: 0 / 1.067 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.3504, allocations: 38.56 kB / 1.067 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 1.212e-06/0.3504, allocations: 0 / 1.067 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.00225/0.3527, allocations: 1.12 MB / 1.069 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/0.3527, allocations: 51.41 kB / 1.069 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000321/0.353, allocations: 308.3 kB / 1.069 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.3531, allocations: 33.7 kB / 1.069 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/0.3532, allocations: 227.6 kB / 1.069 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.501e-05/0.3533, allocations: 86.83 kB / 1.069 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.3534, allocations: 69.88 kB / 1.069 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.3535, allocations: 334.8 kB / 1.07 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/0.3537, allocations: 104.6 kB / 1.07 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002172/0.3539, allocations: 195.7 kB / 1.07 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003998/0.3544, allocations: 315.4 kB / 1.07 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3544, allocations: 4 kB / 1.07 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007793/0.3551, allocations: 441.7 kB / 1.071 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.3552, allocations: 9.562 kB / 1.071 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3552, allocations: 4.281 kB / 1.071 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003985/0.3556, allocations: 98.5 kB / 1.071 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002802/0.3559, allocations: 63.91 kB / 1.071 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003135/0.359, allocations: 4.076 MB / 1.075 GB, free: 0.6875 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002488/0.3593, allocations: 11.98 kB / 1.075 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.575e-05/0.3593, allocations: 12 kB / 1.075 GB, free: 0.6641 MB / 0.8262 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.0002133/0.3596, allocations: 181.7 kB / 1.075 GB, free: 488 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.17e-05/0.3596, allocations: 31.72 kB / 1.075 GB, free: 456 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.362e-05/0.3597, allocations: 38.31 kB / 1.075 GB, free: 420 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.3597, allocations: 4 kB / 1.075 GB, free: 416 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.3598, allocations: 3.938 kB / 1.075 GB, free: 412 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.3598, allocations: 0 / 1.075 GB, free: 412 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004843/0.3602, allocations: 401.3 kB / 1.075 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3603, allocations: 0 / 1.075 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002033/0.3605, allocations: 35.97 kB / 1.075 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000332/0.3608, allocations: 98.44 kB / 1.076 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.302e-05/0.3608, allocations: 8 kB / 1.076 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002916/0.3638, allocations: 4.068 MB / 1.08 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3638, allocations: 0 / 1.08 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000848/0.3646, allocations: 0.5548 MB / 1.08 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001424/0.3648, allocations: 128.8 kB / 1.08 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.254e-05/0.3648, allocations: 4.156 kB / 1.08 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.3651, allocations: 12 kB / 1.08 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.473e-05/0.3651, allocations: 23.91 kB / 1.08 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.3652, allocations: 4 kB / 1.08 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002208/0.3654, allocations: 215.1 kB / 1.08 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3654, allocations: 0 / 1.08 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005418/0.3659, allocations: 96 kB / 1.081 GB, free: 10.28 MB / 0.8419 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.0001541/0.3661, allocations: 103.2 kB / 1.081 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001038/0.3671, allocations: 0.6093 MB / 1.081 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3672, allocations: 0 / 1.081 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000536/0.3677, allocations: 471.9 kB / 1.082 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005979/0.3683, allocations: 83.8 kB / 1.082 GB, free: 8.938 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.37, allocations: 0.8982 MB / 1.083 GB, free: 8.008 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004607/0.3704, allocations: 0.8309 MB / 1.083 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.64e-05/0.3705, allocations: 23.44 kB / 1.083 GB, free: 7.125 MB / 0.8419 GB Notification: Performance of SimCode: time 7.31e-07/0.3705, allocations: 4 kB / 1.083 GB, free: 7.121 MB / 0.8419 GB Notification: Performance of Templates: time 0.01171/0.3822, allocations: 8.649 MB / 1.092 GB, free: 14.48 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=480 -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