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.001319/0.001319, 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.001417/0.001417, allocations: 192.1 kB / 16.26 MB, free: 6.625 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.499/1.499, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.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.53/2.53, allocations: 390.2 MB / 0.6643 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001443, allocations: 67.89 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7945/0.7959, allocations: 140.3 MB / 0.9491 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004426/0.8004, allocations: 3.127 MB / 0.9521 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001604/0.802, allocations: 1.312 MB / 0.9534 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.8022, allocations: 4.156 kB / 0.9534 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0009673/0.8031, allocations: 311.3 kB / 0.9537 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000298/0.8034, allocations: 132.7 kB / 0.9538 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002833/0.8037, allocations: 132.9 kB / 0.954 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003218/0.8041, allocations: 302.8 kB / 0.9543 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000436/0.8045, allocations: 262.8 kB / 0.9545 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001356/0.8047, allocations: 122.8 kB / 0.9546 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002714/0.8049, allocations: 149.3 kB / 0.9548 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.498e-05/0.805, allocations: 19.03 kB / 0.9548 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002579/0.8053, allocations: 170.3 kB / 0.955 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.041e-05/0.8053, allocations: 79.72 kB / 0.955 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.8055, allocations: 105.5 kB / 0.9551 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003552/0.8058, allocations: 351 kB / 0.9555 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.8058, allocations: 0 / 0.9555 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.763e-06/0.8058, allocations: 0 / 0.9555 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.8058, allocations: 0 / 0.9555 GB, free: 4.449 MB / 0.7169 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.0007011/0.8066, allocations: 0.5185 MB / 0.956 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.8066, allocations: 9.875 kB / 0.956 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005399/0.8071, allocations: 79.7 kB / 0.9561 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002179/0.8074, allocations: 232.2 kB / 0.9563 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.8074, allocations: 24.42 kB / 0.9563 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.105e-05/0.8074, allocations: 16.69 kB / 0.9563 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000409/0.8078, allocations: 301.3 kB / 0.9566 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.8079, allocations: 1.094 kB / 0.9566 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.626e-05/0.8079, allocations: 13.89 kB / 0.9566 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.231e-05/0.8079, allocations: 17.22 kB / 0.9566 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000291/0.8082, allocations: 192.9 kB / 0.9568 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.8094, allocations: 1.473 MB / 0.9583 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002716/0.8097, allocations: 172.4 kB / 0.9584 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.904e-05/0.8098, allocations: 35.59 kB / 0.9585 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.8098, allocations: 1.125 kB / 0.9585 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.8098, allocations: 40.03 kB / 0.9585 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.8098, allocations: 0 / 0.9585 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0005224/0.8104, allocations: 221.5 kB / 0.9587 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.8104, allocations: 56.53 kB / 0.9588 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/0.8106, allocations: 192.4 kB / 0.9589 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.8107, allocations: 27.08 kB / 0.959 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.431e-05/0.8108, allocations: 172.1 kB / 0.9591 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.8108, allocations: 26.39 kB / 0.9592 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.989e-05/0.8108, allocations: 34 kB / 0.9592 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.114e-05/0.8109, allocations: 329.5 kB / 0.9595 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.829e-05/0.811, allocations: 35.17 kB / 0.9595 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.8111, allocations: 107.4 kB / 0.9596 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.8113, allocations: 149.8 kB / 0.9598 GB, free: 456 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.8113, allocations: 1.375 kB / 0.9598 GB, free: 456 kB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003331/0.8117, allocations: 191.5 kB / 0.96 GB, free: 336 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.8117, allocations: 5.594 kB / 0.96 GB, free: 336 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.8117, allocations: 6.219 kB / 0.96 GB, free: 332 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001754/0.8119, allocations: 25.69 kB / 0.96 GB, free: 316 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.812, allocations: 34.23 kB / 0.96 GB, free: 304 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/0.8134, allocations: 1.415 MB / 0.9614 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.8135, allocations: 25.16 kB / 0.9614 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.8136, allocations: 6.469 kB / 0.9615 GB, free: 14.82 MB / 0.7325 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.0001869/0.8138, allocations: 153.8 kB / 0.9616 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.53e-05/0.8138, allocations: 11.22 kB / 0.9616 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.077e-05/0.8139, allocations: 17.69 kB / 0.9616 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.8139, allocations: 5.156 kB / 0.9616 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.8139, allocations: 0 / 0.9616 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.8139, allocations: 0.9375 kB / 0.9616 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008631/0.8148, allocations: 449 kB / 0.9621 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.8148, allocations: 0 / 0.9621 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.856e-05/0.8148, allocations: 7.094 kB / 0.9621 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.616e-05/0.8149, allocations: 22.81 kB / 0.9621 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.8149, allocations: 7.984 kB / 0.9621 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001505/0.8164, allocations: 1.416 MB / 0.9635 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.8165, allocations: 0 / 0.9635 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002938/0.8168, allocations: 204.9 kB / 0.9637 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.268e-05/0.8168, allocations: 107.3 kB / 0.9638 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.8169, allocations: 5.25 kB / 0.9638 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.817, allocations: 11.22 kB / 0.9638 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.02e-05/0.817, allocations: 7.234 kB / 0.9638 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-06/0.817, allocations: 1.125 kB / 0.9638 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001547/0.8172, allocations: 151.4 kB / 0.9639 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8172, allocations: 0 / 0.9639 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003979/0.8176, allocations: 52.84 kB / 0.964 GB, free: 12.33 MB / 0.7325 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.0001188/0.8177, allocations: 99.66 kB / 0.9641 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004122/0.8182, allocations: 220 kB / 0.9643 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.8182, allocations: 0 / 0.9643 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001575/0.8183, allocations: 152.6 kB / 0.9644 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003884/0.8187, allocations: 38.91 kB / 0.9645 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007158/0.8195, allocations: 430.3 kB / 0.9649 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.8198, allocations: 0.7505 MB / 0.9656 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001007/0.8199, allocations: 22.38 kB / 0.9656 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.509e-05/0.82, allocations: 22.19 kB / 0.9657 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.82, allocations: 1 kB / 0.9657 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of Templates: time 0.005218/0.8252, allocations: 1.749 MB / 0.9674 GB, free: 9.977 MB / 0.7325 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