Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.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.OnePhase.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.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.OnePhase.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.OnePhase.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: 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.001552/0.001552, 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.433/1.433, allocations: 223.3 MB / 240 MB, free: 5.395 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.613/2.613, allocations: 390.9 MB / 0.666 GB, free: 2.547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003947/0.0003949, allocations: 15.92 kB / 0.8154 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7545/0.7549, allocations: 142.4 MB / 0.9544 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.003851/0.7588, allocations: 3.857 MB / 0.9582 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003499/0.7623, allocations: 2.998 MB / 0.9611 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002296/0.7626, allocations: 9.844 kB / 0.9611 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004949/0.7631, allocations: 158.8 kB / 0.9613 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0007186/0.7638, allocations: 306.5 kB / 0.9616 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004516/0.7643, allocations: 183.4 kB / 0.9618 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006629/0.765, allocations: 0.6524 MB / 0.9624 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00109/0.7661, allocations: 0.7355 MB / 0.9631 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002926/0.7664, allocations: 187.2 kB / 0.9633 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003471/0.7667, allocations: 235.9 kB / 0.9635 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.528e-05/0.7668, allocations: 17.47 kB / 0.9635 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005213/0.7673, allocations: 233.7 kB / 0.9638 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.7674, allocations: 139.7 kB / 0.9639 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.904e-05/0.7675, allocations: 101 kB / 0.964 GB, free: 0.5508 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005808/0.7681, allocations: 0.6663 MB / 0.9646 GB, free: 112 kB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.7681, allocations: 4 kB / 0.9646 GB, free: 108 kB / 0.7169 GB Notification: Performance of FrontEnd: time 2.134e-06/0.7681, allocations: 4.969 kB / 0.9647 GB, free: 104 kB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.722e-06/0.7681, allocations: 0 / 0.9647 GB, free: 104 kB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001236/0.7694, allocations: 0.7257 MB / 0.9654 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.7694, allocations: 14.91 kB / 0.9654 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00255/0.772, allocations: 0.6839 MB / 0.966 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008284/0.7728, allocations: 469.8 kB / 0.9665 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.7729, allocations: 24.08 kB / 0.9665 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.437e-05/0.773, allocations: 40.14 kB / 0.9666 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00155/0.7745, allocations: 0.7821 MB / 0.9673 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.7745, allocations: 1.094 kB / 0.9673 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.664e-05/0.7746, allocations: 19.39 kB / 0.9673 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001253/0.7747, allocations: 53.28 kB / 0.9674 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001858/0.7766, allocations: 0.8722 MB / 0.9682 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003975/0.7806, allocations: 2.855 MB / 0.971 GB, free: 11.35 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.7821, allocations: 0.5228 MB / 0.9715 GB, free: 11.08 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006536/0.7828, allocations: 265.7 kB / 0.9718 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001205/0.7829, allocations: 90.75 kB / 0.9719 GB, free: 10.85 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.138e-05/0.783, allocations: 31.91 kB / 0.9719 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 2.675e-06/0.783, allocations: 0.9688 kB / 0.9719 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24): time 0.01087/0.7938, allocations: 3.217 MB / 0.9751 GB, free: 9.168 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.074e-05/0.794, allocations: 80.55 kB / 0.9751 GB, free: 9.074 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006726/0.7946, allocations: 421.4 kB / 0.9755 GB, free: 8.812 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.425e-05/0.7947, allocations: 30.77 kB / 0.9756 GB, free: 8.777 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002073/0.7949, allocations: 233.3 kB / 0.9758 GB, free: 8.57 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.795, allocations: 89.64 kB / 0.9759 GB, free: 8.492 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-05/0.7951, allocations: 5.438 kB / 0.9759 GB, free: 8.488 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.7953, allocations: 351.5 kB / 0.9762 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008892/0.7961, allocations: 360 kB / 0.9766 GB, free: 7.973 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009069/0.7971, allocations: 453.1 kB / 0.977 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009017/0.798, allocations: 384.5 kB / 0.9773 GB, free: 7.5 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.798, allocations: 0 / 0.9773 GB, free: 7.5 MB / 0.7325 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004625/0.8026, allocations: 1.55 MB / 0.9789 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001301/0.8028, allocations: 148 kB / 0.979 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.8028, allocations: 4 kB / 0.979 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003443/0.8062, allocations: 0.8519 MB / 0.9798 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005877/0.8068, allocations: 135.8 kB / 0.98 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006446/0.8133, allocations: 4.659 MB / 0.9845 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007796/0.8141, allocations: 123.9 kB / 0.9846 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.001e-05/0.8142, allocations: 15.98 kB / 0.9847 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.277e-06/0.8142, allocations: 4 kB / 0.9847 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003784/0.818, allocations: 1.257 MB / 0.9859 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-06/0.818, allocations: 4 kB / 0.9859 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002214/0.8202, allocations: 0.5549 MB / 0.9864 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005861/0.8208, allocations: 139.8 kB / 0.9866 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003382/0.8242, allocations: 2.506 MB / 0.989 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000709/0.8249, allocations: 119.8 kB / 0.9891 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/0.825, allocations: 8 kB / 0.9891 GB, free: 11.04 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%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004741/0.8255, allocations: 321 kB / 0.9894 GB, free: 10.71 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.987e-05/0.8255, allocations: 43.48 kB / 0.9895 GB, free: 10.67 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004204/0.8297, allocations: 1.417 MB / 0.9909 GB, free: 9.234 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.046e-06/0.8298, allocations: 4 kB / 0.9909 GB, free: 9.23 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/0.8298, allocations: 4 kB / 0.9909 GB, free: 9.227 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.8298, allocations: 3.938 kB / 0.9909 GB, free: 9.223 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004968/0.8348, allocations: 2.088 MB / 0.9929 GB, free: 7.066 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.762e-06/0.8348, allocations: 4 kB / 0.9929 GB, free: 7.062 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003622/0.8352, allocations: 91.92 kB / 0.993 GB, free: 6.973 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002965/0.8382, allocations: 0.7857 MB / 0.9938 GB, free: 6.18 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.941e-05/0.8382, allocations: 8 kB / 0.9938 GB, free: 6.172 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005404/0.8436, allocations: 4.486 MB / 0.9982 GB, free: 1.418 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.8436, allocations: 4.031 kB / 0.9982 GB, free: 1.414 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00394/0.8476, allocations: 1.435 MB / 0.9996 GB, free: 15.95 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002702/0.8479, allocations: 164.7 kB / 0.9997 GB, free: 15.77 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.587e-05/0.848, allocations: 11.98 kB / 0.9997 GB, free: 15.75 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005149/0.8485, allocations: 91.86 kB / 0.9998 GB, free: 15.66 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.8486, allocations: 35.91 kB / 0.9999 GB, free: 15.63 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.784e-05/0.8486, allocations: 8 kB / 0.9999 GB, free: 15.62 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003999/0.849, allocations: 311.1 kB / 1 GB, free: 15.32 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.91e-07/0.849, allocations: 0 / 1 GB, free: 15.32 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008682/0.8499, allocations: 208 kB / 1 GB, free: 15.12 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%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002228/0.8502, allocations: 123 kB / 1 GB, free: 14.98 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00435/0.8545, allocations: 1.626 MB / 1.002 GB, free: 13.32 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.8545, allocations: 4 kB / 1.002 GB, free: 13.32 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001859/0.8564, allocations: 0.6652 MB / 1.003 GB, free: 12.62 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001279/0.8577, allocations: 119 kB / 1.003 GB, free: 12.51 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003184/0.8609, allocations: 1.214 MB / 1.004 GB, free: 11.27 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008185/0.8618, allocations: 0.921 MB / 1.005 GB, free: 10.32 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0009/0.8627, allocations: 151.2 kB / 1.005 GB, free: 10.17 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001918/0.8629, allocations: 35.41 kB / 1.005 GB, free: 10.14 MB / 0.7637 GB Notification: Performance of SimCode: time 1.993e-06/0.8629, allocations: 0 / 1.005 GB, free: 10.14 MB / 0.7637 GB Notification: Performance of Templates: time 0.02871/0.8916, allocations: 11.92 MB / 1.017 GB, free: 14.29 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches