Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008146/0.008145, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001641/0.001641, allocations: 192.7 kB / 16.67 MB, free: 5.969 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.377/2.377, allocations: 390.2 MB / 0.6648 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 63.88 kB / 0.9508 GB, free: 7.719 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.996/0.9974, allocations: 140.4 MB / 1.088 GB, free: 5.555 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005086/1.003, allocations: 3.074 MB / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0025/1.005, allocations: 1.33 MB / 1.092 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/1.005, allocations: 8.781 kB / 1.092 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001147/1.006, allocations: 331.7 kB / 1.093 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004246/1.007, allocations: 144.4 kB / 1.093 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005018/1.007, allocations: 139.5 kB / 1.093 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005212/1.008, allocations: 304.9 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005736/1.008, allocations: 238.2 kB / 1.093 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002341/1.009, allocations: 125.6 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004135/1.009, allocations: 138.9 kB / 1.094 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.616e-05/1.009, allocations: 18.84 kB / 1.094 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004502/1.01, allocations: 168.4 kB / 1.094 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001201/1.01, allocations: 82.53 kB / 1.094 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001457/1.01, allocations: 109.8 kB / 1.094 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006189/1.011, allocations: 334.9 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/1.011, allocations: 0 / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.134e-06/1.011, allocations: 4.594 kB / 1.094 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.677e-06/1.011, allocations: 0 / 1.094 GB, free: 1.586 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001013/1.012, allocations: 0.5216 MB / 1.095 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/1.012, allocations: 9.531 kB / 1.095 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007043/1.012, allocations: 80.14 kB / 1.095 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003624/1.013, allocations: 249.8 kB / 1.095 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.136e-05/1.013, allocations: 16.56 kB / 1.095 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.09e-05/1.013, allocations: 16.22 kB / 1.095 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006873/1.014, allocations: 303.7 kB / 1.095 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/1.014, allocations: 4 kB / 1.095 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/1.014, allocations: 11.3 kB / 1.095 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.365e-05/1.014, allocations: 19.95 kB / 1.095 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004449/1.014, allocations: 193.9 kB / 1.096 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002148/1.016, allocations: 1.457 MB / 1.097 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000359/1.017, allocations: 177.4 kB / 1.097 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.772e-05/1.017, allocations: 36.22 kB / 1.097 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 8.946e-06/1.017, allocations: 0 / 1.097 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/1.017, allocations: 36.95 kB / 1.097 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/1.017, allocations: 0 / 1.097 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of matching and sorting (n=7): time 0.000627/1.017, allocations: 227 kB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.965e-05/1.018, allocations: 56.44 kB / 1.098 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003135/1.018, allocations: 198.2 kB / 1.098 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/1.018, allocations: 27.56 kB / 1.098 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/1.018, allocations: 166.2 kB / 1.098 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 2.831e-05/1.018, allocations: 26.12 kB / 1.098 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.418e-05/1.018, allocations: 39.3 kB / 1.098 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001491/1.018, allocations: 327 kB / 1.098 GB, free: 14.15 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.159e-05/1.018, allocations: 36.19 kB / 1.098 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/1.019, allocations: 104.4 kB / 1.098 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002314/1.019, allocations: 144.4 kB / 1.099 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/1.019, allocations: 1.188 kB / 1.099 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003771/1.019, allocations: 196.1 kB / 1.099 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/1.019, allocations: 7.812 kB / 1.099 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/1.019, allocations: 2.469 kB / 1.099 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002138/1.019, allocations: 26.44 kB / 1.099 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/1.02, allocations: 32.98 kB / 1.099 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00128/1.021, allocations: 1.428 MB / 1.1 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/1.021, allocations: 16.67 kB / 1.1 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/1.021, allocations: 6.188 kB / 1.1 GB, free: 12.35 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001713/1.021, allocations: 148.1 kB / 1.1 GB, free: 12.21 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.378e-05/1.021, allocations: 15.39 kB / 1.1 GB, free: 12.21 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.529e-05/1.021, allocations: 19.78 kB / 1.1 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/1.021, allocations: 5.031 kB / 1.1 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/1.021, allocations: 0.6094 kB / 1.1 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/1.021, allocations: 5.781 kB / 1.1 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005941/1.022, allocations: 439.7 kB / 1.101 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/1.022, allocations: 0 / 1.101 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.158e-05/1.022, allocations: 11.48 kB / 1.101 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.963e-05/1.022, allocations: 22.94 kB / 1.101 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/1.022, allocations: 1.438 kB / 1.101 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001144/1.023, allocations: 1.412 MB / 1.102 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/1.023, allocations: 5.062 kB / 1.102 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002861/1.024, allocations: 215.7 kB / 1.102 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/1.024, allocations: 98.03 kB / 1.103 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/1.024, allocations: 1.844 kB / 1.103 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/1.024, allocations: 3.547 kB / 1.103 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.934e-05/1.024, allocations: 8.344 kB / 1.103 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/1.024, allocations: 10.56 kB / 1.103 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001726/1.024, allocations: 143.2 kB / 1.103 GB, free: 10 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.01e-07/1.024, allocations: 3.938 kB / 1.103 GB, free: 9.996 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004004/1.024, allocations: 52.33 kB / 1.103 GB, free: 9.984 MB / 0.8731 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000198/1.025, allocations: 103.2 kB / 1.103 GB, free: 9.891 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005321/1.025, allocations: 213.5 kB / 1.103 GB, free: 9.742 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/1.025, allocations: 0 / 1.103 GB, free: 9.742 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003056/1.026, allocations: 153.4 kB / 1.103 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004466/1.026, allocations: 40.47 kB / 1.103 GB, free: 9.594 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007784/1.027, allocations: 357.5 kB / 1.104 GB, free: 9.367 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004563/1.027, allocations: 0.7466 MB / 1.104 GB, free: 8.664 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001171/1.027, allocations: 28.73 kB / 1.104 GB, free: 8.652 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.662e-05/1.027, allocations: 14.56 kB / 1.104 GB, free: 8.645 MB / 0.8731 GB Notification: Performance of SimCode: time 5.61e-07/1.027, allocations: 0 / 1.104 GB, free: 8.645 MB / 0.8731 GB Notification: Performance of Templates: time 0.006177/1.034, allocations: 1.774 MB / 1.106 GB, free: 8.488 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches