Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.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.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009142/0.0009141, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001116/0.001116, allocations: 168.7 kB / 15.95 MB, free: 204 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.456/1.456, allocations: 223.3 MB / 240 MB, free: 5.285 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.74/2.74, allocations: 390.9 MB / 0.666 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000417/0.0004171, allocations: 8 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.892/0.8924, allocations: 142.4 MB / 0.9544 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.006102/0.8986, allocations: 6.057 MB / 0.9604 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00439/0.903, allocations: 2.9 MB / 0.9632 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007031/0.9037, allocations: 23.62 kB / 0.9632 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004085/0.9041, allocations: 137 kB / 0.9633 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001152/0.9053, allocations: 412.2 kB / 0.9637 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000964/0.9063, allocations: 336 kB / 0.9641 GB, free: 288 kB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.00162/0.9079, allocations: 1.328 MB / 0.9654 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001963/0.9099, allocations: 0.9348 MB / 0.9663 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009015/0.9108, allocations: 385.9 kB / 0.9666 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007642/0.9116, allocations: 489.1 kB / 0.9671 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 9e-05/0.9117, allocations: 35.19 kB / 0.9671 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006863/0.9124, allocations: 187.5 kB / 0.9673 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0003335/0.9127, allocations: 266.6 kB / 0.9676 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002657/0.913, allocations: 177.3 kB / 0.9677 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001073/0.9141, allocations: 0.9144 MB / 0.9686 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.9141, allocations: 0 / 0.9686 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.723e-06/0.9141, allocations: 0 / 0.9686 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.098e-05/0.9141, allocations: 0.9688 kB / 0.9686 GB, free: 13.44 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001804/0.9159, allocations: 1.016 MB / 0.9696 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.916, allocations: 9.031 kB / 0.9696 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001519/0.9175, allocations: 240.8 kB / 0.9699 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009131/0.9184, allocations: 0.5421 MB / 0.9704 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.917e-05/0.9185, allocations: 47.53 kB / 0.9704 GB, free: 12.06 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.9186, allocations: 62.02 kB / 0.9705 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001697/0.9203, allocations: 1.077 MB / 0.9716 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/0.9203, allocations: 7.281 kB / 0.9716 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.204e-05/0.9204, allocations: 37.86 kB / 0.9716 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001603/0.9206, allocations: 92.61 kB / 0.9717 GB, free: 11.19 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.9219, allocations: 0.7475 MB / 0.9724 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005843/0.9277, allocations: 5.897 MB / 0.9782 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.9288, allocations: 0.5504 MB / 0.9787 GB, free: 5.043 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004899/0.9293, allocations: 334.5 kB / 0.979 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.161e-05/0.9294, allocations: 5.188 kB / 0.979 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.9294, allocations: 38.16 kB / 0.9791 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 3.045e-06/0.9294, allocations: 4 kB / 0.9791 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.004319/0.9337, allocations: 1.994 MB / 0.981 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.3e-05/0.9338, allocations: 55.78 kB / 0.9811 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007246/0.9345, allocations: 0.5516 MB / 0.9816 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.9346, allocations: 41.7 kB / 0.9817 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003146/0.9349, allocations: 418.9 kB / 0.9821 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000138/0.9351, allocations: 169.6 kB / 0.9822 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.093e-05/0.9351, allocations: 8 kB / 0.9822 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001786/0.9353, allocations: 378.8 kB / 0.9826 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000399/0.9357, allocations: 273.8 kB / 0.9828 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005775/0.9363, allocations: 493 kB / 0.9833 GB, free: 1.148 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004985/0.9368, allocations: 350 kB / 0.9836 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.9368, allocations: 0 / 0.9836 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001763/0.9385, allocations: 1.079 MB / 0.9847 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.9386, allocations: 8 kB / 0.9847 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/0.9386, allocations: 8 kB / 0.9847 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008463/0.9395, allocations: 283.5 kB / 0.985 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004804/0.94, allocations: 123.8 kB / 0.9851 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006386/0.9463, allocations: 6.595 MB / 0.9915 GB, free: 8.156 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007302/0.9471, allocations: 44.03 kB / 0.9916 GB, free: 8.113 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.745e-05/0.9472, allocations: 28 kB / 0.9916 GB, free: 8.086 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005229/0.9477, allocations: 253.5 kB / 0.9919 GB, free: 7.828 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001994/0.9479, allocations: 75.11 kB / 0.9919 GB, free: 7.754 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001782/0.9497, allocations: 0.8808 MB / 0.9928 GB, free: 6.848 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.9498, allocations: 11.98 kB / 0.9928 GB, free: 6.836 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.9498, allocations: 4 kB / 0.9928 GB, free: 6.832 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.9498, allocations: 0 / 0.9928 GB, free: 6.832 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00294/0.9527, allocations: 1.717 MB / 0.9945 GB, free: 5.027 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.9527, allocations: 4 kB / 0.9945 GB, free: 5.023 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/0.953, allocations: 60.08 kB / 0.9945 GB, free: 4.965 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007362/0.9538, allocations: 275.2 kB / 0.9948 GB, free: 4.684 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.923e-05/0.9538, allocations: 12 kB / 0.9948 GB, free: 4.672 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006704/0.9605, allocations: 6.595 MB / 1.001 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.9606, allocations: 0 / 1.001 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.9623, allocations: 0.9795 MB / 1.002 GB, free: 12.51 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004589/0.9628, allocations: 200.2 kB / 1.002 GB, free: 12.29 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001903/0.963, allocations: 15.95 kB / 1.002 GB, free: 12.28 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004528/0.9635, allocations: 27.95 kB / 1.002 GB, free: 12.25 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.9636, allocations: 47.83 kB / 1.002 GB, free: 12.2 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.109e-05/0.9636, allocations: 12 kB / 1.003 GB, free: 12.19 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0005802/0.9642, allocations: 387.1 kB / 1.003 GB, free: 11.82 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9642, allocations: 0 / 1.003 GB, free: 11.82 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001048/0.9653, allocations: 228 kB / 1.003 GB, free: 11.6 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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): 27 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001853/0.9655, allocations: 115 kB / 1.003 GB, free: 11.48 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002147/0.9676, allocations: 1.26 MB / 1.004 GB, free: 10.17 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.9677, allocations: 4 kB / 1.004 GB, free: 10.16 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001318/0.969, allocations: 0.8936 MB / 1.005 GB, free: 9.219 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001245/0.9702, allocations: 205.9 kB / 1.006 GB, free: 9.02 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002824/0.9731, allocations: 1.586 MB / 1.007 GB, free: 7.387 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007599/0.9739, allocations: 1.012 MB / 1.008 GB, free: 6.348 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004975/0.9744, allocations: 134.1 kB / 1.008 GB, free: 6.215 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.9745, allocations: 39.44 kB / 1.008 GB, free: 6.176 MB / 0.7637 GB Notification: Performance of SimCode: time 5.21e-07/0.9745, allocations: 0 / 1.008 GB, free: 6.176 MB / 0.7637 GB Notification: Performance of Templates: time 0.02057/0.9951, allocations: 10.28 MB / 1.018 GB, free: 12.01 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches