Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001182/0.001182, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001181/0.001181, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.418/1.418, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.685/2.685, allocations: 437 MB / 0.71 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 55.91 kB / 0.8687 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7038/0.7052, allocations: 151.6 MB / 1.017 GB, free: 2.719 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004618/0.7098, allocations: 3.12 MB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00194/0.7118, allocations: 1.332 MB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.7119, allocations: 4 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009416/0.7129, allocations: 311 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002929/0.7132, allocations: 131.4 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003143/0.7135, allocations: 127.7 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003182/0.7138, allocations: 303 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004496/0.7143, allocations: 270.8 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.7144, allocations: 115.6 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002687/0.7147, allocations: 147.5 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.903e-05/0.7148, allocations: 19.94 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002607/0.715, allocations: 167.6 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.983e-05/0.7151, allocations: 83.78 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.7152, allocations: 107.5 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003895/0.7156, allocations: 346.9 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.7157, allocations: 3.938 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.262e-06/0.7157, allocations: 0 / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.7157, allocations: 4 kB / 1.023 GB, free: 12.14 MB / 0.7794 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.0007096/0.7164, allocations: 0.5107 MB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.7164, allocations: 8.031 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005628/0.717, allocations: 84.58 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002561/0.7173, allocations: 237.5 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.7173, allocations: 20.72 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.98e-05/0.7173, allocations: 16.38 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004251/0.7178, allocations: 307.4 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.7178, allocations: 0 / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.375e-05/0.7178, allocations: 4 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.623e-05/0.7178, allocations: 24.36 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003012/0.7182, allocations: 196.9 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001426/0.7196, allocations: 1.456 MB / 1.026 GB, free: 9.031 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.7199, allocations: 179.7 kB / 1.026 GB, free: 8.828 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.132e-05/0.7199, allocations: 36.83 kB / 1.026 GB, free: 8.789 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.098e-05/0.7199, allocations: 0 / 1.026 GB, free: 8.789 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.72, allocations: 42.56 kB / 1.026 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.72, allocations: 0 / 1.026 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004497/0.7204, allocations: 223.3 kB / 1.026 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.7205, allocations: 51.41 kB / 1.026 GB, free: 8.43 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001878/0.7207, allocations: 203.4 kB / 1.027 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.7207, allocations: 25.7 kB / 1.027 GB, free: 8.191 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.06e-05/0.7208, allocations: 171.7 kB / 1.027 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.713e-05/0.7208, allocations: 23.66 kB / 1.027 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.799e-05/0.7209, allocations: 41.61 kB / 1.027 GB, free: 7.949 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.721, allocations: 326.8 kB / 1.027 GB, free: 7.621 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.6e-05/0.7211, allocations: 35.98 kB / 1.027 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.7212, allocations: 106.1 kB / 1.027 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/0.7214, allocations: 144.4 kB / 1.027 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.7214, allocations: 0 / 1.027 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003039/0.7217, allocations: 194.3 kB / 1.028 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.7217, allocations: 4 kB / 1.028 GB, free: 7.078 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.7218, allocations: 4.094 kB / 1.028 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000167/0.7219, allocations: 28.78 kB / 1.028 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.7221, allocations: 27.92 kB / 1.028 GB, free: 7.016 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.7232, allocations: 1.422 MB / 1.029 GB, free: 5.457 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.7233, allocations: 23.84 kB / 1.029 GB, free: 5.434 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.7233, allocations: 12 kB / 1.029 GB, free: 5.422 MB / 0.7794 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.0001339/0.7234, allocations: 149.7 kB / 1.029 GB, free: 5.266 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.889e-05/0.7235, allocations: 11.81 kB / 1.029 GB, free: 5.254 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.221e-05/0.7235, allocations: 17.41 kB / 1.029 GB, free: 5.238 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.7235, allocations: 4 kB / 1.029 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.7235, allocations: 0 / 1.029 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.7236, allocations: 0 / 1.029 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005219/0.7241, allocations: 451.3 kB / 1.03 GB, free: 4.734 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.7241, allocations: 0 / 1.03 GB, free: 4.734 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.002e-05/0.7241, allocations: 7.938 kB / 1.03 GB, free: 4.727 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.908e-05/0.7242, allocations: 24.84 kB / 1.03 GB, free: 4.699 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.7242, allocations: 3.984 kB / 1.03 GB, free: 4.695 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009704/0.7252, allocations: 1.422 MB / 1.031 GB, free: 3.125 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.7252, allocations: 0 / 1.031 GB, free: 3.125 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002203/0.7255, allocations: 208.3 kB / 1.031 GB, free: 2.902 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.923e-05/0.7256, allocations: 100.8 kB / 1.031 GB, free: 2.785 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.7256, allocations: 0 / 1.031 GB, free: 2.785 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.7257, allocations: 4 kB / 1.031 GB, free: 2.781 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.738e-05/0.7257, allocations: 11.92 kB / 1.031 GB, free: 2.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.234e-06/0.7257, allocations: 12 kB / 1.032 GB, free: 2.758 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001183/0.7259, allocations: 139.2 kB / 1.032 GB, free: 2.621 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7259, allocations: 0 / 1.032 GB, free: 2.621 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003506/0.7262, allocations: 51.84 kB / 1.032 GB, free: 2.57 MB / 0.7794 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.0001041/0.7263, allocations: 103.2 kB / 1.032 GB, free: 2.461 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003592/0.7267, allocations: 218.7 kB / 1.032 GB, free: 2.234 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.7267, allocations: 0 / 1.032 GB, free: 2.234 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.7269, allocations: 150.6 kB / 1.032 GB, free: 2.074 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003495/0.7273, allocations: 30.28 kB / 1.032 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006268/0.7279, allocations: 438.9 kB / 1.033 GB, free: 1.59 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.7282, allocations: 0.7474 MB / 1.033 GB, free: 0.8164 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.669e-05/0.7283, allocations: 25.53 kB / 1.033 GB, free: 0.793 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.068e-05/0.7284, allocations: 15.44 kB / 1.033 GB, free: 0.7773 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.7284, allocations: 0 / 1.033 GB, free: 0.7773 MB / 0.7794 GB Notification: Performance of Templates: time 0.004413/0.7328, allocations: 1.749 MB / 1.035 GB, free: 15.05 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches