Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.005707/0.005707, allocations: 104.6 kB / 15.74 MB, free: 6.492 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.00113/0.001131, allocations: 190.1 kB / 16.67 MB, free: 6.379 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.536/2.536, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001875, allocations: 62.16 kB / 0.9508 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3378, allocations: 140.4 MB / 1.088 GB, free: 1.574 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005924/0.3438, allocations: 4.353 MB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003159/0.3469, allocations: 1.862 MB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003243/0.3473, allocations: 11.94 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001847/0.3492, allocations: 0.5965 MB / 1.095 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0007759/0.35, allocations: 266.5 kB / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007654/0.3508, allocations: 249.9 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007861/0.3516, allocations: 0.611 MB / 1.096 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007115/0.3523, allocations: 466.8 kB / 1.096 GB, free: 9.148 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002727/0.3526, allocations: 251.1 kB / 1.096 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004408/0.353, allocations: 267 kB / 1.097 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.276e-05/0.3531, allocations: 36 kB / 1.097 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005114/0.3536, allocations: 255.5 kB / 1.097 GB, free: 8.355 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000161/0.3538, allocations: 159.5 kB / 1.097 GB, free: 8.199 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002331/0.354, allocations: 219 kB / 1.097 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007264/0.3548, allocations: 0.5997 MB / 1.098 GB, free: 7.383 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3548, allocations: 0 / 1.098 GB, free: 7.383 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3548, allocations: 4 kB / 1.098 GB, free: 7.379 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.708e-06/0.3548, allocations: 0 / 1.098 GB, free: 7.379 MB / 0.8575 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.001298/0.3561, allocations: 0.7291 MB / 1.099 GB, free: 6.598 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.3562, allocations: 8.031 kB / 1.099 GB, free: 6.59 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009466/0.3571, allocations: 148.2 kB / 1.099 GB, free: 6.445 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005202/0.3577, allocations: 342.4 kB / 1.099 GB, free: 6.074 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.292e-05/0.3577, allocations: 25.38 kB / 1.099 GB, free: 6.051 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.731e-05/0.3578, allocations: 36.36 kB / 1.099 GB, free: 6.016 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008297/0.3586, allocations: 0.5356 MB / 1.1 GB, free: 5.441 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.3586, allocations: 0 / 1.1 GB, free: 5.441 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.508e-05/0.3587, allocations: 16 kB / 1.1 GB, free: 5.426 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.043e-05/0.3588, allocations: 28.64 kB / 1.1 GB, free: 5.398 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005975/0.3594, allocations: 386.3 kB / 1.1 GB, free: 5.02 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00272/0.3621, allocations: 2.399 MB / 1.102 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005795/0.3627, allocations: 270.3 kB / 1.103 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/0.3629, allocations: 112.8 kB / 1.103 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.3629, allocations: 0 / 1.103 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.3629, allocations: 38.56 kB / 1.103 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=20): time 1.302e-06/0.3629, allocations: 0 / 1.103 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23): time 0.00224/0.3652, allocations: 1.125 MB / 1.104 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.3652, allocations: 55.41 kB / 1.104 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003227/0.3656, allocations: 304.3 kB / 1.104 GB, free: 388 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.3656, allocations: 33.7 kB / 1.104 GB, free: 348 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.3658, allocations: 231.6 kB / 1.104 GB, free: 112 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.459e-05/0.3658, allocations: 82.84 kB / 1.105 GB, free: 28 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.366, allocations: 61.94 kB / 1.105 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001739/0.3661, allocations: 342.8 kB / 1.105 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.3663, allocations: 104.6 kB / 1.105 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002391/0.3666, allocations: 187.7 kB / 1.105 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004403/0.367, allocations: 315.5 kB / 1.105 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.367, allocations: 0 / 1.105 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007682/0.3678, allocations: 445.7 kB / 1.106 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.3678, allocations: 8 kB / 1.106 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.3678, allocations: 8 kB / 1.106 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003691/0.3682, allocations: 98.84 kB / 1.106 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.3685, allocations: 59.91 kB / 1.106 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00338/0.3719, allocations: 4.391 MB / 1.11 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/0.3721, allocations: 16.03 kB / 1.11 GB, free: 9.484 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.3722, allocations: 12.16 kB / 1.11 GB, free: 9.473 MB / 0.8731 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.0002231/0.3724, allocations: 173.8 kB / 1.111 GB, free: 9.293 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.361e-05/0.3725, allocations: 35.56 kB / 1.111 GB, free: 9.258 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.269e-05/0.3725, allocations: 42.31 kB / 1.111 GB, free: 9.219 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3725, allocations: 7.984 kB / 1.111 GB, free: 9.211 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.3726, allocations: 0 / 1.111 GB, free: 9.211 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.3726, allocations: 4.094 kB / 1.111 GB, free: 9.207 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004627/0.373, allocations: 401.4 kB / 1.111 GB, free: 8.766 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-06/0.373, allocations: 7.922 kB / 1.111 GB, free: 8.758 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.3732, allocations: 35.92 kB / 1.111 GB, free: 8.723 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002951/0.3735, allocations: 94.44 kB / 1.111 GB, free: 8.621 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.3736, allocations: 11.98 kB / 1.111 GB, free: 8.609 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003374/0.3769, allocations: 4.368 MB / 1.115 GB, free: 3.816 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.377, allocations: 4.031 kB / 1.115 GB, free: 3.812 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008285/0.3778, allocations: 0.5655 MB / 1.116 GB, free: 3.223 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001475/0.378, allocations: 124.7 kB / 1.116 GB, free: 3.082 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.39e-05/0.378, allocations: 11.94 kB / 1.116 GB, free: 3.07 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001923/0.3782, allocations: 8 kB / 1.116 GB, free: 3.062 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.181e-05/0.3783, allocations: 19.97 kB / 1.116 GB, free: 3.043 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.3783, allocations: 8 kB / 1.116 GB, free: 3.035 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002275/0.3785, allocations: 207.1 kB / 1.116 GB, free: 2.836 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3785, allocations: 0 / 1.116 GB, free: 2.836 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004868/0.379, allocations: 104 kB / 1.116 GB, free: 2.734 MB / 0.8731 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.0001441/0.3792, allocations: 111.7 kB / 1.117 GB, free: 2.617 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0009189/0.3801, allocations: 0.6017 MB / 1.117 GB, free: 1.977 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3801, allocations: 0 / 1.117 GB, free: 1.977 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004936/0.3806, allocations: 465.8 kB / 1.118 GB, free: 1.484 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004914/0.3811, allocations: 79.44 kB / 1.118 GB, free: 1.41 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.3826, allocations: 0.7038 MB / 1.118 GB, free: 0.6836 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005361/0.3831, allocations: 0.835 MB / 1.119 GB, free: 15.82 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002141/0.3833, allocations: 62.92 kB / 1.119 GB, free: 15.75 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.999e-05/0.3834, allocations: 23.44 kB / 1.119 GB, free: 15.73 MB / 0.8887 GB Notification: Performance of SimCode: time 3.81e-07/0.3834, allocations: 0 / 1.119 GB, free: 15.73 MB / 0.8887 GB Notification: Performance of Templates: time 0.009952/0.3934, allocations: 4.576 MB / 1.124 GB, free: 11.2 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches