Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002075/0.002075, allocations: 192 kB / 16.53 MB, free: 6.391 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.436/1.436, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.704/2.704, allocations: 437 MB / 0.7103 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 63.91 kB / 0.8692 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6798/0.6811, allocations: 151.6 MB / 1.017 GB, free: 2.52 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.007174/0.6883, allocations: 5.536 MB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004713/0.6931, allocations: 2.646 MB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004775/0.6936, allocations: 23.81 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001761/0.6954, allocations: 0.6884 MB / 1.026 GB, free: 9.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001112/0.6965, allocations: 409.7 kB / 1.026 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001055/0.6976, allocations: 402.5 kB / 1.027 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.00116/0.6988, allocations: 0.9552 MB / 1.028 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007502/0.6995, allocations: 472.4 kB / 1.028 GB, free: 7.375 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00053/0.7001, allocations: 370.6 kB / 1.028 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005216/0.7006, allocations: 410.3 kB / 1.029 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.644e-05/0.7007, allocations: 48 kB / 1.029 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007699/0.7015, allocations: 359.3 kB / 1.029 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000245/0.7017, allocations: 255.3 kB / 1.03 GB, free: 5.961 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003304/0.7021, allocations: 350.2 kB / 1.03 GB, free: 5.617 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001088/0.7032, allocations: 0.9578 MB / 1.031 GB, free: 4.656 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.7032, allocations: 0 / 1.031 GB, free: 4.656 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.226e-06/0.7032, allocations: 3.984 kB / 1.031 GB, free: 4.652 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.602e-05/0.7032, allocations: 0 / 1.031 GB, free: 4.652 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001544/0.7048, allocations: 0.9815 MB / 1.032 GB, free: 3.621 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.7048, allocations: 8.031 kB / 1.032 GB, free: 3.613 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001352/0.7062, allocations: 195.8 kB / 1.032 GB, free: 3.422 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007368/0.7069, allocations: 490.5 kB / 1.032 GB, free: 2.902 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.88e-05/0.707, allocations: 37.38 kB / 1.032 GB, free: 2.863 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001792/0.7072, allocations: 60.53 kB / 1.032 GB, free: 2.805 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.7084, allocations: 0.8318 MB / 1.033 GB, free: 1.895 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.518e-05/0.7084, allocations: 15.83 kB / 1.033 GB, free: 1.879 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.659e-05/0.7085, allocations: 16 kB / 1.033 GB, free: 1.863 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001986/0.7087, allocations: 72.95 kB / 1.033 GB, free: 1.793 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008567/0.7095, allocations: 0.5658 MB / 1.034 GB, free: 1.227 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004402/0.7139, allocations: 4.581 MB / 1.038 GB, free: 12.3 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004832/0.7144, allocations: 295.2 kB / 1.039 GB, free: 12 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000301/0.7148, allocations: 225.3 kB / 1.039 GB, free: 11.78 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.7148, allocations: 4.281 kB / 1.039 GB, free: 11.77 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/0.7148, allocations: 38.84 kB / 1.039 GB, free: 11.73 MB / 0.795 GB Notification: Performance of pre-optimization done (n=33): time 4.007e-06/0.7148, allocations: 7.922 kB / 1.039 GB, free: 11.72 MB / 0.795 GB Notification: Performance of matching and sorting (n=40): time 0.005504/0.7204, allocations: 2.634 MB / 1.042 GB, free: 8.957 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.232e-05/0.7204, allocations: 55.41 kB / 1.042 GB, free: 8.891 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005139/0.721, allocations: 473.9 kB / 1.042 GB, free: 8.418 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.721, allocations: 33.7 kB / 1.042 GB, free: 8.379 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002324/0.7212, allocations: 339.7 kB / 1.042 GB, free: 8.039 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.7214, allocations: 142 kB / 1.043 GB, free: 7.898 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.7215, allocations: 110.1 kB / 1.043 GB, free: 7.785 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.7217, allocations: 362.8 kB / 1.043 GB, free: 7.422 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003472/0.7221, allocations: 237 kB / 1.043 GB, free: 7.191 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004605/0.7225, allocations: 414.3 kB / 1.044 GB, free: 6.707 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008305/0.7234, allocations: 0.674 MB / 1.044 GB, free: 5.961 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.7234, allocations: 0 / 1.044 GB, free: 5.961 MB / 0.795 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001636/0.725, allocations: 0.9207 MB / 1.045 GB, free: 5.023 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.725, allocations: 8.656 kB / 1.045 GB, free: 5.016 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/0.7251, allocations: 12 kB / 1.045 GB, free: 5.004 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000748/0.7258, allocations: 218.4 kB / 1.045 GB, free: 4.781 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004842/0.7263, allocations: 115.8 kB / 1.046 GB, free: 4.668 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004902/0.7312, allocations: 5.34 MB / 1.051 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004875/0.7318, allocations: 31.97 kB / 1.051 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.836e-05/0.7318, allocations: 20 kB / 1.051 GB, free: 14.84 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003304/0.7321, allocations: 229.6 kB / 1.051 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.139e-05/0.7322, allocations: 59.28 kB / 1.051 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00144/0.7337, allocations: 0.7773 MB / 1.052 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.7337, allocations: 4 kB / 1.052 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.7337, allocations: 8 kB / 1.052 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.7337, allocations: 3.984 kB / 1.052 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.736, allocations: 1.499 MB / 1.053 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.736, allocations: 0 / 1.053 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000362/0.7364, allocations: 63.89 kB / 1.053 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006802/0.7371, allocations: 218.8 kB / 1.054 GB, free: 11.87 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.488e-05/0.7371, allocations: 15.98 kB / 1.054 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004869/0.742, allocations: 5.267 MB / 1.059 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.742, allocations: 8.094 kB / 1.059 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001806/0.7438, allocations: 1.127 MB / 1.06 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003053/0.7442, allocations: 176.4 kB / 1.06 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/0.7443, allocations: 11.94 kB / 1.06 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003755/0.7447, allocations: 28.03 kB / 1.06 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.7448, allocations: 35.95 kB / 1.06 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.913e-05/0.7448, allocations: 11.94 kB / 1.06 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003873/0.7452, allocations: 318.9 kB / 1.06 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7452, allocations: 0 / 1.06 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000753/0.746, allocations: 175.9 kB / 1.061 GB, free: 4.234 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001858/0.7462, allocations: 115.1 kB / 1.061 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001753/0.7479, allocations: 1.056 MB / 1.062 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.748, allocations: 8.109 kB / 1.062 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0009678/0.7489, allocations: 0.6758 MB / 1.062 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009567/0.7499, allocations: 180.7 kB / 1.063 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.7522, allocations: 1.272 MB / 1.064 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006068/0.7528, allocations: 0.9494 MB / 1.065 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003947/0.7532, allocations: 120.9 kB / 1.065 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.7533, allocations: 43.44 kB / 1.065 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of SimCode: time 9.22e-07/0.7534, allocations: 0 / 1.065 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of Templates: time 0.01775/0.7711, allocations: 8.856 MB / 1.074 GB, free: 6.922 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches