Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009987/0.000999, allocations: 99 kB / 15.05 MB, free: 1.105 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.001034/0.001034, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.504/2.504, allocations: 390.3 MB / 0.6653 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000367/0.000367, allocations: 8 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8726/0.873, allocations: 142.3 MB / 0.9535 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.02073/0.8937, allocations: 17.65 MB / 0.9708 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01583/0.9096, allocations: 6.208 MB / 0.9768 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002709/0.9124, allocations: 69.91 kB / 0.9769 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.00202/0.9144, allocations: 398 kB / 0.9773 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.006498/0.9209, allocations: 0.878 MB / 0.9781 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.004097/0.9251, allocations: 0.7739 MB / 0.9789 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.006498/0.9316, allocations: 2.313 MB / 0.9811 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01322/0.9449, allocations: 6.379 MB / 0.9874 GB, free: 13.39 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002986/0.9479, allocations: 1.316 MB / 0.9886 GB, free: 12.07 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002399/0.9503, allocations: 1.374 MB / 0.99 GB, free: 10.69 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0004122/0.9507, allocations: 176 kB / 0.9902 GB, free: 10.52 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001242/0.952, allocations: 411.6 kB / 0.9905 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.001154/0.9531, allocations: 1.232 MB / 0.9918 GB, free: 8.879 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0007998/0.954, allocations: 0.6408 MB / 0.9924 GB, free: 8.23 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.005218/0.9592, allocations: 5.295 MB / 0.9975 GB, free: 2.922 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.9592, allocations: 0 / 0.9975 GB, free: 2.922 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.775e-06/0.9592, allocations: 0 / 0.9975 GB, free: 2.922 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 0.000169/0.9594, allocations: 0 / 0.9975 GB, free: 2.922 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.005884/0.9653, allocations: 2.845 MB / 1 GB, free: 16 kB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.9654, allocations: 8.031 kB / 1 GB, free: 8 kB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003335/0.9687, allocations: 0.6247 MB / 1.001 GB, free: 15.38 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004084/0.9728, allocations: 1.885 MB / 1.003 GB, free: 13.43 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.973, allocations: 229.9 kB / 1.003 GB, free: 13.2 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005256/0.9735, allocations: 295.8 kB / 1.003 GB, free: 12.92 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008361/0.9819, allocations: 4.837 MB / 1.008 GB, free: 7.887 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.374e-05/0.982, allocations: 19.84 kB / 1.008 GB, free: 7.867 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003039/0.9823, allocations: 127.9 kB / 1.008 GB, free: 7.742 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004239/0.9827, allocations: 233.7 kB / 1.008 GB, free: 7.512 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006347/0.9891, allocations: 3.727 MB / 1.012 GB, free: 3.773 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03102/1.02, allocations: 21.61 MB / 1.033 GB, free: 12.16 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002555/1.023, allocations: 1.3 MB / 1.034 GB, free: 10.85 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 8.642e-05/1.023, allocations: 9 kB / 1.034 GB, free: 10.84 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.835e-05/1.023, allocations: 47.56 kB / 1.034 GB, free: 10.79 MB / 0.795 GB Notification: Performance of pre-optimization done (n=107): time 4.227e-06/1.023, allocations: 0 / 1.034 GB, free: 10.79 MB / 0.795 GB Notification: Performance of matching and sorting (n=138): time 0.02536/1.048, allocations: 8.649 MB / 1.043 GB, free: 2.082 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/1.048, allocations: 64.72 kB / 1.043 GB, free: 2.008 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001499/1.05, allocations: 1.122 MB / 1.044 GB, free: 0.8789 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001806/1.05, allocations: 49.7 kB / 1.044 GB, free: 0.8242 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008483/1.051, allocations: 1.296 MB / 1.045 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004178/1.051, allocations: 485.1 kB / 1.046 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.648e-05/1.051, allocations: 32 kB / 1.046 GB, free: 15 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001547/1.052, allocations: 369.9 kB / 1.046 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/1.053, allocations: 0.9096 MB / 1.047 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001414/1.054, allocations: 1.307 MB / 1.048 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/1.056, allocations: 1.135 MB / 1.049 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.727e-06/1.056, allocations: 7.781 kB / 1.049 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.005652/1.061, allocations: 3.449 MB / 1.053 GB, free: 7.637 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.006e-05/1.061, allocations: 12 kB / 1.053 GB, free: 7.625 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.151e-05/1.061, allocations: 12 kB / 1.053 GB, free: 7.613 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003072/1.065, allocations: 1.19 MB / 1.054 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00092/1.066, allocations: 259.6 kB / 1.054 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01571/1.081, allocations: 13.18 MB / 1.067 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/1.083, allocations: 91.97 kB / 1.067 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001495/1.083, allocations: 67.98 kB / 1.067 GB, free: 8.43 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,92.0%) 17,(5,92.0%) 17,(5,88.0%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00185/1.085, allocations: 1.114 MB / 1.068 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002977/1.085, allocations: 162.1 kB / 1.069 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005274/1.09, allocations: 3.158 MB / 1.072 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/1.09, allocations: 16 kB / 1.072 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.829e-05/1.09, allocations: 12 kB / 1.072 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.531e-05/1.09, allocations: 7.969 kB / 1.072 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009751/1.1, allocations: 6.241 MB / 1.078 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/1.1, allocations: 4 kB / 1.078 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005649/1.101, allocations: 147.7 kB / 1.078 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00275/1.103, allocations: 1.077 MB / 1.079 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.527e-05/1.104, allocations: 24 kB / 1.079 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01519/1.119, allocations: 12.92 MB / 1.092 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/1.119, allocations: 4.125 kB / 1.092 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005102/1.124, allocations: 3.385 MB / 1.095 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008913/1.125, allocations: 427.1 kB / 1.095 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002128/1.125, allocations: 39.94 kB / 1.095 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007828/1.126, allocations: 79.84 kB / 1.095 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002996/1.126, allocations: 124.7 kB / 1.096 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.452e-05/1.126, allocations: 44 kB / 1.096 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0009426/1.127, allocations: 0.7514 MB / 1.096 GB, free: 9.883 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/1.127, allocations: 0 / 1.096 GB, free: 9.883 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001863/1.129, allocations: 0.6602 MB / 1.097 GB, free: 9.223 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,84.0%) 17,(5,88.0%) 25,(5,92.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002226/1.129, allocations: 143.1 kB / 1.097 GB, free: 9.074 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.004783/1.134, allocations: 3.13 MB / 1.1 GB, free: 5.902 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/1.134, allocations: 4 kB / 1.1 GB, free: 5.898 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.002844/1.137, allocations: 1.956 MB / 1.102 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001919/1.139, allocations: 452.9 kB / 1.103 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008506/1.147, allocations: 6.454 MB / 1.109 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002136/1.15, allocations: 2.387 MB / 1.111 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.001095/1.151, allocations: 346.1 kB / 1.111 GB, free: 10.17 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002321/1.151, allocations: 91.44 kB / 1.112 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of SimCode: time 1.743e-06/1.151, allocations: 7.938 kB / 1.112 GB, free: 10.08 MB / 0.8731 GB Notification: Performance of Templates: time 0.04803/1.199, allocations: 30.17 MB / 1.141 GB, free: 12.32 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches