Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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,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.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,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.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001873/0.001873, allocations: 192.5 kB / 16.25 MB, free: 6.637 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.552/1.552, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.431/2.431, allocations: 390.2 MB / 0.6643 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.001301, allocations: 67.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7411/0.7424, allocations: 140.4 MB / 0.9491 GB, free: 9.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01451/0.757, allocations: 13.96 MB / 0.9627 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01597/0.773, allocations: 9.31 MB / 0.9718 GB, free: 6.973 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003429/0.7765, allocations: 54.78 kB / 0.9719 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.004844/0.7814, allocations: 1.561 MB / 0.9734 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.006458/0.7879, allocations: 1.4 MB / 0.9748 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002464/0.7904, allocations: 0.7057 MB / 0.9755 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.005406/0.7958, allocations: 2.517 MB / 0.9779 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003473/0.7993, allocations: 1.576 MB / 0.9795 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002571/0.8019, allocations: 1.062 MB / 0.9805 GB, free: 1.195 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002378/0.8043, allocations: 1.18 MB / 0.9817 GB, free: 492 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0004277/0.8048, allocations: 165 kB / 0.9818 GB, free: 492 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002074/0.8068, allocations: 0.7898 MB / 0.9826 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0006643/0.8075, allocations: 0.6154 MB / 0.9832 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.001185/0.8087, allocations: 0.9407 MB / 0.9841 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.003646/0.8124, allocations: 2.784 MB / 0.9868 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 7.685e-06/0.8124, allocations: 4 kB / 0.9868 GB, free: 11.33 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.704e-06/0.8124, allocations: 0 / 0.9868 GB, free: 11.33 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 4.055e-05/0.8125, allocations: 0 / 0.9868 GB, free: 11.33 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.004054/0.8165, allocations: 2.135 MB / 0.9889 GB, free: 9.141 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.8166, allocations: 8.031 kB / 0.9889 GB, free: 9.133 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01109/0.8277, allocations: 2.085 MB / 0.991 GB, free: 7.043 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002624/0.8303, allocations: 1.197 MB / 0.9921 GB, free: 5.789 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.445e-05/0.8304, allocations: 90.73 kB / 0.9922 GB, free: 5.699 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002622/0.8307, allocations: 120.1 kB / 0.9923 GB, free: 5.582 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005659/0.8363, allocations: 2.683 MB / 0.9949 GB, free: 2.75 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.163e-05/0.8364, allocations: 11.84 kB / 0.995 GB, free: 2.738 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001739/0.8366, allocations: 55.98 kB / 0.995 GB, free: 2.684 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006198/0.8372, allocations: 178.1 kB / 0.9952 GB, free: 2.508 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007485/0.8447, allocations: 2.799 MB / 0.9979 GB, free: 15.7 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01558/0.8603, allocations: 10.52 MB / 1.008 GB, free: 4.594 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006474/0.8669, allocations: 2.529 MB / 1.011 GB, free: 2 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002953/0.8699, allocations: 1.284 MB / 1.012 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 8.194e-05/0.87, allocations: 9 kB / 1.012 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.276e-05/0.87, allocations: 43.56 kB / 1.012 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=89): time 5.33e-06/0.87, allocations: 4 kB / 1.012 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of matching and sorting (n=131): time 0.04536/0.9154, allocations: 13.34 MB / 1.025 GB, free: 3.09 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/0.9155, allocations: 64.72 kB / 1.025 GB, free: 3.012 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001925/0.9174, allocations: 1.117 MB / 1.026 GB, free: 1.879 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0002319/0.9177, allocations: 45.7 kB / 1.026 GB, free: 1.828 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005399/0.9182, allocations: 0.7233 MB / 1.027 GB, free: 1.098 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004807/0.9187, allocations: 453.5 kB / 1.027 GB, free: 0.6484 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005109/0.9192, allocations: 259.4 kB / 1.028 GB, free: 400 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001503/0.9194, allocations: 365.9 kB / 1.028 GB, free: 28 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003133/0.9225, allocations: 1.346 MB / 1.029 GB, free: 14.68 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003261/0.9258, allocations: 1.6 MB / 1.031 GB, free: 12.98 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006408/0.9322, allocations: 2.991 MB / 1.034 GB, free: 9.895 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.9323, allocations: 0 / 1.034 GB, free: 9.895 MB / 0.795 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01115/0.9434, allocations: 4.447 MB / 1.038 GB, free: 5.395 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.18e-05/0.9435, allocations: 8 kB / 1.038 GB, free: 5.387 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.9435, allocations: 12.06 kB / 1.038 GB, free: 5.375 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005329/0.9488, allocations: 1.439 MB / 1.039 GB, free: 3.895 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002184/0.9511, allocations: 435.2 kB / 1.04 GB, free: 3.469 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02638/0.9775, allocations: 26.69 MB / 1.066 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002632/0.9801, allocations: 303.6 kB / 1.066 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002301/0.9804, allocations: 63.91 kB / 1.066 GB, free: 6.582 MB / 0.8262 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008925/0.9813, allocations: 441.5 kB / 1.067 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003127/0.9816, allocations: 166.1 kB / 1.067 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01322/0.9948, allocations: 4.453 MB / 1.071 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.378e-05/0.9949, allocations: 16 kB / 1.071 GB, free: 1.453 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.615e-05/0.995, allocations: 12 kB / 1.071 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.487e-05/0.995, allocations: 3.984 kB / 1.071 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01559/1.011, allocations: 6.793 MB / 1.078 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.796e-05/1.011, allocations: 4 kB / 1.078 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002041/1.013, allocations: 379.3 kB / 1.078 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004905/1.018, allocations: 1.319 MB / 1.08 GB, free: 8.742 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002266/1.018, allocations: 39.91 kB / 1.08 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02653/1.044, allocations: 25.51 MB / 1.105 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/1.044, allocations: 7.938 kB / 1.105 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/1.056, allocations: 4.2 MB / 1.109 GB, free: 9.062 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001332/1.057, allocations: 459 kB / 1.109 GB, free: 8.594 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002759/1.058, allocations: 28 kB / 1.109 GB, free: 8.566 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001969/1.06, allocations: 303.5 kB / 1.109 GB, free: 8.27 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006697/1.06, allocations: 136.6 kB / 1.11 GB, free: 8.133 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/1.06, allocations: 47.97 kB / 1.11 GB, free: 8.086 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001154/1.062, allocations: 0.7526 MB / 1.11 GB, free: 7.332 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/1.062, allocations: 0 / 1.11 GB, free: 7.332 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002272/1.064, allocations: 0.5664 MB / 1.111 GB, free: 6.766 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003373/1.064, allocations: 143.1 kB / 1.111 GB, free: 6.617 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.01179/1.076, allocations: 5.509 MB / 1.116 GB, free: 0.9375 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/1.076, allocations: 0 / 1.116 GB, free: 0.9375 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.006763/1.083, allocations: 3.488 MB / 1.12 GB, free: 13.28 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002658/1.085, allocations: 0.5547 MB / 1.12 GB, free: 12.74 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009067/1.095, allocations: 4.654 MB / 1.125 GB, free: 8.039 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001527/1.096, allocations: 1.477 MB / 1.126 GB, free: 6.531 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001982/1.098, allocations: 425.6 kB / 1.127 GB, free: 6.109 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004/1.099, allocations: 111.4 kB / 1.127 GB, free: 6 MB / 0.8887 GB Notification: Performance of SimCode: time 1.112e-06/1.099, allocations: 4 kB / 1.127 GB, free: 5.996 MB / 0.8887 GB Notification: Performance of Templates: time 0.06723/1.166, allocations: 39.23 MB / 1.165 GB, free: 15.21 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches