Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.001129/0.001129, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 189.2 kB / 16.66 MB, free: 6.582 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.39/1.39, allocations: 222.9 MB / 240.3 MB, free: 4.348 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.647/2.647, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 61.62 kB / 0.9508 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3079, allocations: 140.4 MB / 1.088 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.008752/0.3167, allocations: 6.285 MB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.008379/0.3252, allocations: 4.53 MB / 1.098 GB, free: 6.648 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001136/0.3264, allocations: 27.88 kB / 1.098 GB, free: 6.621 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002973/0.3294, allocations: 0.9164 MB / 1.099 GB, free: 5.703 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002722/0.3321, allocations: 0.7872 MB / 1.1 GB, free: 4.914 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009001/0.333, allocations: 319.5 kB / 1.1 GB, free: 4.602 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001665/0.3347, allocations: 1.137 MB / 1.102 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009507/0.3357, allocations: 0.6926 MB / 1.102 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007403/0.3364, allocations: 482.4 kB / 1.103 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007484/0.3372, allocations: 0.4942 MB / 1.103 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.3373, allocations: 68 kB / 1.103 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006033/0.3379, allocations: 275.5 kB / 1.104 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002306/0.3381, allocations: 251.3 kB / 1.104 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0004289/0.3386, allocations: 413.9 kB / 1.104 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001291/0.3399, allocations: 1.074 MB / 1.105 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.3399, allocations: 11.94 kB / 1.105 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.954e-06/0.3399, allocations: 0 / 1.105 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.258e-05/0.3399, allocations: 0 / 1.105 GB, free: 15.71 MB / 0.8731 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.002096/0.342, allocations: 1.121 MB / 1.106 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.3421, allocations: 8.031 kB / 1.106 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003229/0.3453, allocations: 0.6324 MB / 1.107 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009814/0.3463, allocations: 0.578 MB / 1.107 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.744e-05/0.3464, allocations: 37.69 kB / 1.108 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.461e-05/0.3465, allocations: 52.12 kB / 1.108 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002137/0.3486, allocations: 1.022 MB / 1.109 GB, free: 12.13 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.3486, allocations: 0 / 1.109 GB, free: 12.13 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.821e-05/0.3487, allocations: 27.98 kB / 1.109 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-05/0.3488, allocations: 45.3 kB / 1.109 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002423/0.3512, allocations: 1.008 MB / 1.11 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004781/0.356, allocations: 3.486 MB / 1.113 GB, free: 7.258 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.3576, allocations: 0.4921 MB / 1.114 GB, free: 6.758 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006082/0.3582, allocations: 224.7 kB / 1.114 GB, free: 6.535 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.851e-05/0.3583, allocations: 7.984 kB / 1.114 GB, free: 6.527 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/0.3583, allocations: 38.5 kB / 1.114 GB, free: 6.48 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=31): time 3.016e-06/0.3583, allocations: 4 kB / 1.114 GB, free: 6.477 MB / 0.8731 GB Notification: Performance of matching and sorting (n=43): time 0.006943/0.3653, allocations: 2.027 MB / 1.116 GB, free: 4.406 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.3654, allocations: 55.41 kB / 1.116 GB, free: 4.34 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007095/0.3661, allocations: 0.5705 MB / 1.116 GB, free: 3.758 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.29e-05/0.3661, allocations: 29.7 kB / 1.116 GB, free: 3.723 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002652/0.3664, allocations: 368.8 kB / 1.117 GB, free: 3.355 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.3665, allocations: 150.7 kB / 1.117 GB, free: 3.207 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001725/0.3667, allocations: 90.2 kB / 1.117 GB, free: 3.113 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001656/0.3669, allocations: 374.7 kB / 1.117 GB, free: 2.738 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006913/0.3676, allocations: 262.9 kB / 1.118 GB, free: 2.477 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007337/0.3683, allocations: 361.7 kB / 1.118 GB, free: 2.074 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001434/0.3698, allocations: 0.6264 MB / 1.119 GB, free: 1.406 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.3698, allocations: 4 kB / 1.119 GB, free: 1.402 MB / 0.8731 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002443/0.3722, allocations: 0.9354 MB / 1.119 GB, free: 452 kB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/0.3723, allocations: 7.984 kB / 1.119 GB, free: 444 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.3723, allocations: 7.938 kB / 1.119 GB, free: 436 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.3735, allocations: 281 kB / 1.12 GB, free: 136 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006266/0.3741, allocations: 111.8 kB / 1.12 GB, free: 24 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008421/0.3825, allocations: 9.107 MB / 1.129 GB, free: 6.09 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008262/0.3834, allocations: 51.94 kB / 1.129 GB, free: 6.039 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.883e-05/0.3835, allocations: 20 kB / 1.129 GB, free: 6.02 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001056/0.3846, allocations: 437 kB / 1.129 GB, free: 5.59 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007698/0.3853, allocations: 353.4 kB / 1.13 GB, free: 5.207 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001442/0.3868, allocations: 0.6129 MB / 1.13 GB, free: 4.551 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.098e-06/0.3868, allocations: 0 / 1.13 GB, free: 4.551 MB / 0.8887 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002754/0.3896, allocations: 1.121 MB / 1.131 GB, free: 3.348 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.3896, allocations: 15.88 kB / 1.131 GB, free: 3.332 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.3896, allocations: 352 / 1.131 GB, free: 3.332 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008482/0.3905, allocations: 225 kB / 1.131 GB, free: 3.094 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006575/0.3912, allocations: 115.8 kB / 1.132 GB, free: 2.98 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007253/0.3984, allocations: 8.805 MB / 1.14 GB, free: 9.332 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007004/0.3992, allocations: 39.95 kB / 1.14 GB, free: 9.293 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.098e-05/0.3992, allocations: 20 kB / 1.14 GB, free: 9.273 MB / 0.9044 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.0002341/0.3995, allocations: 220.1 kB / 1.14 GB, free: 9.051 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.3997, allocations: 67.58 kB / 1.141 GB, free: 8.984 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001968/0.3999, allocations: 82.36 kB / 1.141 GB, free: 8.906 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.3999, allocations: 4 kB / 1.141 GB, free: 8.902 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.3999, allocations: 0 / 1.141 GB, free: 8.902 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.431e-06/0.3999, allocations: 0 / 1.141 GB, free: 8.902 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009836/0.4009, allocations: 0.6611 MB / 1.141 GB, free: 8.191 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.4009, allocations: 0 / 1.141 GB, free: 8.191 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005232/0.4014, allocations: 83.86 kB / 1.141 GB, free: 8.109 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009766/0.4024, allocations: 268.8 kB / 1.142 GB, free: 7.828 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.362e-05/0.4025, allocations: 8 kB / 1.142 GB, free: 7.82 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00744/0.4099, allocations: 9.074 MB / 1.15 GB, free: 13.9 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.41, allocations: 0 / 1.15 GB, free: 13.9 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00239/0.4124, allocations: 0.9135 MB / 1.151 GB, free: 12.95 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003894/0.4128, allocations: 192.5 kB / 1.152 GB, free: 12.75 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.4129, allocations: 8 kB / 1.152 GB, free: 12.74 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005362/0.4135, allocations: 35.95 kB / 1.152 GB, free: 12.7 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/0.4136, allocations: 39.84 kB / 1.152 GB, free: 12.66 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.628e-05/0.4137, allocations: 19.98 kB / 1.152 GB, free: 12.64 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0005833/0.4143, allocations: 403.1 kB / 1.152 GB, free: 12.25 MB / 0.92 GB Notification: Performance of sort global known variables: time 3.3e-07/0.4143, allocations: 0 / 1.152 GB, free: 12.25 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001231/0.4155, allocations: 304 kB / 1.152 GB, free: 11.96 MB / 0.92 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.0001864/0.4157, allocations: 108.3 kB / 1.152 GB, free: 11.84 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.004858/0.4206, allocations: 2.356 MB / 1.155 GB, free: 9.332 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.4206, allocations: 0 / 1.155 GB, free: 9.332 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.00171/0.4223, allocations: 1.004 MB / 1.156 GB, free: 8.25 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001361/0.4237, allocations: 235.6 kB / 1.156 GB, free: 8.031 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002879/0.4266, allocations: 1.306 MB / 1.157 GB, free: 6.691 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/0.4276, allocations: 0.9819 MB / 1.158 GB, free: 5.68 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0007768/0.4284, allocations: 149.4 kB / 1.158 GB, free: 5.531 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001733/0.4286, allocations: 51.42 kB / 1.158 GB, free: 5.48 MB / 0.92 GB Notification: Performance of SimCode: time 9.32e-07/0.4286, allocations: 3.938 kB / 1.158 GB, free: 5.477 MB / 0.92 GB Notification: Performance of Templates: time 0.02587/0.4545, allocations: 13.61 MB / 1.172 GB, free: 8.016 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_DCLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches