Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.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.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001027/0.001028, allocations: 98.8 kB / 16.02 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.001324/0.001324, allocations: 187.1 kB / 16.92 MB, free: 6.75 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.363/1.363, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.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.678/2.678, allocations: 437.8 MB / 0.7128 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003496/0.0003496, allocations: 8 kB / 0.8735 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7706/0.7709, allocations: 153.8 MB / 1.024 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid): time 0.006488/0.7775, allocations: 4.737 MB / 1.028 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005639/0.7832, allocations: 3.312 MB / 1.032 GB, free: 7.809 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000446/0.7836, allocations: 11.94 kB / 1.032 GB, free: 7.797 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0007952/0.7845, allocations: 163.1 kB / 1.032 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001333/0.7858, allocations: 356.3 kB / 1.032 GB, free: 7.289 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008693/0.7867, allocations: 243.5 kB / 1.032 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001398/0.7881, allocations: 0.8687 MB / 1.033 GB, free: 6.18 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001561/0.7897, allocations: 0.829 MB / 1.034 GB, free: 5.316 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004938/0.7902, allocations: 215.2 kB / 1.034 GB, free: 5.105 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006209/0.7908, allocations: 271 kB / 1.034 GB, free: 4.84 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.517e-05/0.7909, allocations: 16 kB / 1.034 GB, free: 4.824 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000744/0.7917, allocations: 331.4 kB / 1.035 GB, free: 4.5 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002268/0.7919, allocations: 143.6 kB / 1.035 GB, free: 4.359 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.00037/0.7923, allocations: 224.6 kB / 1.035 GB, free: 4.133 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0009006/0.7932, allocations: 0.6643 MB / 1.036 GB, free: 3.469 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.7932, allocations: 7.938 kB / 1.036 GB, free: 3.461 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.173e-05/0.7933, allocations: 0 / 1.036 GB, free: 3.461 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.536e-05/0.7933, allocations: 0 / 1.036 GB, free: 3.461 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001605/0.7949, allocations: 0.7209 MB / 1.036 GB, free: 2.691 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.795, allocations: 8.031 kB / 1.036 GB, free: 2.684 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003229/0.7982, allocations: 0.6984 MB / 1.037 GB, free: 1.984 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008529/0.7991, allocations: 459.8 kB / 1.038 GB, free: 1.496 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.806e-05/0.7991, allocations: 21.03 kB / 1.038 GB, free: 1.477 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.7992, allocations: 32.12 kB / 1.038 GB, free: 1.445 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.8011, allocations: 0.8512 MB / 1.038 GB, free: 0.5664 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/0.8011, allocations: 0 / 1.038 GB, free: 0.5664 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.213e-05/0.8012, allocations: 12 kB / 1.038 GB, free: 0.5547 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001999/0.8014, allocations: 60.59 kB / 1.039 GB, free: 0.4961 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002358/0.8038, allocations: 0.9506 MB / 1.039 GB, free: 15.54 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004541/0.8083, allocations: 2.879 MB / 1.042 GB, free: 12.45 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00183/0.8102, allocations: 0.5689 MB / 1.043 GB, free: 11.88 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008201/0.811, allocations: 316.6 kB / 1.043 GB, free: 11.56 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001085/0.8112, allocations: 85.11 kB / 1.043 GB, free: 11.46 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.8112, allocations: 42.5 kB / 1.043 GB, free: 11.41 MB / 0.795 GB Notification: Performance of pre-optimization done (n=22): time 2.044e-06/0.8112, allocations: 0 / 1.043 GB, free: 11.41 MB / 0.795 GB Notification: Performance of matching and sorting (n=32): time 0.01452/0.8257, allocations: 3.639 MB / 1.047 GB, free: 7.719 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/0.8258, allocations: 59.39 kB / 1.047 GB, free: 7.648 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006567/0.8265, allocations: 400.4 kB / 1.047 GB, free: 7.254 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 7.199e-05/0.8266, allocations: 33.7 kB / 1.047 GB, free: 7.215 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.8268, allocations: 235.8 kB / 1.048 GB, free: 6.98 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/0.827, allocations: 106.5 kB / 1.048 GB, free: 6.875 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.8271, allocations: 37.7 kB / 1.048 GB, free: 6.832 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001617/0.8272, allocations: 350.8 kB / 1.048 GB, free: 6.48 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.8284, allocations: 407.6 kB / 1.048 GB, free: 6.082 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/0.8295, allocations: 480.1 kB / 1.049 GB, free: 5.582 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002211/0.8317, allocations: 0.871 MB / 1.05 GB, free: 4.684 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.8318, allocations: 0 / 1.05 GB, free: 4.684 MB / 0.795 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.005916/0.8377, allocations: 1.701 MB / 1.051 GB, free: 2.965 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.8378, allocations: 148 kB / 1.051 GB, free: 2.789 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.036e-06/0.8378, allocations: 0 / 1.051 GB, free: 2.789 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004512/0.8423, allocations: 0.9308 MB / 1.052 GB, free: 1.848 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007592/0.8431, allocations: 135.8 kB / 1.053 GB, free: 1.715 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008917/0.8521, allocations: 6.225 MB / 1.059 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009664/0.8531, allocations: 123.8 kB / 1.059 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-05/0.8532, allocations: 20.05 kB / 1.059 GB, free: 10.94 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.01e-05/0.8532, allocations: 4.938 kB / 1.059 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005424/0.8586, allocations: 1.636 MB / 1.06 GB, free: 9.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.8587, allocations: 4 kB / 1.06 GB, free: 9.242 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003153/0.8618, allocations: 0.6862 MB / 1.061 GB, free: 8.543 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007244/0.8626, allocations: 135.8 kB / 1.061 GB, free: 8.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00593/0.8685, allocations: 5.34 MB / 1.066 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009059/0.8694, allocations: 107.9 kB / 1.066 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.128e-05/0.8695, allocations: 23.98 kB / 1.066 GB, free: 2.547 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,4,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004523/0.87, allocations: 324.9 kB / 1.067 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001236/0.8701, allocations: 43.47 kB / 1.067 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005428/0.8756, allocations: 1.583 MB / 1.068 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.8756, allocations: 4 kB / 1.068 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.8756, allocations: 4 kB / 1.068 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.8756, allocations: 3.938 kB / 1.068 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006314/0.8819, allocations: 2.256 MB / 1.071 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/0.882, allocations: 3.984 kB / 1.071 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004423/0.8824, allocations: 83.84 kB / 1.071 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004008/0.8864, allocations: 0.8647 MB / 1.072 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.312e-05/0.8865, allocations: 8 kB / 1.072 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00766/0.8942, allocations: 6.071 MB / 1.077 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.8942, allocations: 0 / 1.077 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005111/0.8994, allocations: 1.585 MB / 1.079 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003023/0.8997, allocations: 168.7 kB / 1.079 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.8998, allocations: 11.94 kB / 1.079 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007258/0.9005, allocations: 91.86 kB / 1.079 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.9008, allocations: 39.89 kB / 1.079 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.956e-05/0.9008, allocations: 7.984 kB / 1.079 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004913/0.9013, allocations: 307.1 kB / 1.08 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9013, allocations: 0 / 1.08 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001064/0.9024, allocations: 235.9 kB / 1.08 GB, free: 4.305 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,4,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000202/0.9026, allocations: 115.2 kB / 1.08 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.004828/0.9074, allocations: 2.228 MB / 1.082 GB, free: 1.855 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.9075, allocations: 0 / 1.082 GB, free: 1.855 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001633/0.9091, allocations: 0.809 MB / 1.083 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008604/0.91, allocations: 117.2 kB / 1.083 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002265/0.9123, allocations: 1.376 MB / 1.084 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000533/0.9128, allocations: 0.9141 MB / 1.085 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001821/0.913, allocations: 43.41 kB / 1.085 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of SimCode: time 4.4e-07/0.913, allocations: 0 / 1.085 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of Templates: time 0.02034/0.9334, allocations: 15.29 MB / 1.1 GB, free: 15.24 MB / 0.8575 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches