Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ACLineMedium,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.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,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.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 104.3 kB / 16.27 MB, free: 6.406 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.001683/0.001683, allocations: 193.5 kB / 17.2 MB, free: 5.969 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.431/1.431, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.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.207/2.207, allocations: 390.3 MB / 0.6653 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 62.42 kB / 0.8132 GB, free: 33.18 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2455, allocations: 140.4 MB / 0.9503 GB, free: 8.836 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01697/0.2625, allocations: 14.78 MB / 0.9647 GB, free: 9.996 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01472/0.2773, allocations: 10.36 MB / 0.9748 GB, free: 15.61 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001425/0.2788, allocations: 59.62 kB / 0.9749 GB, free: 15.55 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.004447/0.2833, allocations: 1.692 MB / 0.9765 GB, free: 13.85 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.005281/0.2886, allocations: 1.809 MB / 0.9783 GB, free: 12.04 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.002017/0.2906, allocations: 0.7592 MB / 0.979 GB, free: 11.28 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.003778/0.2944, allocations: 2.742 MB / 0.9817 GB, free: 8.527 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002024/0.2964, allocations: 1.419 MB / 0.9831 GB, free: 7.078 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002199/0.2987, allocations: 1.496 MB / 0.9846 GB, free: 5.578 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002016/0.3007, allocations: 1.167 MB / 0.9857 GB, free: 4.406 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0005512/0.3013, allocations: 160 kB / 0.9859 GB, free: 4.25 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001892/0.3032, allocations: 0.7877 MB / 0.9866 GB, free: 3.461 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0006754/0.3039, allocations: 0.6037 MB / 0.9872 GB, free: 2.855 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001061/0.3049, allocations: 0.9561 MB / 0.9882 GB, free: 1.895 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.002754/0.3077, allocations: 2.733 MB / 0.9908 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3077, allocations: 0 / 0.9908 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.286e-06/0.3077, allocations: 4 kB / 0.9908 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.42e-05/0.3078, allocations: 0 / 0.9908 GB, free: 15.15 MB / 0.7794 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.003734/0.3115, allocations: 2.17 MB / 0.9929 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.3115, allocations: 12.03 kB / 0.993 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01158/0.3231, allocations: 2.108 MB / 0.995 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002813/0.326, allocations: 1.217 MB / 0.9962 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.289e-05/0.3261, allocations: 86.69 kB / 0.9963 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004735/0.3266, allocations: 120.1 kB / 0.9964 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006396/0.333, allocations: 2.678 MB / 0.999 GB, free: 6.492 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-05/0.3331, allocations: 7.938 kB / 0.999 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002783/0.3334, allocations: 47.98 kB / 0.9991 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007099/0.3341, allocations: 198.1 kB / 0.9993 GB, free: 6.242 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007896/0.342, allocations: 2.787 MB / 1.002 GB, free: 3.445 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0161/0.3581, allocations: 10.52 MB / 1.012 GB, free: 8.34 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007084/0.3652, allocations: 2.34 MB / 1.015 GB, free: 5.977 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003221/0.3685, allocations: 1.268 MB / 1.016 GB, free: 4.703 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 8.434e-05/0.3686, allocations: 9 kB / 1.016 GB, free: 4.691 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/0.3687, allocations: 47.56 kB / 1.016 GB, free: 4.637 MB / 0.795 GB Notification: Performance of pre-optimization done (n=89): time 3.166e-06/0.3687, allocations: 0 / 1.016 GB, free: 4.637 MB / 0.795 GB Notification: Performance of matching and sorting (n=153): time 0.06482/0.4335, allocations: 16.48 MB / 1.032 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.843e-05/0.4336, allocations: 64.72 kB / 1.032 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001738/0.4353, allocations: 1.172 MB / 1.033 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0002486/0.4356, allocations: 45.7 kB / 1.033 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000583/0.4362, allocations: 0.7514 MB / 1.034 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006174/0.4368, allocations: 0.5082 MB / 1.034 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006866/0.4375, allocations: 291.4 kB / 1.035 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.4376, allocations: 309.1 kB / 1.035 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003769/0.4414, allocations: 1.507 MB / 1.036 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003963/0.4454, allocations: 1.78 MB / 1.038 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007827/0.4533, allocations: 3.373 MB / 1.041 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/0.4533, allocations: 0 / 1.041 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01444/0.4678, allocations: 5.277 MB / 1.047 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.577e-05/0.4678, allocations: 10.81 kB / 1.047 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.795e-05/0.4678, allocations: 8 kB / 1.047 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007169/0.475, allocations: 1.895 MB / 1.048 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002127/0.4772, allocations: 415.2 kB / 1.049 GB, free: 2.316 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03161/0.5088, allocations: 24.16 MB / 1.072 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00287/0.5117, allocations: 303.5 kB / 1.073 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003327/0.5121, allocations: 63.97 kB / 1.073 GB, free: 8.68 MB / 0.8575 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001108/0.5132, allocations: 478.9 kB / 1.073 GB, free: 8.203 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005324/0.5137, allocations: 173.9 kB / 1.073 GB, free: 8.031 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01409/0.5278, allocations: 5.32 MB / 1.079 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.847e-05/0.5279, allocations: 12 kB / 1.079 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.738e-05/0.528, allocations: 23.98 kB / 1.079 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.882e-05/0.528, allocations: 4.078 kB / 1.079 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.513/1.041, allocations: 7.429 MB / 1.086 GB, free: 124.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.891e-05/1.041, allocations: 2.188 kB / 1.086 GB, free: 124.2 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001974/1.043, allocations: 355.9 kB / 1.086 GB, free: 124.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006695/1.05, allocations: 1.723 MB / 1.088 GB, free: 124.1 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002764/1.05, allocations: 44.31 kB / 1.088 GB, free: 124.1 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02698/1.077, allocations: 23.31 MB / 1.111 GB, free: 107.9 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/1.077, allocations: 9.344 kB / 1.111 GB, free: 107.9 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01286/1.09, allocations: 4.888 MB / 1.116 GB, free: 106.3 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/1.091, allocations: 491.5 kB / 1.116 GB, free: 106 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003481/1.091, allocations: 29.84 kB / 1.116 GB, free: 106 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002324/1.094, allocations: 321.4 kB / 1.116 GB, free: 106 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006127/1.094, allocations: 152 kB / 1.117 GB, free: 106 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001445/1.094, allocations: 58.31 kB / 1.117 GB, free: 106 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001114/1.096, allocations: 0.79 MB / 1.117 GB, free: 105.6 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.31e-07/1.096, allocations: 0 / 1.117 GB, free: 105.6 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002189/1.098, allocations: 0.6546 MB / 1.118 GB, free: 105.6 MB / 0.8575 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003042/1.098, allocations: 146.9 kB / 1.118 GB, free: 105.5 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.01142/1.11, allocations: 5.436 MB / 1.123 GB, free: 103.2 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/1.11, allocations: 5 kB / 1.123 GB, free: 103.2 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.006597/1.116, allocations: 3.344 MB / 1.127 GB, free: 101.5 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002697/1.119, allocations: 0.5641 MB / 1.127 GB, free: 101.3 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008843/1.128, allocations: 4.45 MB / 1.132 GB, free: 99.43 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001283/1.129, allocations: 1.564 MB / 1.133 GB, free: 98.6 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00061/1.13, allocations: 129.5 kB / 1.133 GB, free: 98.59 MB / 0.8575 GB Notification: Performance of SimCode: time 7.22e-07/1.13, allocations: 5.312 kB / 1.133 GB, free: 98.59 MB / 0.8575 GB Notification: Performance of Templates: time 0.06468/1.194, allocations: 85.71 MB / 1.217 GB, free: 21.94 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches