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.0009639/0.0009639, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008285/0.008285, allocations: 171.9 kB / 16.27 MB, free: 6.66 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.344 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.499/2.499, allocations: 390.9 MB / 0.6663 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003837/0.0003836, allocations: 8 kB / 0.816 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.78/0.7804, allocations: 142.4 MB / 0.955 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.006964/0.7874, allocations: 5.862 MB / 0.9608 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00674/0.7942, allocations: 4.464 MB / 0.9651 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008372/0.7951, allocations: 21.38 kB / 0.9651 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0007538/0.7958, allocations: 150.1 kB / 0.9653 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002998/0.7989, allocations: 0.7123 MB / 0.966 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001342/0.8002, allocations: 293.2 kB / 0.9663 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003315/0.8036, allocations: 1.439 MB / 0.9677 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001332/0.8049, allocations: 0.5456 MB / 0.9682 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001159/0.8061, allocations: 399.6 kB / 0.9686 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00131/0.8074, allocations: 472.2 kB / 0.969 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0002161/0.8076, allocations: 33.62 kB / 0.9691 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001004/0.8086, allocations: 308.4 kB / 0.9693 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0003724/0.809, allocations: 204.7 kB / 0.9695 GB, free: 12.82 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0008044/0.8099, allocations: 393.3 kB / 0.9699 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001704/0.8116, allocations: 1.032 MB / 0.9709 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.8116, allocations: 0 / 0.9709 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.705e-06/0.8116, allocations: 0 / 0.9709 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.967e-05/0.8116, allocations: 1.188 kB / 0.9709 GB, free: 11.84 MB / 0.7325 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.0024/0.814, allocations: 0.9644 MB / 0.9719 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.8141, allocations: 13.41 kB / 0.9719 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003693/0.8178, allocations: 0.6503 MB / 0.9725 GB, free: 10.78 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.8189, allocations: 0.5412 MB / 0.973 GB, free: 10.32 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.274e-05/0.819, allocations: 42.86 kB / 0.9731 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.8191, allocations: 53.09 kB / 0.9731 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002314/0.8214, allocations: 1.027 MB / 0.9741 GB, free: 9.648 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.8214, allocations: 4.969 kB / 0.9741 GB, free: 9.645 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.003e-05/0.8215, allocations: 22.59 kB / 0.9742 GB, free: 9.629 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.618e-05/0.8216, allocations: 51.97 kB / 0.9742 GB, free: 9.609 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002621/0.8242, allocations: 1.015 MB / 0.9752 GB, free: 9.113 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00467/0.8289, allocations: 3.528 MB / 0.9787 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.8305, allocations: 0.5168 MB / 0.9792 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006199/0.8312, allocations: 252 kB / 0.9794 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.788e-05/0.8312, allocations: 10.61 kB / 0.9794 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.8313, allocations: 37.69 kB / 0.9794 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=31): time 1.864e-06/0.8313, allocations: 0 / 0.9794 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of matching and sorting (n=43): time 0.007572/0.8388, allocations: 2.23 MB / 0.9816 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.251e-05/0.8389, allocations: 59.41 kB / 0.9817 GB, free: 3.484 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007127/0.8396, allocations: 0.5666 MB / 0.9822 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.474e-05/0.8397, allocations: 33.7 kB / 0.9823 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002474/0.8399, allocations: 360.1 kB / 0.9826 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.8401, allocations: 145.9 kB / 0.9827 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-05/0.8402, allocations: 37.7 kB / 0.9828 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001621/0.8404, allocations: 378.7 kB / 0.9831 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000699/0.8411, allocations: 280.9 kB / 0.9834 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007749/0.8419, allocations: 387 kB / 0.9838 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001548/0.8434, allocations: 0.6694 MB / 0.9844 GB, free: 0.5352 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.8434, allocations: 0 / 0.9844 GB, free: 0.5352 MB / 0.7325 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002658/0.8461, allocations: 0.9818 MB / 0.9854 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001646/0.8463, allocations: 180.5 kB / 0.9856 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.747e-05/0.8463, allocations: 4 kB / 0.9856 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/0.8476, allocations: 272.8 kB / 0.9858 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006533/0.8482, allocations: 131.8 kB / 0.986 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00958/0.8578, allocations: 8.486 MB / 0.9942 GB, free: 5.609 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/0.859, allocations: 51.95 kB / 0.9943 GB, free: 5.559 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.851e-05/0.8591, allocations: 20 kB / 0.9943 GB, free: 5.539 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.8592, allocations: 8.062 kB / 0.9943 GB, free: 5.531 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003816/0.863, allocations: 1.089 MB / 0.9954 GB, free: 4.367 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.863, allocations: 7.984 kB / 0.9954 GB, free: 4.359 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/0.8642, allocations: 217.2 kB / 0.9956 GB, free: 4.129 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009077/0.8651, allocations: 139.8 kB / 0.9957 GB, free: 3.992 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008578/0.8737, allocations: 8.168 MB / 1.004 GB, free: 11.02 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008165/0.8746, allocations: 51.98 kB / 1.004 GB, free: 10.97 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.222e-05/0.8746, allocations: 20 kB / 1.004 GB, free: 10.95 MB / 0.7637 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.0004676/0.8751, allocations: 320.9 kB / 1.004 GB, free: 10.63 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.8752, allocations: 67.16 kB / 1.004 GB, free: 10.56 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001643/0.8754, allocations: 82.38 kB / 1.004 GB, free: 10.48 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.8754, allocations: 4 kB / 1.004 GB, free: 10.47 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/0.8754, allocations: 0 / 1.004 GB, free: 10.47 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.8754, allocations: 0 / 1.004 GB, free: 10.47 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008302/0.8763, allocations: 0.6533 MB / 1.005 GB, free: 9.77 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.8763, allocations: 0 / 1.005 GB, free: 9.77 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004979/0.8768, allocations: 95.84 kB / 1.005 GB, free: 9.676 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009838/0.8778, allocations: 256.9 kB / 1.005 GB, free: 9.406 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.755e-05/0.8778, allocations: 12 kB / 1.005 GB, free: 9.395 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006848/0.8847, allocations: 8.439 MB / 1.013 GB, free: 160 kB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.8847, allocations: 0 / 1.013 GB, free: 160 kB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002587/0.8873, allocations: 0.9599 MB / 1.014 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000344/0.8877, allocations: 180.3 kB / 1.015 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.45e-05/0.8878, allocations: 11.94 kB / 1.015 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005108/0.8883, allocations: 51.95 kB / 1.015 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.8884, allocations: 39.94 kB / 1.015 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.202e-05/0.8885, allocations: 11.98 kB / 1.015 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004976/0.889, allocations: 403.1 kB / 1.015 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.889, allocations: 0 / 1.015 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001108/0.8901, allocations: 300 kB / 1.015 GB, free: 14.17 MB / 0.7794 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.0001582/0.8903, allocations: 115.2 kB / 1.015 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.004062/0.8943, allocations: 2.422 MB / 1.018 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.8943, allocations: 0 / 1.018 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001506/0.8959, allocations: 1.019 MB / 1.019 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.897, allocations: 208.8 kB / 1.019 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002768/0.8998, allocations: 1.612 MB / 1.021 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006337/0.9005, allocations: 0.9821 MB / 1.022 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0006003/0.9011, allocations: 149.4 kB / 1.022 GB, free: 7.383 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001415/0.9012, allocations: 47.42 kB / 1.022 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of SimCode: time 1.373e-06/0.9012, allocations: 7.938 kB / 1.022 GB, free: 7.328 MB / 0.7794 GB Notification: Performance of Templates: time 0.02447/0.9257, allocations: 12.84 MB / 1.034 GB, free: 10.63 MB / 0.795 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