Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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 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.ACSimpleGrid,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.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid,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.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 92 kB / 15.06 MB, free: 1.098 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.001563/0.001563, allocations: 172.7 kB / 15.95 MB, free: 208 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.499/1.499, allocations: 223.3 MB / 240 MB, free: 5.422 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.526/2.526, allocations: 390.9 MB / 0.666 GB, free: 2.449 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000394/0.0003942, allocations: 11.98 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8528/0.8532, allocations: 142.4 MB / 0.9544 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid): time 0.005015/0.8583, allocations: 4.507 MB / 0.9588 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004535/0.8629, allocations: 3.088 MB / 0.9619 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004351/0.8633, allocations: 9.812 kB / 0.9619 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0006493/0.864, allocations: 162.5 kB / 0.962 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001003/0.865, allocations: 312.3 kB / 0.9623 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006318/0.8657, allocations: 187.1 kB / 0.9625 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0009228/0.8666, allocations: 0.7187 MB / 0.9632 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001136/0.8677, allocations: 0.7287 MB / 0.9639 GB, free: 452 kB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003644/0.8681, allocations: 195.7 kB / 0.9641 GB, free: 352 kB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003791/0.8685, allocations: 263.9 kB / 0.9644 GB, free: 200 kB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.873e-05/0.8686, allocations: 20.38 kB / 0.9644 GB, free: 200 kB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000678/0.8693, allocations: 231.8 kB / 0.9646 GB, free: 100 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001426/0.8694, allocations: 139.4 kB / 0.9647 GB, free: 12 kB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.8696, allocations: 109.8 kB / 0.9648 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0008746/0.8704, allocations: 0.7082 MB / 0.9655 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 9.879e-06/0.8705, allocations: 1.312 kB / 0.9655 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.094e-06/0.8705, allocations: 3.938 kB / 0.9655 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.548e-06/0.8705, allocations: 0 / 0.9655 GB, free: 15.46 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.001727/0.8722, allocations: 0.7429 MB / 0.9663 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.264e-05/0.8723, allocations: 9.312 kB / 0.9663 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003049/0.8753, allocations: 0.7005 MB / 0.9669 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009788/0.8763, allocations: 486.6 kB / 0.9674 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.123e-05/0.8764, allocations: 25.25 kB / 0.9674 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.081e-05/0.8765, allocations: 32.16 kB / 0.9675 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/0.8782, allocations: 0.8365 MB / 0.9683 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/0.8783, allocations: 8.969 kB / 0.9683 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.646e-05/0.8784, allocations: 16 kB / 0.9683 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002431/0.8786, allocations: 65.53 kB / 0.9684 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0023/0.8809, allocations: 0.9405 MB / 0.9693 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004605/0.8855, allocations: 2.919 MB / 0.9721 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.8872, allocations: 0.5691 MB / 0.9727 GB, free: 10.31 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007442/0.8879, allocations: 314.7 kB / 0.973 GB, free: 10.16 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001272/0.888, allocations: 87.61 kB / 0.9731 GB, free: 10.06 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.875e-05/0.8881, allocations: 36.81 kB / 0.9731 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=22): time 2.454e-06/0.8881, allocations: 0 / 0.9731 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of matching and sorting (n=32): time 0.01217/0.9003, allocations: 3.648 MB / 0.9767 GB, free: 8.105 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/0.9005, allocations: 92.98 kB / 0.9768 GB, free: 8 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006857/0.9012, allocations: 407.9 kB / 0.9772 GB, free: 7.742 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.341e-05/0.9012, allocations: 31.17 kB / 0.9772 GB, free: 7.707 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002141/0.9014, allocations: 235.9 kB / 0.9774 GB, free: 7.488 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.9016, allocations: 110.5 kB / 0.9775 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.497e-05/0.9016, allocations: 4 kB / 0.9775 GB, free: 7.375 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001835/0.9018, allocations: 354.8 kB / 0.9779 GB, free: 7.02 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009378/0.9028, allocations: 395.7 kB / 0.9782 GB, free: 6.633 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.9038, allocations: 485 kB / 0.9787 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009964/0.9048, allocations: 431.7 kB / 0.9791 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.9049, allocations: 4 kB / 0.9791 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.005667/0.9105, allocations: 1.725 MB / 0.9808 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002014/0.9108, allocations: 152.5 kB / 0.9809 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.9108, allocations: 4 kB / 0.9809 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004191/0.915, allocations: 0.9777 MB / 0.9819 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006149/0.9156, allocations: 131.8 kB / 0.982 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008691/0.9243, allocations: 6.398 MB / 0.9883 GB, free: 11.86 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008578/0.9252, allocations: 127.7 kB / 0.9884 GB, free: 11.73 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.423e-05/0.9253, allocations: 20.05 kB / 0.9884 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.9253, allocations: 6.031 kB / 0.9884 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004602/0.9299, allocations: 1.66 MB / 0.99 GB, free: 9.996 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.9299, allocations: 0 / 0.99 GB, free: 9.996 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002858/0.9328, allocations: 0.7173 MB / 0.9907 GB, free: 9.266 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006031/0.9334, allocations: 143.8 kB / 0.9909 GB, free: 9.125 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006384/0.9398, allocations: 5.445 MB / 0.9962 GB, free: 3.277 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008439/0.9407, allocations: 111.9 kB / 0.9963 GB, free: 3.168 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.02e-05/0.9408, allocations: 19.98 kB / 0.9963 GB, free: 3.148 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 (32): * Single equations (assignments): 29 * 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: 2 {(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005859/0.9414, allocations: 329.7 kB / 0.9966 GB, free: 2.816 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.9415, allocations: 31.62 kB / 0.9967 GB, free: 2.785 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004983/0.9465, allocations: 1.622 MB / 0.9983 GB, free: 1.148 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.9466, allocations: 11.98 kB / 0.9983 GB, free: 1.137 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.9466, allocations: 3.984 kB / 0.9983 GB, free: 1.133 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.9466, allocations: 0 / 0.9983 GB, free: 1.133 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005959/0.9526, allocations: 2.322 MB / 1.001 GB, free: 14.73 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.9526, allocations: 0 / 1.001 GB, free: 14.73 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003813/0.953, allocations: 91.98 kB / 1.001 GB, free: 14.64 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003606/0.9566, allocations: 0.9152 MB / 1.002 GB, free: 13.72 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.894e-05/0.9567, allocations: 12 kB / 1.002 GB, free: 13.71 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007519/0.9642, allocations: 6.231 MB / 1.008 GB, free: 7.074 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.9642, allocations: 3.984 kB / 1.008 GB, free: 7.07 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00463/0.9689, allocations: 1.628 MB / 1.009 GB, free: 5.406 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003518/0.9692, allocations: 188.6 kB / 1.009 GB, free: 5.203 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.9694, allocations: 4 kB / 1.009 GB, free: 5.199 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005813/0.9699, allocations: 95.84 kB / 1.009 GB, free: 5.105 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.9701, allocations: 23.97 kB / 1.01 GB, free: 5.082 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.513e-05/0.9702, allocations: 19.94 kB / 1.01 GB, free: 5.062 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004313/0.9706, allocations: 315 kB / 1.01 GB, free: 4.754 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9706, allocations: 4 kB / 1.01 GB, free: 4.75 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.00116/0.9718, allocations: 240 kB / 1.01 GB, free: 4.516 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 (22): * Single equations (assignments): 19 * 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: 2 {(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002387/0.972, allocations: 107.2 kB / 1.01 GB, free: 4.402 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.004543/0.9766, allocations: 2.259 MB / 1.012 GB, free: 2.043 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.9766, allocations: 0 / 1.012 GB, free: 2.043 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001542/0.9782, allocations: 0.8328 MB / 1.013 GB, free: 1.172 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000853/0.979, allocations: 119.2 kB / 1.013 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/0.9814, allocations: 1.318 MB / 1.015 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006557/0.9821, allocations: 0.9337 MB / 1.015 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.00061/0.9827, allocations: 163.2 kB / 1.016 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.9829, allocations: 35.42 kB / 1.016 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of SimCode: time 1.002e-06/0.9829, allocations: 4 kB / 1.016 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of Templates: time 0.02404/1.007, allocations: 13.9 MB / 1.029 GB, free: 0.7109 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches