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.007704/0.007704, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001704/0.001704, allocations: 190.6 kB / 16.67 MB, free: 5.93 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.28/2.28, allocations: 390.2 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 63.84 kB / 0.9508 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.075/1.076, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005964/1.082, allocations: 4.355 MB / 1.092 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002966/1.085, allocations: 1.858 MB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002105/1.086, allocations: 12.22 kB / 1.094 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001602/1.087, allocations: 0.6069 MB / 1.095 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005774/1.088, allocations: 257.1 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006684/1.088, allocations: 254 kB / 1.095 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007307/1.089, allocations: 0.6119 MB / 1.096 GB, free: 368 kB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007607/1.09, allocations: 470.1 kB / 1.096 GB, free: 168 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003305/1.09, allocations: 252.9 kB / 1.096 GB, free: 56 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005462/1.091, allocations: 269.8 kB / 1.097 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 7.96e-05/1.091, allocations: 36.62 kB / 1.097 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005566/1.092, allocations: 253.6 kB / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001992/1.092, allocations: 153.9 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002691/1.092, allocations: 211.5 kB / 1.097 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001072/1.093, allocations: 0.6134 MB / 1.098 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/1.093, allocations: 0 / 1.098 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.643e-06/1.093, allocations: 0 / 1.098 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 9.869e-06/1.093, allocations: 1.219 kB / 1.098 GB, free: 15.46 MB / 0.8731 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.001404/1.095, allocations: 0.7248 MB / 1.099 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/1.095, allocations: 10 kB / 1.099 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/1.096, allocations: 150.5 kB / 1.099 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005064/1.096, allocations: 331.1 kB / 1.099 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/1.096, allocations: 30.8 kB / 1.099 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.82e-05/1.096, allocations: 34.75 kB / 1.099 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009009/1.097, allocations: 0.5317 MB / 1.1 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/1.097, allocations: 3.938 kB / 1.1 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.57e-05/1.097, allocations: 20.81 kB / 1.1 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.828e-05/1.097, allocations: 29.09 kB / 1.1 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006558/1.098, allocations: 390.2 kB / 1.1 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002889/1.101, allocations: 2.405 MB / 1.102 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005313/1.101, allocations: 253.2 kB / 1.103 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002356/1.102, allocations: 118.8 kB / 1.103 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/1.102, allocations: 3.156 kB / 1.103 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/1.102, allocations: 32.62 kB / 1.103 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=20): time 1.282e-06/1.102, allocations: 0 / 1.103 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23): time 0.002371/1.104, allocations: 1.129 MB / 1.104 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/1.104, allocations: 52.75 kB / 1.104 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003263/1.104, allocations: 303.2 kB / 1.104 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.863e-05/1.105, allocations: 31.8 kB / 1.104 GB, free: 10.85 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/1.105, allocations: 230.9 kB / 1.104 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.82e-05/1.105, allocations: 81.36 kB / 1.105 GB, free: 10.6 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/1.105, allocations: 60.98 kB / 1.105 GB, free: 10.55 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001758/1.105, allocations: 343.3 kB / 1.105 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/1.105, allocations: 104.6 kB / 1.105 GB, free: 10.19 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000333/1.106, allocations: 186.2 kB / 1.105 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004458/1.106, allocations: 323.2 kB / 1.105 GB, free: 9.84 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/1.106, allocations: 1.406 kB / 1.105 GB, free: 9.84 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008574/1.107, allocations: 441.7 kB / 1.106 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/1.107, allocations: 7.281 kB / 1.106 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/1.107, allocations: 1.406 kB / 1.106 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003827/1.107, allocations: 101.4 kB / 1.106 GB, free: 9.594 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002851/1.108, allocations: 59.95 kB / 1.106 GB, free: 9.59 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003813/1.111, allocations: 4.391 MB / 1.11 GB, free: 5.258 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002598/1.112, allocations: 14.41 kB / 1.11 GB, free: 5.25 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.472e-05/1.112, allocations: 13.28 kB / 1.11 GB, free: 5.246 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.000233/1.112, allocations: 182.4 kB / 1.111 GB, free: 5.098 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.556e-05/1.112, allocations: 34.66 kB / 1.111 GB, free: 5.078 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001324/1.112, allocations: 41.56 kB / 1.111 GB, free: 5.051 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/1.112, allocations: 2.312 kB / 1.111 GB, free: 5.051 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/1.112, allocations: 2.953 kB / 1.111 GB, free: 5.051 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/1.112, allocations: 1.172 kB / 1.111 GB, free: 5.051 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006618/1.113, allocations: 396.4 kB / 1.111 GB, free: 4.781 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/1.113, allocations: 1.031 kB / 1.111 GB, free: 4.781 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002492/1.113, allocations: 44.41 kB / 1.111 GB, free: 4.77 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004182/1.114, allocations: 91.84 kB / 1.111 GB, free: 4.73 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/1.114, allocations: 5.844 kB / 1.111 GB, free: 4.727 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005034/1.119, allocations: 4.387 MB / 1.115 GB, free: 404 kB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.119, allocations: 1.438 kB / 1.115 GB, free: 404 kB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001505/1.12, allocations: 0.564 MB / 1.116 GB, free: 72 kB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00031/1.121, allocations: 124.5 kB / 1.116 GB, free: 15.95 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.029e-05/1.121, allocations: 5.984 kB / 1.116 GB, free: 15.95 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003396/1.121, allocations: 16.66 kB / 1.116 GB, free: 15.94 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/1.121, allocations: 18.52 kB / 1.116 GB, free: 15.94 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/1.121, allocations: 4.156 kB / 1.116 GB, free: 15.94 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0003724/1.122, allocations: 210 kB / 1.116 GB, free: 15.82 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.41e-07/1.122, allocations: 0 / 1.116 GB, free: 15.82 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0009318/1.122, allocations: 102.2 kB / 1.116 GB, free: 15.81 MB / 0.8887 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.0001894/1.123, allocations: 113 kB / 1.117 GB, free: 15.71 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001353/1.124, allocations: 0.5989 MB / 1.117 GB, free: 15.29 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/1.124, allocations: 1.219 kB / 1.117 GB, free: 15.29 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0008875/1.125, allocations: 472.6 kB / 1.118 GB, free: 14.9 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008316/1.126, allocations: 82.95 kB / 1.118 GB, free: 14.87 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/1.128, allocations: 0.7103 MB / 1.118 GB, free: 14.46 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006482/1.128, allocations: 0.8351 MB / 1.119 GB, free: 13.73 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0003221/1.129, allocations: 57.42 kB / 1.119 GB, free: 13.72 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/1.129, allocations: 23.78 kB / 1.119 GB, free: 13.71 MB / 0.8887 GB Notification: Performance of SimCode: time 9.61e-07/1.129, allocations: 0 / 1.119 GB, free: 13.71 MB / 0.8887 GB Notification: Performance of Templates: time 0.01246/1.141, allocations: 4.482 MB / 1.124 GB, free: 13.41 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