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.001434/0.001434, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001387/0.001387, allocations: 195.8 kB / 16.14 MB, free: 6.633 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.545/1.545, allocations: 222.9 MB / 239.8 MB, free: 4.633 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.817/2.817, allocations: 437 MB / 0.71 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 67.89 kB / 0.8686 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.787/0.789, allocations: 151.6 MB / 1.017 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005753/0.7948, allocations: 3.141 MB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002144/0.797, allocations: 1.332 MB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.7971, allocations: 4 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009941/0.7981, allocations: 307 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003296/0.7985, allocations: 143.4 kB / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003302/0.7988, allocations: 119.7 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004839/0.7993, allocations: 434.8 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000308/0.7996, allocations: 160.3 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.7998, allocations: 103.6 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000285/0.8001, allocations: 139.5 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.327e-05/0.8001, allocations: 12 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000365/0.8005, allocations: 211.6 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.8006, allocations: 79.73 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.8007, allocations: 107.5 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004353/0.8012, allocations: 340.9 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.8012, allocations: 0 / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.022e-06/0.8012, allocations: 0 / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.102e-06/0.8012, allocations: 0 / 1.023 GB, free: 12.15 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.000907/0.8021, allocations: 0.5147 MB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.8022, allocations: 16.03 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005733/0.8027, allocations: 80.58 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003203/0.8031, allocations: 249.5 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.8031, allocations: 12.73 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.894e-05/0.8031, allocations: 20.31 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005024/0.8036, allocations: 299.6 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.8037, allocations: 0 / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.935e-05/0.8037, allocations: 11.98 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.855e-05/0.8037, allocations: 20.3 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003093/0.8041, allocations: 200.7 kB / 1.024 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.8057, allocations: 1.456 MB / 1.026 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002831/0.806, allocations: 175.8 kB / 1.026 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.453e-05/0.8061, allocations: 36.83 kB / 1.026 GB, free: 8.785 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.256e-06/0.8061, allocations: 4 kB / 1.026 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.8061, allocations: 30.56 kB / 1.026 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 3.456e-06/0.8061, allocations: 0 / 1.026 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005263/0.8067, allocations: 231.5 kB / 1.026 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.8067, allocations: 55.39 kB / 1.026 GB, free: 8.422 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/0.8069, allocations: 192.5 kB / 1.027 GB, free: 8.227 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.474e-05/0.807, allocations: 33.7 kB / 1.027 GB, free: 8.188 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.8071, allocations: 163.6 kB / 1.027 GB, free: 8.023 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.8071, allocations: 23.66 kB / 1.027 GB, free: 8 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.99e-05/0.8072, allocations: 41.61 kB / 1.027 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.8074, allocations: 322.8 kB / 1.027 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.026e-05/0.8074, allocations: 35.98 kB / 1.027 GB, free: 7.594 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.8076, allocations: 110.3 kB / 1.027 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001895/0.8078, allocations: 144.4 kB / 1.027 GB, free: 7.285 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.8078, allocations: 0 / 1.027 GB, free: 7.285 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003248/0.8081, allocations: 198.2 kB / 1.028 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.8081, allocations: 8 kB / 1.028 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.8081, allocations: 0 / 1.028 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000182/0.8083, allocations: 20.84 kB / 1.028 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.8085, allocations: 39.98 kB / 1.028 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/0.8097, allocations: 1.319 MB / 1.029 GB, free: 5.562 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.8098, allocations: 23.8 kB / 1.029 GB, free: 5.539 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.8098, allocations: 8 kB / 1.029 GB, free: 5.531 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.0001665/0.81, allocations: 145.9 kB / 1.029 GB, free: 5.379 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.365e-05/0.81, allocations: 19.75 kB / 1.029 GB, free: 5.359 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.141e-05/0.8101, allocations: 17.41 kB / 1.029 GB, free: 5.344 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.8101, allocations: 3.984 kB / 1.029 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.8101, allocations: 4 kB / 1.029 GB, free: 5.336 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.8101, allocations: 0 / 1.029 GB, free: 5.336 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005749/0.8107, allocations: 443.5 kB / 1.03 GB, free: 4.844 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.8107, allocations: 0 / 1.03 GB, free: 4.844 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.057e-05/0.8107, allocations: 15.98 kB / 1.03 GB, free: 4.828 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.022e-05/0.8108, allocations: 24.84 kB / 1.03 GB, free: 4.801 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.8108, allocations: 0 / 1.03 GB, free: 4.801 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.812, allocations: 1.311 MB / 1.031 GB, free: 3.348 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.812, allocations: 3.938 kB / 1.031 GB, free: 3.344 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002663/0.8123, allocations: 204.2 kB / 1.031 GB, free: 3.125 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.651e-05/0.8124, allocations: 104.8 kB / 1.031 GB, free: 3.004 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.432e-05/0.8124, allocations: 8.031 kB / 1.031 GB, free: 2.996 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.8125, allocations: 8 kB / 1.031 GB, free: 2.988 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.485e-05/0.8125, allocations: 7.984 kB / 1.031 GB, free: 2.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.734e-06/0.8126, allocations: 4 kB / 1.031 GB, free: 2.977 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001391/0.8127, allocations: 147.4 kB / 1.031 GB, free: 2.832 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8127, allocations: 0 / 1.031 GB, free: 2.832 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003394/0.8131, allocations: 47.84 kB / 1.031 GB, free: 2.785 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.0001599/0.8132, allocations: 104.3 kB / 1.031 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004189/0.8136, allocations: 210.5 kB / 1.032 GB, free: 2.457 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.8137, allocations: 3.938 kB / 1.032 GB, free: 2.453 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.8138, allocations: 150.6 kB / 1.032 GB, free: 2.293 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003857/0.8142, allocations: 36.77 kB / 1.032 GB, free: 2.258 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007201/0.815, allocations: 425.5 kB / 1.032 GB, free: 1.812 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004337/0.8154, allocations: 0.7478 MB / 1.033 GB, free: 1.039 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.253e-05/0.8155, allocations: 17.55 kB / 1.033 GB, free: 1.023 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.501e-05/0.8156, allocations: 15.44 kB / 1.033 GB, free: 1.008 MB / 0.7794 GB Notification: Performance of SimCode: time 4.71e-07/0.8156, allocations: 4 kB / 1.033 GB, free: 1.004 MB / 0.7794 GB Notification: Performance of Templates: time 0.005391/0.821, allocations: 1.68 MB / 1.035 GB, free: 15.34 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=400 -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