Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008745/0.0008745, allocations: 98.48 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.001163/0.001163, allocations: 187.2 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.405/1.405, allocations: 223.3 MB / 241 MB, free: 5.316 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.703/2.703, allocations: 437.8 MB / 0.7128 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004118/0.0004122, allocations: 16 kB / 0.8735 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7261/0.7265, allocations: 153.8 MB / 1.024 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid): time 0.01445/0.741, allocations: 11.32 MB / 1.035 GB, free: 4.48 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01014/0.7512, allocations: 5.424 MB / 1.04 GB, free: 15.04 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001458/0.7528, allocations: 31.88 kB / 1.04 GB, free: 15.01 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.7543, allocations: 310.1 kB / 1.04 GB, free: 14.7 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.002258/0.7565, allocations: 0.6029 MB / 1.041 GB, free: 14.1 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002156/0.7587, allocations: 0.6277 MB / 1.042 GB, free: 13.47 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.004252/0.763, allocations: 3.586 MB / 1.045 GB, free: 9.875 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00665/0.7697, allocations: 4.119 MB / 1.049 GB, free: 5.684 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001838/0.7715, allocations: 0.7667 MB / 1.05 GB, free: 4.914 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00212/0.7737, allocations: 1.032 MB / 1.051 GB, free: 3.879 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0005064/0.7742, allocations: 92 kB / 1.051 GB, free: 3.789 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001474/0.7757, allocations: 463.2 kB / 1.051 GB, free: 3.336 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.001198/0.7769, allocations: 0.7248 MB / 1.052 GB, free: 2.609 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001905/0.7788, allocations: 0.8064 MB / 1.053 GB, free: 1.793 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.00373/0.7826, allocations: 2.988 MB / 1.056 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.7826, allocations: 0 / 1.056 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.954e-06/0.7826, allocations: 0 / 1.056 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0001255/0.7827, allocations: 0 / 1.056 GB, free: 14.8 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: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.004465/0.7872, allocations: 1.597 MB / 1.057 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.7873, allocations: 12.03 kB / 1.057 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003089/0.7903, allocations: 498.4 kB / 1.058 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002437/0.7928, allocations: 1.112 MB / 1.059 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/0.7929, allocations: 115.4 kB / 1.059 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006097/0.7936, allocations: 152.1 kB / 1.059 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00642/0.8, allocations: 2.76 MB / 1.062 GB, free: 8.402 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.982e-05/0.8001, allocations: 7.938 kB / 1.062 GB, free: 8.395 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003642/0.8005, allocations: 63.98 kB / 1.062 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003293/0.8008, allocations: 147 kB / 1.062 GB, free: 8.188 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004954/0.8058, allocations: 2.315 MB / 1.064 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01463/0.8204, allocations: 10.49 MB / 1.075 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.8219, allocations: 0.6155 MB / 1.075 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006933/0.8226, allocations: 388.6 kB / 1.076 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001307/0.8227, allocations: 96.95 kB / 1.076 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/0.8228, allocations: 42.5 kB / 1.076 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=36): time 3.136e-06/0.8228, allocations: 3.938 kB / 1.076 GB, free: 9.309 MB / 0.8262 GB Notification: Performance of matching and sorting (n=52): time 0.02271/0.8455, allocations: 6.038 MB / 1.082 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.118e-05/0.8456, allocations: 63.83 kB / 1.082 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001559/0.8472, allocations: 0.8788 MB / 1.083 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001467/0.8473, allocations: 37.7 kB / 1.083 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005995/0.8479, allocations: 0.75 MB / 1.083 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002523/0.8482, allocations: 185.4 kB / 1.083 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001841/0.8484, allocations: 81.67 kB / 1.084 GB, free: 1.172 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001955/0.8486, allocations: 382.8 kB / 1.084 GB, free: 0.7891 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.8499, allocations: 0.6616 MB / 1.085 GB, free: 132 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001459/0.8513, allocations: 1.014 MB / 1.086 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002621/0.854, allocations: 1.693 MB / 1.087 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.854, allocations: 0 / 1.087 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.009475/0.8635, allocations: 3.201 MB / 1.09 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003915/0.8639, allocations: 431.4 kB / 1.091 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.041e-05/0.8639, allocations: 12 kB / 1.091 GB, free: 9.277 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007755/0.8717, allocations: 1.751 MB / 1.092 GB, free: 7.512 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.8728, allocations: 231.6 kB / 1.093 GB, free: 7.285 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01393/0.8868, allocations: 9.929 MB / 1.102 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00152/0.8883, allocations: 167.6 kB / 1.103 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001805/0.8886, allocations: 40 kB / 1.103 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.8886, allocations: 8.062 kB / 1.103 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007646/0.8962, allocations: 2.637 MB / 1.105 GB, free: 9.969 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.242e-05/0.8963, allocations: 12 kB / 1.105 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005064/0.9014, allocations: 1.164 MB / 1.106 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.9026, allocations: 255.6 kB / 1.107 GB, free: 8.535 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007411/0.91, allocations: 5.426 MB / 1.112 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001363/0.9114, allocations: 147.8 kB / 1.112 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001897/0.9116, allocations: 44.03 kB / 1.112 GB, free: 2.648 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (99): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,2), (2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.00152/0.9131, allocations: 0.8478 MB / 1.113 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002423/0.9134, allocations: 83 kB / 1.113 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008458/0.9219, allocations: 2.625 MB / 1.116 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.9219, allocations: 8 kB / 1.116 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/0.9219, allocations: 0 / 1.116 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.9219, allocations: 7.922 kB / 1.116 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/0.9335, allocations: 4.542 MB / 1.12 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/0.9335, allocations: 4 kB / 1.12 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004427/0.934, allocations: 95.86 kB / 1.12 GB, free: 10.29 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006832/0.9408, allocations: 1.599 MB / 1.122 GB, free: 8.672 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.9409, allocations: 12 kB / 1.122 GB, free: 8.66 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0119/0.9529, allocations: 9.465 MB / 1.131 GB, free: 14.66 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.9529, allocations: 4.031 kB / 1.131 GB, free: 14.66 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007741/0.9607, allocations: 2.578 MB / 1.133 GB, free: 12.02 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006247/0.9613, allocations: 276.1 kB / 1.134 GB, free: 11.73 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000247/0.9616, allocations: 12 kB / 1.134 GB, free: 11.72 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.9626, allocations: 131.7 kB / 1.134 GB, free: 11.59 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002716/0.9629, allocations: 51.88 kB / 1.134 GB, free: 11.54 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.923e-05/0.963, allocations: 16 kB / 1.134 GB, free: 11.52 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001144/0.9641, allocations: 0.6395 MB / 1.134 GB, free: 10.89 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9641, allocations: 4 kB / 1.134 GB, free: 10.88 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.002563/0.9667, allocations: 0.5898 MB / 1.135 GB, free: 10.29 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,2), (2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002568/0.967, allocations: 123.1 kB / 1.135 GB, free: 10.16 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.005664/0.9726, allocations: 3.157 MB / 1.138 GB, free: 6.93 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.9727, allocations: 0 / 1.138 GB, free: 6.93 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001882/0.9746, allocations: 1.186 MB / 1.139 GB, free: 5.691 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001682/0.9763, allocations: 237.1 kB / 1.14 GB, free: 5.465 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006451/0.9827, allocations: 3.888 MB / 1.143 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001766/0.9845, allocations: 1.63 MB / 1.145 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003113/0.9849, allocations: 63.42 kB / 1.145 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of SimCode: time 5.52e-07/0.9849, allocations: 4 kB / 1.145 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of Templates: time 0.06528/1.05, allocations: 57.68 MB / 1.201 GB, free: 6.109 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches