Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.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.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 110.5 kB / 16.41 MB, free: 6.5 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.001312/0.001312, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.492/1.492, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.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.718/2.718, allocations: 437.1 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 55.91 kB / 1.019 GB, free: 9.453 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.043/1.045, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.009529/1.055, allocations: 6.31 MB / 1.173 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.007804/1.062, allocations: 4.538 MB / 1.178 GB, free: 8.953 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007125/1.063, allocations: 23.88 kB / 1.178 GB, free: 8.93 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002724/1.066, allocations: 0.9159 MB / 1.179 GB, free: 8.012 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.003241/1.069, allocations: 0.7873 MB / 1.18 GB, free: 7.223 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009069/1.07, allocations: 320.6 kB / 1.18 GB, free: 6.91 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001853/1.072, allocations: 1.129 MB / 1.181 GB, free: 5.777 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001028/1.073, allocations: 0.682 MB / 1.182 GB, free: 5.09 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000821/1.074, allocations: 486.3 kB / 1.182 GB, free: 4.613 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008061/1.075, allocations: 0.4903 MB / 1.183 GB, free: 4.121 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001081/1.075, allocations: 68 kB / 1.183 GB, free: 4.055 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006169/1.075, allocations: 279.5 kB / 1.183 GB, free: 3.781 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002679/1.076, allocations: 259.2 kB / 1.183 GB, free: 3.527 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0004602/1.076, allocations: 410 kB / 1.184 GB, free: 3.125 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001417/1.078, allocations: 1.077 MB / 1.185 GB, free: 2.047 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/1.078, allocations: 0 / 1.185 GB, free: 2.047 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.563e-06/1.078, allocations: 0 / 1.185 GB, free: 2.047 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.107e-05/1.078, allocations: 3.938 kB / 1.185 GB, free: 2.043 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.002207/1.08, allocations: 1.117 MB / 1.186 GB, free: 0.875 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/1.08, allocations: 12.03 kB / 1.186 GB, free: 0.8633 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003244/1.083, allocations: 0.6324 MB / 1.186 GB, free: 232 kB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/1.084, allocations: 0.578 MB / 1.187 GB, free: 15.61 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.268e-05/1.084, allocations: 37.69 kB / 1.187 GB, free: 15.57 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.441e-05/1.084, allocations: 52.06 kB / 1.187 GB, free: 15.52 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002135/1.087, allocations: 1.026 MB / 1.188 GB, free: 14.45 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/1.087, allocations: 0 / 1.188 GB, free: 14.45 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.568e-05/1.087, allocations: 24 kB / 1.188 GB, free: 14.43 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-05/1.087, allocations: 45.28 kB / 1.188 GB, free: 14.38 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002509/1.089, allocations: 1.004 MB / 1.189 GB, free: 13.38 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00495/1.094, allocations: 3.502 MB / 1.192 GB, free: 9.566 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/1.096, allocations: 494.3 kB / 1.193 GB, free: 9.074 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006199/1.096, allocations: 220.7 kB / 1.193 GB, free: 8.855 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.812e-05/1.096, allocations: 11.98 kB / 1.193 GB, free: 8.844 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.252e-05/1.096, allocations: 42.56 kB / 1.193 GB, free: 8.793 MB / 0.92 GB Notification: Performance of pre-optimization done (n=31): time 1.784e-06/1.096, allocations: 0 / 1.193 GB, free: 8.793 MB / 0.92 GB Notification: Performance of matching and sorting (n=43): time 0.007117/1.104, allocations: 2.032 MB / 1.195 GB, free: 6.719 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.344e-05/1.104, allocations: 63.41 kB / 1.195 GB, free: 6.645 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007703/1.104, allocations: 0.5704 MB / 1.196 GB, free: 6.066 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.501e-05/1.104, allocations: 33.7 kB / 1.196 GB, free: 6.027 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003036/1.105, allocations: 360.8 kB / 1.196 GB, free: 5.672 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001585/1.105, allocations: 154.6 kB / 1.196 GB, free: 5.52 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001812/1.105, allocations: 94.2 kB / 1.196 GB, free: 5.422 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002115/1.105, allocations: 378.7 kB / 1.197 GB, free: 5.043 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007274/1.106, allocations: 262.9 kB / 1.197 GB, free: 4.781 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007935/1.107, allocations: 359 kB / 1.197 GB, free: 4.387 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/1.108, allocations: 0.6187 MB / 1.198 GB, free: 3.727 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/1.108, allocations: 4 kB / 1.198 GB, free: 3.723 MB / 0.92 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00264/1.111, allocations: 0.9313 MB / 1.199 GB, free: 2.766 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/1.111, allocations: 8 kB / 1.199 GB, free: 2.758 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/1.111, allocations: 4 kB / 1.199 GB, free: 2.754 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/1.112, allocations: 273.2 kB / 1.199 GB, free: 2.469 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006041/1.113, allocations: 119.8 kB / 1.199 GB, free: 2.352 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00929/1.122, allocations: 9.109 MB / 1.208 GB, free: 8.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007079/1.123, allocations: 39.95 kB / 1.208 GB, free: 8.371 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.344e-05/1.123, allocations: 27.97 kB / 1.208 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001001/1.124, allocations: 441 kB / 1.209 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000763/1.125, allocations: 357.4 kB / 1.209 GB, free: 7.523 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001539/1.126, allocations: 0.6054 MB / 1.21 GB, free: 6.875 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.478e-06/1.126, allocations: 0 / 1.21 GB, free: 6.875 MB / 0.9356 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002751/1.129, allocations: 1.129 MB / 1.211 GB, free: 5.664 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.749e-05/1.129, allocations: 7.938 kB / 1.211 GB, free: 5.656 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/1.129, allocations: 4 kB / 1.211 GB, free: 5.652 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009062/1.13, allocations: 221 kB / 1.211 GB, free: 5.418 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006201/1.131, allocations: 123.8 kB / 1.211 GB, free: 5.297 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008402/1.139, allocations: 8.808 MB / 1.22 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000759/1.14, allocations: 39.95 kB / 1.22 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.063e-05/1.14, allocations: 31.98 kB / 1.22 GB, free: 11.58 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (47): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003107/1.14, allocations: 205.1 kB / 1.22 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002089/1.141, allocations: 71.58 kB / 1.22 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002399/1.141, allocations: 74.38 kB / 1.22 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/1.141, allocations: 4 kB / 1.22 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/1.141, allocations: 8 kB / 1.22 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/1.141, allocations: 3.984 kB / 1.22 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001244/1.142, allocations: 0.6416 MB / 1.221 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/1.142, allocations: 0 / 1.221 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000509/1.143, allocations: 87.84 kB / 1.221 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/1.144, allocations: 261 kB / 1.221 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.778e-05/1.144, allocations: 15.98 kB / 1.221 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009356/1.153, allocations: 9.05 MB / 1.23 GB, free: 256 kB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.153, allocations: 0 / 1.23 GB, free: 256 kB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002513/1.156, allocations: 0.9368 MB / 1.231 GB, free: 15.27 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003674/1.156, allocations: 184.8 kB / 1.231 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/1.156, allocations: 4 kB / 1.231 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005328/1.157, allocations: 43.94 kB / 1.231 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/1.157, allocations: 39.94 kB / 1.231 GB, free: 14.99 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.842e-05/1.157, allocations: 12 kB / 1.231 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0006379/1.158, allocations: 407.1 kB / 1.231 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.254e-06/1.158, allocations: 0 / 1.231 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001286/1.159, allocations: 307.9 kB / 1.232 GB, free: 14.29 MB / 0.9669 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 (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001887/1.159, allocations: 103.2 kB / 1.232 GB, free: 14.18 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.004549/1.164, allocations: 2.357 MB / 1.234 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/1.164, allocations: 128 / 1.234 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001534/1.165, allocations: 1.016 MB / 1.235 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/1.166, allocations: 238.2 kB / 1.235 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002884/1.169, allocations: 1.303 MB / 1.237 GB, free: 9.016 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008337/1.17, allocations: 0.9859 MB / 1.238 GB, free: 8.004 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0005751/1.171, allocations: 149.4 kB / 1.238 GB, free: 7.855 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/1.171, allocations: 47.42 kB / 1.238 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of SimCode: time 6.72e-07/1.171, allocations: 0 / 1.238 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of Templates: time 0.02849/1.199, allocations: 13.63 MB / 1.251 GB, free: 10.32 MB / 0.9825 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_DCLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches