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.001181/0.001181, allocations: 92.16 kB / 16.02 MB, free: 80 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.001548/0.001548, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.379/1.379, 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 9.1.2-maint.9.1.x/package.mo): time 2.366/2.366, allocations: 390.9 MB / 0.667 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003775/0.0003776, allocations: 8 kB / 0.8166 GB, free: 13.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6863/0.6867, allocations: 142.4 MB / 0.9557 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.02019/0.707, allocations: 19.5 MB / 0.9748 GB, free: 8.855 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01174/0.7188, allocations: 6.376 MB / 0.981 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002198/0.721, allocations: 74.34 kB / 0.9811 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001363/0.7224, allocations: 400.9 kB / 0.9814 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.003694/0.7261, allocations: 1.12 MB / 0.9825 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.003173/0.7293, allocations: 1.076 MB / 0.9836 GB, free: 1.66 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.008459/0.7378, allocations: 6.988 MB / 0.9904 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01208/0.7499, allocations: 7.252 MB / 0.9975 GB, free: 4.461 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00335/0.7533, allocations: 1.49 MB / 0.9989 GB, free: 2.965 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003857/0.7572, allocations: 2.024 MB / 1.001 GB, free: 0.9336 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0006126/0.7578, allocations: 176 kB / 1.001 GB, free: 0.7617 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002401/0.7602, allocations: 0.928 MB / 1.002 GB, free: 15.83 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001578/0.7618, allocations: 1.344 MB / 1.003 GB, free: 14.48 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002248/0.7641, allocations: 1.572 MB / 1.005 GB, free: 12.9 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.005705/0.7698, allocations: 5.396 MB / 1.01 GB, free: 7.488 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 8.166e-06/0.7698, allocations: 4 kB / 1.01 GB, free: 7.484 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.475e-06/0.7698, allocations: 0 / 1.01 GB, free: 7.484 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0001727/0.77, allocations: 0 / 1.01 GB, free: 7.484 MB / 0.7637 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.006495/0.7765, allocations: 2.82 MB / 1.013 GB, free: 4.602 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.7766, allocations: 8.031 kB / 1.013 GB, free: 4.594 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00374/0.7803, allocations: 0.641 MB / 1.014 GB, free: 3.949 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003606/0.784, allocations: 1.936 MB / 1.015 GB, free: 1.953 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/0.7841, allocations: 226.3 kB / 1.016 GB, free: 1.73 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005942/0.7848, allocations: 296.2 kB / 1.016 GB, free: 1.441 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008661/0.7934, allocations: 4.89 MB / 1.021 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.939e-05/0.7935, allocations: 11.94 kB / 1.021 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003191/0.7939, allocations: 128 kB / 1.021 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004617/0.7943, allocations: 233.7 kB / 1.021 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006669/0.801, allocations: 3.754 MB / 1.025 GB, free: 8.219 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02367/0.8247, allocations: 21.62 MB / 1.046 GB, free: 0.6016 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001881/0.8267, allocations: 1.319 MB / 1.047 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001512/0.8282, allocations: 1.03 MB / 1.048 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 6.622e-05/0.8283, allocations: 16.94 kB / 1.048 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.927e-05/0.8284, allocations: 47.56 kB / 1.048 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=107): time 3.286e-06/0.8284, allocations: 0 / 1.048 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of matching and sorting (n=138): time 0.02562/0.854, allocations: 8.711 MB / 1.057 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.8541, allocations: 68.72 kB / 1.057 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00191/0.856, allocations: 1.126 MB / 1.058 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001596/0.8562, allocations: 49.7 kB / 1.058 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000933/0.8571, allocations: 1.3 MB / 1.059 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.000475/0.8576, allocations: 485.1 kB / 1.06 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000243/0.8579, allocations: 133.6 kB / 1.06 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.858, allocations: 305.1 kB / 1.06 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/0.8594, allocations: 0.9096 MB / 1.061 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001676/0.8611, allocations: 1.326 MB / 1.062 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003263/0.8644, allocations: 2.422 MB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.487e-05/0.8644, allocations: 8 kB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006464/0.8709, allocations: 3.463 MB / 1.068 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.323e-05/0.8709, allocations: 12.94 kB / 1.068 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.345e-05/0.871, allocations: 12 kB / 1.068 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003428/0.8744, allocations: 1.185 MB / 1.069 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.8755, allocations: 259.5 kB / 1.069 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01762/0.8931, allocations: 12.76 MB / 1.082 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.8946, allocations: 91.97 kB / 1.082 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000253/0.8949, allocations: 64 kB / 1.082 GB, free: 10.62 MB / 0.8419 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 (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): 3 systems {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002199/0.8971, allocations: 1.106 MB / 1.083 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000415/0.8975, allocations: 162.1 kB / 1.083 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006124/0.9036, allocations: 3.188 MB / 1.086 GB, free: 6.137 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.336e-05/0.9037, allocations: 12 kB / 1.086 GB, free: 6.125 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.805e-05/0.9037, allocations: 12 kB / 1.086 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.72e-05/0.9037, allocations: 11.91 kB / 1.086 GB, free: 6.102 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01101/0.9148, allocations: 6.241 MB / 1.092 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/0.9148, allocations: 7.938 kB / 1.092 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006071/0.9154, allocations: 151.8 kB / 1.093 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003011/0.9184, allocations: 1.071 MB / 1.094 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.9186, allocations: 36 kB / 1.094 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01646/0.9351, allocations: 12.44 MB / 1.106 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-05/0.9351, allocations: 8 kB / 1.106 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005806/0.9409, allocations: 3.162 MB / 1.109 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008522/0.9418, allocations: 423.1 kB / 1.109 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003541/0.9422, allocations: 28 kB / 1.109 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009863/0.9432, allocations: 87.83 kB / 1.109 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003738/0.9436, allocations: 120.7 kB / 1.11 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001097/0.9437, allocations: 40 kB / 1.11 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001216/0.9449, allocations: 0.7748 MB / 1.11 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9449, allocations: 4 kB / 1.11 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002217/0.9471, allocations: 0.6562 MB / 1.111 GB, free: 12.22 MB / 0.8731 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 (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): 3 systems {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002903/0.9474, allocations: 139.1 kB / 1.111 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00522/0.9527, allocations: 3.131 MB / 1.114 GB, free: 8.902 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/0.9527, allocations: 4 kB / 1.114 GB, free: 8.898 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.003201/0.9559, allocations: 1.971 MB / 1.116 GB, free: 6.895 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003448/0.9594, allocations: 468.1 kB / 1.117 GB, free: 6.438 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01169/0.9711, allocations: 7.197 MB / 1.124 GB, free: 15.16 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003154/0.9743, allocations: 2.383 MB / 1.126 GB, free: 12.75 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004342/0.9748, allocations: 95.44 kB / 1.126 GB, free: 12.65 MB / 0.8887 GB Notification: Performance of SimCode: time 6.41e-07/0.9748, allocations: 0 / 1.126 GB, free: 12.65 MB / 0.8887 GB Notification: Performance of Templates: time 0.09945/1.074, allocations: 79.08 MB / 1.203 GB, free: 13.64 MB / 0.9669 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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