Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_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_9_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_9_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.001701/0.001701, allocations: 108.3 kB / 15.99 MB, free: 6.352 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.001959/0.001959, allocations: 193 kB / 16.91 MB, free: 6.184 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.403/1.403, allocations: 222.9 MB / 240.6 MB, free: 15.44 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.183/2.183, allocations: 390.2 MB / 0.665 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 68.44 kB / 0.8127 GB, free: 33.28 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.248, allocations: 140.4 MB / 0.9498 GB, free: 9.234 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.007193/0.2552, allocations: 5.555 MB / 0.9552 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004215/0.2595, allocations: 2.631 MB / 0.9578 GB, free: 1.016 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004705/0.26, allocations: 19.88 kB / 0.9578 GB, free: 0.9961 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001791/0.2618, allocations: 0.6422 MB / 0.9584 GB, free: 360 kB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001067/0.2628, allocations: 374.2 kB / 0.9588 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009935/0.2639, allocations: 371 kB / 0.9591 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.001167/0.265, allocations: 0.9668 MB / 0.9601 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008507/0.2659, allocations: 0.5144 MB / 0.9606 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000627/0.2665, allocations: 378.5 kB / 0.9609 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006826/0.2672, allocations: 418.4 kB / 0.9613 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.2674, allocations: 48 kB / 0.9614 GB, free: 13.31 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007192/0.2681, allocations: 371.2 kB / 0.9617 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002644/0.2684, allocations: 243.4 kB / 0.962 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0004051/0.2688, allocations: 350.2 kB / 0.9623 GB, free: 12.36 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0008857/0.2697, allocations: 0.7482 MB / 0.963 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.2697, allocations: 8 kB / 0.9631 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.735e-06/0.2697, allocations: 0 / 0.9631 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.526e-05/0.2697, allocations: 3.938 kB / 0.9631 GB, free: 11.6 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001816/0.2716, allocations: 0.966 MB / 0.964 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.2716, allocations: 8.031 kB / 0.964 GB, free: 10.58 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001422/0.273, allocations: 203.8 kB / 0.9642 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007306/0.2738, allocations: 498.4 kB / 0.9647 GB, free: 9.852 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.523e-05/0.2738, allocations: 37.36 kB / 0.9647 GB, free: 9.812 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/0.274, allocations: 52.5 kB / 0.9648 GB, free: 9.762 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.2752, allocations: 0.8318 MB / 0.9656 GB, free: 8.848 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.231e-05/0.2752, allocations: 7.906 kB / 0.9656 GB, free: 8.84 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.039e-05/0.2753, allocations: 23.98 kB / 0.9656 GB, free: 8.816 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001958/0.2755, allocations: 68.94 kB / 0.9657 GB, free: 8.75 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009042/0.2764, allocations: 0.5774 MB / 0.9662 GB, free: 8.172 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004307/0.2807, allocations: 4.569 MB / 0.9707 GB, free: 3.25 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004633/0.2812, allocations: 295.3 kB / 0.971 GB, free: 2.953 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003037/0.2815, allocations: 233.3 kB / 0.9712 GB, free: 2.723 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.69e-05/0.2816, allocations: 4.281 kB / 0.9712 GB, free: 2.719 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.2816, allocations: 30.84 kB / 0.9712 GB, free: 2.68 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=33): time 2.044e-06/0.2816, allocations: 0 / 0.9712 GB, free: 2.68 MB / 0.7481 GB Notification: Performance of matching and sorting (n=40): time 0.005575/0.2872, allocations: 2.639 MB / 0.9738 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.2872, allocations: 59.39 kB / 0.9739 GB, free: 15.84 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004936/0.2877, allocations: 465.9 kB / 0.9743 GB, free: 15.38 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 3.757e-05/0.2878, allocations: 37.64 kB / 0.9743 GB, free: 15.33 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002124/0.288, allocations: 339.6 kB / 0.9747 GB, free: 14.99 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.2881, allocations: 145.9 kB / 0.9748 GB, free: 14.85 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.2883, allocations: 110.2 kB / 0.9749 GB, free: 14.73 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.2884, allocations: 366.7 kB / 0.9753 GB, free: 14.37 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003552/0.2888, allocations: 237 kB / 0.9755 GB, free: 14.14 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000454/0.2893, allocations: 406.5 kB / 0.9759 GB, free: 13.66 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008472/0.2901, allocations: 0.6778 MB / 0.9765 GB, free: 12.91 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.2901, allocations: 4 kB / 0.9765 GB, free: 12.91 MB / 0.7637 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00169/0.2918, allocations: 0.9212 MB / 0.9774 GB, free: 11.97 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.2919, allocations: 8 kB / 0.9775 GB, free: 11.96 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.2919, allocations: 7.938 kB / 0.9775 GB, free: 11.95 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007983/0.2927, allocations: 222.8 kB / 0.9777 GB, free: 11.73 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005169/0.2932, allocations: 115.8 kB / 0.9778 GB, free: 11.61 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005251/0.2985, allocations: 5.332 MB / 0.983 GB, free: 5.863 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005466/0.2991, allocations: 35.97 kB / 0.983 GB, free: 5.828 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.244e-05/0.2991, allocations: 24.14 kB / 0.983 GB, free: 5.805 MB / 0.7637 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.0003545/0.2995, allocations: 221.7 kB / 0.9833 GB, free: 5.578 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.2996, allocations: 67.27 kB / 0.9833 GB, free: 5.512 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001544/0.3012, allocations: 0.7697 MB / 0.9841 GB, free: 4.727 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.3012, allocations: 4 kB / 0.9841 GB, free: 4.723 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.3012, allocations: 7.938 kB / 0.9841 GB, free: 4.715 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.3012, allocations: 0 / 0.9841 GB, free: 4.715 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002485/0.3037, allocations: 1.502 MB / 0.9856 GB, free: 3.125 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.3037, allocations: 3.984 kB / 0.9856 GB, free: 3.121 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00039/0.3041, allocations: 63.95 kB / 0.9856 GB, free: 3.059 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007105/0.3049, allocations: 210.5 kB / 0.9858 GB, free: 2.844 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.501e-05/0.3049, allocations: 8 kB / 0.9858 GB, free: 2.836 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004905/0.3098, allocations: 5.281 MB / 0.991 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3098, allocations: 0 / 0.991 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00189/0.3117, allocations: 1.154 MB / 0.9921 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002538/0.312, allocations: 168.4 kB / 0.9923 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.3121, allocations: 11.94 kB / 0.9923 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003623/0.3125, allocations: 27.97 kB / 0.9923 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.3126, allocations: 31.95 kB / 0.9923 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.012e-05/0.3126, allocations: 16 kB / 0.9924 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003562/0.313, allocations: 314.9 kB / 0.9927 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.313, allocations: 0 / 0.9927 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0007003/0.3137, allocations: 168 kB / 0.9928 GB, free: 11.19 MB / 0.7794 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.0001536/0.3139, allocations: 111.2 kB / 0.9929 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001718/0.3156, allocations: 1.078 MB / 0.994 GB, free: 9.957 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 6.321e-06/0.3156, allocations: 4 kB / 0.994 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0009438/0.3166, allocations: 0.6759 MB / 0.9946 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009271/0.3175, allocations: 195.1 kB / 0.9948 GB, free: 9.051 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.3199, allocations: 1.552 MB / 0.9963 GB, free: 7.441 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005648/0.3204, allocations: 0.9611 MB / 0.9973 GB, free: 6.453 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.3206, allocations: 39.44 kB / 0.9973 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of SimCode: time 5.31e-07/0.3206, allocations: 0 / 0.9973 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of Templates: time 0.01797/0.3386, allocations: 14.89 MB / 1.012 GB, free: 7.574 MB / 0.795 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches