Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.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.ACSimpleGridMedium,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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium,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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.00101, allocations: 87.03 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.00127/0.00127, 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.542/1.542, allocations: 223.3 MB / 240 MB, free: 5.406 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.648/2.648, allocations: 390.9 MB / 0.666 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003579/0.0003579, allocations: 12 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.825/0.8253, allocations: 142.4 MB / 0.9544 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium): time 0.005428/0.8309, allocations: 4.591 MB / 0.9589 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005073/0.836, allocations: 3.492 MB / 0.9623 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004161/0.8364, allocations: 9.562 kB / 0.9623 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008739/0.8373, allocations: 213.9 kB / 0.9626 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001223/0.8386, allocations: 358.7 kB / 0.9629 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006737/0.8392, allocations: 189.4 kB / 0.9631 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001119/0.8404, allocations: 0.7555 MB / 0.9638 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001187/0.8416, allocations: 0.7481 MB / 0.9645 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003365/0.8419, allocations: 198.8 kB / 0.9647 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004462/0.8424, allocations: 263.3 kB / 0.965 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.827e-05/0.8424, allocations: 21.72 kB / 0.965 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001055/0.8435, allocations: 321.8 kB / 0.9653 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002032/0.8437, allocations: 146.8 kB / 0.9655 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001676/0.8439, allocations: 108.7 kB / 0.9656 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001148/0.8451, allocations: 0.7626 MB / 0.9663 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.8451, allocations: 1.031 kB / 0.9663 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.843e-06/0.8451, allocations: 0 / 0.9663 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.113e-05/0.8451, allocations: 3.938 kB / 0.9663 GB, free: 14.93 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: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001663/0.8468, allocations: 0.7583 MB / 0.967 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.8468, allocations: 9.406 kB / 0.9671 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002977/0.8498, allocations: 0.7113 MB / 0.9677 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001251/0.8511, allocations: 0.5367 MB / 0.9683 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.308e-05/0.8511, allocations: 24.91 kB / 0.9683 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.892e-05/0.8512, allocations: 32.23 kB / 0.9683 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001896/0.8531, allocations: 0.8425 MB / 0.9691 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.518e-05/0.8532, allocations: 5.375 kB / 0.9692 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.819e-05/0.8532, allocations: 11.34 kB / 0.9692 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002408/0.8535, allocations: 69.75 kB / 0.9692 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002085/0.8556, allocations: 0.9352 MB / 0.9701 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004545/0.8601, allocations: 2.96 MB / 0.973 GB, free: 9.984 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.8617, allocations: 0.5668 MB / 0.9736 GB, free: 9.691 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007221/0.8625, allocations: 316.9 kB / 0.9739 GB, free: 9.535 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001203/0.8626, allocations: 86.17 kB / 0.974 GB, free: 9.438 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.8627, allocations: 41.36 kB / 0.974 GB, free: 9.391 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=22): time 2.004e-06/0.8627, allocations: 0 / 0.974 GB, free: 9.391 MB / 0.7325 GB Notification: Performance of matching and sorting (n=36): time 0.01361/0.8763, allocations: 4.073 MB / 0.978 GB, free: 6.934 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.402e-05/0.8764, allocations: 85.06 kB / 0.9781 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006385/0.877, allocations: 453.5 kB / 0.9785 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.878e-05/0.8771, allocations: 41.7 kB / 0.9785 GB, free: 6.336 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.8773, allocations: 236.1 kB / 0.9788 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.8774, allocations: 126.2 kB / 0.9789 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.945e-05/0.8775, allocations: 8 kB / 0.9789 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.8776, allocations: 350.8 kB / 0.9792 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009171/0.8786, allocations: 440.5 kB / 0.9797 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001/0.8796, allocations: 0.5251 MB / 0.9802 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009717/0.8805, allocations: 489.2 kB / 0.9806 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.8806, allocations: 0 / 0.9806 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.005539/0.8861, allocations: 1.916 MB / 0.9825 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001128/0.8862, allocations: 156 kB / 0.9827 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.8863, allocations: 0 / 0.9827 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004453/0.8907, allocations: 1.102 MB / 0.9837 GB, free: 0.9219 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006291/0.8914, allocations: 131.8 kB / 0.9839 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01023/0.9016, allocations: 6.382 MB / 0.9901 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009463/0.9026, allocations: 123.9 kB / 0.9902 GB, free: 10.03 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.051e-05/0.9026, allocations: 15.98 kB / 0.9902 GB, free: 10.01 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.9027, allocations: 4 kB / 0.9902 GB, free: 10.01 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004668/0.9073, allocations: 1.64 MB / 0.9918 GB, free: 8.363 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.9074, allocations: 7.984 kB / 0.9918 GB, free: 8.355 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002974/0.9103, allocations: 0.7937 MB / 0.9926 GB, free: 7.555 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005637/0.9109, allocations: 139.7 kB / 0.9927 GB, free: 7.418 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007962/0.9189, allocations: 5.558 MB / 0.9982 GB, free: 1.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008907/0.9198, allocations: 111.9 kB / 0.9983 GB, free: 1.48 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.731e-05/0.9199, allocations: 16 kB / 0.9983 GB, free: 1.465 MB / 0.7481 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 (29): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 1 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0005634/0.9204, allocations: 345.2 kB / 0.9986 GB, free: 1.117 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.9206, allocations: 43.53 kB / 0.9987 GB, free: 1.074 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005208/0.9258, allocations: 1.829 MB / 1 GB, free: 15.23 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.9258, allocations: 7.984 kB / 1 GB, free: 15.22 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.9258, allocations: 4 kB / 1 GB, free: 15.22 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.9259, allocations: 0 / 1 GB, free: 15.22 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005973/0.9318, allocations: 2.566 MB / 1.003 GB, free: 12.58 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.9319, allocations: 0 / 1.003 GB, free: 12.58 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003766/0.9322, allocations: 91.92 kB / 1.003 GB, free: 12.49 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003907/0.9362, allocations: 1.016 MB / 1.004 GB, free: 11.47 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.668e-05/0.9362, allocations: 8 kB / 1.004 GB, free: 11.46 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008702/0.9449, allocations: 6.071 MB / 1.01 GB, free: 5.117 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.945, allocations: 4 kB / 1.01 GB, free: 5.113 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004999/0.95, allocations: 1.794 MB / 1.012 GB, free: 3.285 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003816/0.9504, allocations: 200.5 kB / 1.012 GB, free: 3.07 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.9505, allocations: 8 kB / 1.012 GB, free: 3.062 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006712/0.9512, allocations: 99.8 kB / 1.012 GB, free: 2.965 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001751/0.9514, allocations: 27.95 kB / 1.012 GB, free: 2.938 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.164e-05/0.9514, allocations: 15.98 kB / 1.012 GB, free: 2.922 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0005302/0.952, allocations: 339.1 kB / 1.012 GB, free: 2.598 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.8e-07/0.952, allocations: 0 / 1.012 GB, free: 2.598 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001617/0.9536, allocations: 288 kB / 1.013 GB, free: 2.316 MB / 0.7637 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 (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 1 {2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004021/0.954, allocations: 147.2 kB / 1.013 GB, free: 2.164 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.006807/0.9609, allocations: 2.54 MB / 1.015 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.9609, allocations: 0 / 1.015 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.002558/0.9635, allocations: 0.9889 MB / 1.016 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.9647, allocations: 125.7 kB / 1.016 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002832/0.9675, allocations: 1.439 MB / 1.018 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008379/0.9684, allocations: 0.9646 MB / 1.019 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0006094/0.969, allocations: 151.4 kB / 1.019 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.9692, allocations: 39.41 kB / 1.019 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of SimCode: time 1.623e-06/0.9692, allocations: 0 / 1.019 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of Templates: time 0.02683/0.996, allocations: 16.44 MB / 1.035 GB, free: 11.45 MB / 0.795 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGridMedium.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches