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.001357/0.001358, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001323/0.001323, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.36/1.36, allocations: 222.9 MB / 241 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.346/2.346, allocations: 390.3 MB / 0.6655 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 67.89 kB / 0.9515 GB, free: 7.695 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7836/0.785, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004284/0.7893, allocations: 3.084 MB / 1.092 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002147/0.7915, allocations: 1.33 MB / 1.093 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001941/0.7917, allocations: 4.5 kB / 1.093 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.7928, allocations: 328.3 kB / 1.093 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004326/0.7932, allocations: 142.8 kB / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004354/0.7937, allocations: 136.5 kB / 1.093 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004183/0.7941, allocations: 308 kB / 1.094 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004863/0.7946, allocations: 237.8 kB / 1.094 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.7948, allocations: 129.6 kB / 1.094 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003126/0.7951, allocations: 139.6 kB / 1.094 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.336e-05/0.7952, allocations: 22.22 kB / 1.094 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003837/0.7956, allocations: 164.9 kB / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.7957, allocations: 78.28 kB / 1.095 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.7958, allocations: 113.9 kB / 1.095 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005394/0.7963, allocations: 336.1 kB / 1.095 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.7964, allocations: 0.5938 kB / 1.095 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.382e-06/0.7964, allocations: 0 / 1.095 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.7964, allocations: 5.156 kB / 1.095 GB, free: 1.566 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.0008595/0.7972, allocations: 0.5135 MB / 1.095 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.7973, allocations: 9.062 kB / 1.095 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006464/0.7979, allocations: 84.5 kB / 1.096 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003434/0.7983, allocations: 245.3 kB / 1.096 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.7983, allocations: 20.23 kB / 1.096 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.281e-05/0.7984, allocations: 16.25 kB / 1.096 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000533/0.7989, allocations: 295.2 kB / 1.096 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.7989, allocations: 9.906 kB / 1.096 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.95e-05/0.799, allocations: 10 kB / 1.096 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.202e-05/0.799, allocations: 16.27 kB / 1.096 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003452/0.7994, allocations: 193.1 kB / 1.096 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001477/0.8009, allocations: 1.457 MB / 1.098 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.8011, allocations: 173.8 kB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.524e-05/0.8012, allocations: 43.09 kB / 1.098 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.286e-05/0.8012, allocations: 1.156 kB / 1.098 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.8013, allocations: 32.06 kB / 1.098 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.8013, allocations: 0.9062 kB / 1.098 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of matching and sorting (n=7): time 0.0005025/0.8018, allocations: 222.8 kB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.8018, allocations: 57.3 kB / 1.098 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002141/0.8021, allocations: 193.8 kB / 1.098 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.8021, allocations: 26.77 kB / 1.098 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.8022, allocations: 169.9 kB / 1.099 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.8023, allocations: 26.45 kB / 1.099 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.317e-05/0.8023, allocations: 35.27 kB / 1.099 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000104/0.8024, allocations: 330.2 kB / 1.099 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.864e-05/0.8025, allocations: 32.89 kB / 1.099 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.8026, allocations: 100.8 kB / 1.099 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.8028, allocations: 152.5 kB / 1.099 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.8028, allocations: 0 / 1.099 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003356/0.8032, allocations: 191.7 kB / 1.099 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.8032, allocations: 6.312 kB / 1.099 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.8032, allocations: 6.422 kB / 1.099 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001625/0.8034, allocations: 26.45 kB / 1.099 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.8035, allocations: 25.5 kB / 1.099 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/0.8046, allocations: 1.415 MB / 1.101 GB, free: 12.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.8047, allocations: 26.88 kB / 1.101 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.8047, allocations: 5.531 kB / 1.101 GB, free: 12.36 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.0001482/0.8049, allocations: 152.1 kB / 1.101 GB, free: 12.22 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.372e-05/0.805, allocations: 14.47 kB / 1.101 GB, free: 12.21 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.955e-05/0.805, allocations: 19.73 kB / 1.101 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.805, allocations: 5.266 kB / 1.101 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.805, allocations: 0.7188 kB / 1.101 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.805, allocations: 0.6719 kB / 1.101 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005453/0.8056, allocations: 457.3 kB / 1.102 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.8056, allocations: 0 / 1.102 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.991e-05/0.8056, allocations: 7.875 kB / 1.102 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.938e-05/0.8057, allocations: 18.78 kB / 1.102 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.8058, allocations: 5.734 kB / 1.102 GB, free: 11.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009963/0.8068, allocations: 1.416 MB / 1.103 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.8068, allocations: 160 / 1.103 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002453/0.807, allocations: 215.8 kB / 1.103 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.496e-05/0.8071, allocations: 98.77 kB / 1.103 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.8071, allocations: 0.8438 kB / 1.103 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.8073, allocations: 7.922 kB / 1.103 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.851e-05/0.8073, allocations: 4.766 kB / 1.103 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.832e-06/0.8073, allocations: 1.844 kB / 1.103 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001425/0.8075, allocations: 151.3 kB / 1.103 GB, free: 9.996 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8075, allocations: 0 / 1.103 GB, free: 9.996 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003724/0.8079, allocations: 56.41 kB / 1.103 GB, free: 9.98 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.0001139/0.808, allocations: 99.06 kB / 1.104 GB, free: 9.891 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003841/0.8084, allocations: 217.3 kB / 1.104 GB, free: 9.738 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.8084, allocations: 1.156 kB / 1.104 GB, free: 9.738 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001676/0.8086, allocations: 152.5 kB / 1.104 GB, free: 9.609 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003933/0.809, allocations: 30.73 kB / 1.104 GB, free: 9.602 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000695/0.8097, allocations: 386.3 kB / 1.104 GB, free: 9.344 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.81, allocations: 0.7477 MB / 1.105 GB, free: 8.641 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.171e-05/0.81, allocations: 15.78 kB / 1.105 GB, free: 8.633 MB / 0.8731 GB Notification: Performance of SimCode: time 2.5e-07/0.81, allocations: 0 / 1.105 GB, free: 8.633 MB / 0.8731 GB Notification: Performance of Templates: time 0.009135/0.8192, allocations: 2.984 MB / 1.108 GB, free: 8.387 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/jenkins1/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