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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001478/0.001478, allocations: 106.6 kB / 16.35 MB, free: 5.824 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.001234/0.001234, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.426/1.426, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.568/2.568, allocations: 437.1 MB / 0.7112 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 63.98 kB / 0.8707 GB, free: 1.367 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.3009, allocations: 151.6 MB / 1.019 GB, free: 9.777 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.008152/0.3091, allocations: 6.314 MB / 1.025 GB, free: 3.43 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.006791/0.3159, allocations: 4.538 MB / 1.029 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006778/0.3167, allocations: 27.88 kB / 1.029 GB, free: 14.85 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002622/0.3193, allocations: 0.914 MB / 1.03 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.002153/0.3215, allocations: 0.7619 MB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007813/0.3223, allocations: 329.6 kB / 1.031 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001512/0.3238, allocations: 1.129 MB / 1.032 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009101/0.3247, allocations: 0.6849 MB / 1.033 GB, free: 11.03 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000795/0.3255, allocations: 470.3 kB / 1.034 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009781/0.3265, allocations: 0.502 MB / 1.034 GB, free: 10.06 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001913/0.3267, allocations: 68 kB / 1.034 GB, free: 9.996 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006935/0.3274, allocations: 279.5 kB / 1.034 GB, free: 9.723 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002937/0.3277, allocations: 247.3 kB / 1.035 GB, free: 9.48 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0005974/0.3283, allocations: 409.9 kB / 1.035 GB, free: 9.078 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001411/0.3297, allocations: 1.067 MB / 1.036 GB, free: 8.008 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.3298, allocations: 7.984 kB / 1.036 GB, free: 8 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.996e-06/0.3298, allocations: 0 / 1.036 GB, free: 8 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.357e-05/0.3298, allocations: 3.938 kB / 1.036 GB, free: 7.996 MB / 0.8106 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.002462/0.3323, allocations: 1.09 MB / 1.037 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.3323, allocations: 12.03 kB / 1.037 GB, free: 6.844 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003191/0.3355, allocations: 0.6319 MB / 1.038 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001166/0.3367, allocations: 0.5659 MB / 1.038 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.3368, allocations: 37.67 kB / 1.038 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.795e-05/0.3369, allocations: 52.12 kB / 1.038 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001914/0.3388, allocations: 1.022 MB / 1.039 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.3388, allocations: 0 / 1.039 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.872e-05/0.3389, allocations: 27.98 kB / 1.039 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-05/0.339, allocations: 45.3 kB / 1.039 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002252/0.3412, allocations: 1.008 MB / 1.04 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004191/0.3454, allocations: 3.474 MB / 1.044 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.3468, allocations: 0.4996 MB / 1.044 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005293/0.3473, allocations: 224.7 kB / 1.045 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.575e-05/0.3474, allocations: 7.984 kB / 1.045 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.3474, allocations: 38.56 kB / 1.045 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=31): time 3.957e-06/0.3474, allocations: 4 kB / 1.045 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=43): time 0.006418/0.3538, allocations: 2.006 MB / 1.047 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.644e-05/0.3539, allocations: 63.33 kB / 1.047 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006831/0.3546, allocations: 0.5666 MB / 1.047 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.084e-05/0.3546, allocations: 37.7 kB / 1.047 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002373/0.3549, allocations: 360.2 kB / 1.048 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.355, allocations: 145.8 kB / 1.048 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.3552, allocations: 94.14 kB / 1.048 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001708/0.3554, allocations: 378.7 kB / 1.048 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006528/0.356, allocations: 258.9 kB / 1.048 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006826/0.3567, allocations: 357.8 kB / 1.049 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/0.358, allocations: 0.6225 MB / 1.049 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.358, allocations: 4 kB / 1.049 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002318/0.3604, allocations: 0.9275 MB / 1.05 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.3604, allocations: 8 kB / 1.05 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.3604, allocations: 4 kB / 1.05 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.3615, allocations: 273 kB / 1.051 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006014/0.3621, allocations: 115.8 kB / 1.051 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007557/0.3697, allocations: 9.113 MB / 1.06 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006899/0.3704, allocations: 52.03 kB / 1.06 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.1e-05/0.3705, allocations: 16 kB / 1.06 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008995/0.3714, allocations: 439.1 kB / 1.06 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006988/0.3721, allocations: 353.4 kB / 1.06 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00129/0.3734, allocations: 0.609 MB / 1.061 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.54e-06/0.3735, allocations: 4 kB / 1.061 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002549/0.376, allocations: 1.125 MB / 1.062 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.376, allocations: 11.06 kB / 1.062 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3761, allocations: 4.344 kB / 1.062 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008235/0.3769, allocations: 225 kB / 1.062 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006297/0.3775, allocations: 119.8 kB / 1.062 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00751/0.3851, allocations: 8.796 MB / 1.071 GB, free: 1.707 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007491/0.3858, allocations: 47.97 kB / 1.071 GB, free: 1.66 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.211e-05/0.3859, allocations: 20 kB / 1.071 GB, free: 1.641 MB / 0.8419 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.0002533/0.3862, allocations: 213.7 kB / 1.071 GB, free: 1.426 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.3864, allocations: 75.14 kB / 1.071 GB, free: 1.352 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00019/0.3866, allocations: 78.38 kB / 1.071 GB, free: 1.277 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.3866, allocations: 4 kB / 1.071 GB, free: 1.273 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.3866, allocations: 4 kB / 1.071 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3866, allocations: 0 / 1.071 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009262/0.3875, allocations: 0.6494 MB / 1.072 GB, free: 0.5703 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.3875, allocations: 0 / 1.072 GB, free: 0.5703 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005109/0.3881, allocations: 91.84 kB / 1.072 GB, free: 492 kB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009436/0.389, allocations: 260.9 kB / 1.072 GB, free: 212 kB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.033e-05/0.3891, allocations: 15.88 kB / 1.072 GB, free: 196 kB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5472/0.9363, allocations: 9.044 MB / 1.081 GB, free: 51.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.9364, allocations: 0 / 1.081 GB, free: 51.05 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002298/0.9387, allocations: 0.9195 MB / 1.082 GB, free: 50.87 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002979/0.939, allocations: 185.9 kB / 1.082 GB, free: 50.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.305e-05/0.9391, allocations: 11.59 kB / 1.082 GB, free: 50.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004856/0.9396, allocations: 45.83 kB / 1.082 GB, free: 50.77 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.9397, allocations: 37.72 kB / 1.082 GB, free: 50.77 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.432e-05/0.9398, allocations: 13.53 kB / 1.082 GB, free: 50.77 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004758/0.9403, allocations: 405.9 kB / 1.083 GB, free: 50.68 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9403, allocations: 0 / 1.083 GB, free: 50.68 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001099/0.9414, allocations: 301.3 kB / 1.083 GB, free: 50.68 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.000151/0.9415, allocations: 114 kB / 1.083 GB, free: 50.59 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.003668/0.9452, allocations: 2.343 MB / 1.085 GB, free: 49.16 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.9452, allocations: 0 / 1.085 GB, free: 49.16 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001408/0.9467, allocations: 1.006 MB / 1.086 GB, free: 48.4 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.9479, allocations: 222.5 kB / 1.087 GB, free: 48.34 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002737/0.9506, allocations: 1.297 MB / 1.088 GB, free: 47.73 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006054/0.9512, allocations: 0.9875 MB / 1.089 GB, free: 47 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0005702/0.9518, allocations: 151.5 kB / 1.089 GB, free: 46.99 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.952, allocations: 43.44 kB / 1.089 GB, free: 46.99 MB / 0.8419 GB Notification: Performance of SimCode: time 7.62e-07/0.952, allocations: 0 / 1.089 GB, free: 46.99 MB / 0.8419 GB Notification: Performance of Templates: time 0.03041/0.9824, allocations: 13.46 MB / 1.102 GB, free: 46.38 MB / 0.8419 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 gbode -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