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.0008075/0.0008076, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.005602/0.005603, allocations: 173.3 kB / 16.26 MB, free: 6.676 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.461/1.461, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.759/2.759, allocations: 437.8 MB / 0.7121 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003862/0.0003862, allocations: 12 kB / 0.8728 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8081/0.8085, allocations: 153.8 MB / 1.023 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.008075/0.8167, allocations: 5.885 MB / 1.029 GB, free: 9.902 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.007021/0.8238, allocations: 4.468 MB / 1.033 GB, free: 5.418 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006642/0.8245, allocations: 19.88 kB / 1.033 GB, free: 5.398 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005841/0.8251, allocations: 150.9 kB / 1.033 GB, free: 5.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.002278/0.8274, allocations: 0.7047 MB / 1.034 GB, free: 4.547 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008472/0.8282, allocations: 295.6 kB / 1.034 GB, free: 4.258 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0018/0.83, allocations: 1.437 MB / 1.036 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007234/0.8308, allocations: 0.5358 MB / 1.036 GB, free: 2.254 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005788/0.8314, allocations: 402.3 kB / 1.037 GB, free: 1.859 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006716/0.832, allocations: 466.1 kB / 1.037 GB, free: 1.402 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.184e-05/0.8321, allocations: 36 kB / 1.037 GB, free: 1.367 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000642/0.8328, allocations: 299.4 kB / 1.037 GB, free: 1.074 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002124/0.833, allocations: 215.2 kB / 1.038 GB, free: 0.8633 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000393/0.8334, allocations: 387.7 kB / 1.038 GB, free: 488 kB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001133/0.8345, allocations: 1.031 MB / 1.039 GB, free: 15.44 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.8346, allocations: 4 kB / 1.039 GB, free: 15.44 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.565e-06/0.8346, allocations: 4 kB / 1.039 GB, free: 15.43 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.061e-05/0.8346, allocations: 0 / 1.039 GB, free: 15.43 MB / 0.795 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.001747/0.8363, allocations: 0.966 MB / 1.04 GB, free: 14.42 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.8364, allocations: 12.03 kB / 1.04 GB, free: 14.41 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003429/0.8398, allocations: 0.6553 MB / 1.041 GB, free: 13.75 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000942/0.8408, allocations: 0.5424 MB / 1.041 GB, free: 13.17 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.71e-05/0.8408, allocations: 37.69 kB / 1.041 GB, free: 13.13 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.977e-05/0.8409, allocations: 56.12 kB / 1.041 GB, free: 13.08 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002114/0.8431, allocations: 1.018 MB / 1.042 GB, free: 12.01 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.8431, allocations: 7.938 kB / 1.042 GB, free: 12 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.79e-05/0.8432, allocations: 24 kB / 1.042 GB, free: 11.98 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.664e-05/0.8433, allocations: 45.28 kB / 1.042 GB, free: 11.94 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002512/0.8458, allocations: 1.02 MB / 1.043 GB, free: 10.92 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004526/0.8503, allocations: 3.517 MB / 1.047 GB, free: 7.094 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001625/0.852, allocations: 0.5249 MB / 1.047 GB, free: 6.562 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006385/0.8526, allocations: 245.2 kB / 1.047 GB, free: 6.32 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 4.707e-05/0.8527, allocations: 11.98 kB / 1.047 GB, free: 6.309 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.833e-05/0.8528, allocations: 34.55 kB / 1.047 GB, free: 6.266 MB / 0.795 GB Notification: Performance of pre-optimization done (n=31): time 2.645e-06/0.8528, allocations: 0 / 1.047 GB, free: 6.266 MB / 0.795 GB Notification: Performance of matching and sorting (n=43): time 0.007301/0.8601, allocations: 2.231 MB / 1.05 GB, free: 3.988 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.8601, allocations: 59.41 kB / 1.05 GB, free: 3.918 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000705/0.8609, allocations: 0.5665 MB / 1.05 GB, free: 3.344 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.17e-05/0.8609, allocations: 33.7 kB / 1.05 GB, free: 3.305 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002713/0.8612, allocations: 360.2 kB / 1.051 GB, free: 2.949 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001449/0.8614, allocations: 149.8 kB / 1.051 GB, free: 2.801 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.239e-05/0.8614, allocations: 41.69 kB / 1.051 GB, free: 2.754 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.8616, allocations: 378.7 kB / 1.051 GB, free: 2.375 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007438/0.8623, allocations: 276.9 kB / 1.051 GB, free: 2.102 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000803/0.8632, allocations: 385.2 kB / 1.052 GB, free: 1.688 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001562/0.8647, allocations: 0.6733 MB / 1.052 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.8647, allocations: 0 / 1.052 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002683/0.8674, allocations: 0.9896 MB / 1.053 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001271/0.8676, allocations: 172.4 kB / 1.054 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.8676, allocations: 4 kB / 1.054 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001186/0.8688, allocations: 280.8 kB / 1.054 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006432/0.8694, allocations: 127.8 kB / 1.054 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008018/0.8775, allocations: 8.48 MB / 1.062 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00087/0.8784, allocations: 56.02 kB / 1.062 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.121e-05/0.8784, allocations: 23.98 kB / 1.062 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/0.8785, allocations: 0 / 1.062 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002566/0.881, allocations: 1.093 MB / 1.063 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.8811, allocations: 4 kB / 1.063 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007694/0.8818, allocations: 217.3 kB / 1.064 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000615/0.8825, allocations: 139.8 kB / 1.064 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006802/0.8893, allocations: 8.152 MB / 1.072 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008647/0.8902, allocations: 56.08 kB / 1.072 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.462e-05/0.8902, allocations: 23.98 kB / 1.072 GB, free: 11.4 MB / 0.8262 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.0005631/0.8908, allocations: 316.9 kB / 1.072 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.891, allocations: 67.16 kB / 1.072 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001758/0.8911, allocations: 78.38 kB / 1.072 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.8912, allocations: 8 kB / 1.072 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/0.8912, allocations: 0 / 1.072 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.8912, allocations: 3.984 kB / 1.072 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009259/0.8921, allocations: 0.6494 MB / 1.073 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.8921, allocations: 4.141 kB / 1.073 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005384/0.8927, allocations: 95.86 kB / 1.073 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001019/0.8937, allocations: 268.8 kB / 1.073 GB, free: 9.844 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.222e-05/0.8938, allocations: 12 kB / 1.073 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007234/0.901, allocations: 8.42 MB / 1.081 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.9011, allocations: 4.031 kB / 1.081 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002511/0.9036, allocations: 0.9599 MB / 1.082 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000268/0.9039, allocations: 192.1 kB / 1.083 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.579e-05/0.904, allocations: 11.94 kB / 1.083 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004935/0.9045, allocations: 51.89 kB / 1.083 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.9046, allocations: 39.94 kB / 1.083 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.932e-05/0.9047, allocations: 12 kB / 1.083 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004862/0.9052, allocations: 403.1 kB / 1.083 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9052, allocations: 0 / 1.083 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001095/0.9063, allocations: 300 kB / 1.083 GB, free: 14.61 MB / 0.8419 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.0001584/0.9064, allocations: 119.2 kB / 1.083 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.003956/0.9104, allocations: 2.419 MB / 1.086 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.9104, allocations: 0 / 1.086 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.9119, allocations: 1.035 MB / 1.087 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.9131, allocations: 201.7 kB / 1.087 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00272/0.9158, allocations: 1.603 MB / 1.089 GB, free: 8.977 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006144/0.9164, allocations: 0.9821 MB / 1.09 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0006402/0.9171, allocations: 153.3 kB / 1.09 GB, free: 7.816 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/0.9172, allocations: 39.44 kB / 1.09 GB, free: 7.777 MB / 0.8419 GB Notification: Performance of SimCode: time 8.92e-07/0.9172, allocations: 0 / 1.09 GB, free: 7.777 MB / 0.8419 GB Notification: Performance of Templates: time 0.02413/0.9414, allocations: 12.85 MB / 1.102 GB, free: 11.06 MB / 0.8575 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 -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/jenkins/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