Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.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.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.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.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.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.OnePhase.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.0018/0.0018, allocations: 102.2 kB / 16.36 MB, free: 6.469 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.00189/0.001891, allocations: 191.8 kB / 17.31 MB, free: 5.824 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.491/1.491, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.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.327/2.327, allocations: 390.3 MB / 0.6655 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 60.8 kB / 0.814 GB, free: 32.69 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.315, allocations: 140.4 MB / 0.9511 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007559/0.3226, allocations: 5.48 MB / 0.9565 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005219/0.3279, allocations: 2.619 MB / 0.959 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004931/0.3284, allocations: 23.81 kB / 0.9591 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001895/0.3304, allocations: 0.6767 MB / 0.9597 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.001197/0.3316, allocations: 409.8 kB / 0.9601 GB, free: 14.81 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.3328, allocations: 390.8 kB / 0.9605 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.001078/0.3339, allocations: 0.9552 MB / 0.9614 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006694/0.3346, allocations: 462.5 kB / 0.9619 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005487/0.3352, allocations: 374.5 kB / 0.9622 GB, free: 12.65 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000561/0.3357, allocations: 406.5 kB / 0.9626 GB, free: 12.25 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 7.621e-05/0.3358, allocations: 52 kB / 0.9627 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007819/0.3366, allocations: 359.3 kB / 0.963 GB, free: 11.85 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002679/0.3369, allocations: 255.2 kB / 0.9632 GB, free: 11.6 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.000342/0.3372, allocations: 346.3 kB / 0.9636 GB, free: 11.26 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001114/0.3384, allocations: 0.9656 MB / 0.9645 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3384, allocations: 3.938 kB / 0.9645 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.625e-06/0.3384, allocations: 0 / 0.9645 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.304e-05/0.3384, allocations: 0 / 0.9645 GB, free: 10.29 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.001776/0.3402, allocations: 0.9699 MB / 0.9655 GB, free: 9.27 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.3402, allocations: 8.031 kB / 0.9655 GB, free: 9.262 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001361/0.3416, allocations: 191.9 kB / 0.9657 GB, free: 9.074 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000878/0.3425, allocations: 0.5256 MB / 0.9662 GB, free: 8.508 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.3425, allocations: 37.36 kB / 0.9662 GB, free: 8.469 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.3427, allocations: 48.56 kB / 0.9663 GB, free: 8.422 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.3439, allocations: 0.8357 MB / 0.9671 GB, free: 7.504 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.759e-05/0.3439, allocations: 7.906 kB / 0.9671 GB, free: 7.496 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.082e-05/0.344, allocations: 27.98 kB / 0.9671 GB, free: 7.469 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001957/0.3442, allocations: 64.94 kB / 0.9672 GB, free: 7.406 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008674/0.3451, allocations: 0.5735 MB / 0.9677 GB, free: 6.828 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005014/0.3501, allocations: 4.558 MB / 0.9722 GB, free: 1.918 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005602/0.3507, allocations: 291.3 kB / 0.9725 GB, free: 1.625 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000337/0.351, allocations: 237.3 kB / 0.9727 GB, free: 1.391 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.583e-05/0.3511, allocations: 8.281 kB / 0.9727 GB, free: 1.383 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.3511, allocations: 34.84 kB / 0.9727 GB, free: 1.34 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=33): time 2.114e-06/0.3511, allocations: 7.875 kB / 0.9727 GB, free: 1.332 MB / 0.7481 GB Notification: Performance of matching and sorting (n=40): time 0.005594/0.3567, allocations: 2.627 MB / 0.9753 GB, free: 14.58 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.3568, allocations: 55.41 kB / 0.9753 GB, free: 14.51 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005419/0.3573, allocations: 461.8 kB / 0.9758 GB, free: 14.05 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 3.646e-05/0.3574, allocations: 33.7 kB / 0.9758 GB, free: 14.01 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002252/0.3576, allocations: 347.6 kB / 0.9762 GB, free: 13.66 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.3577, allocations: 142 kB / 0.9763 GB, free: 13.52 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.3579, allocations: 106.1 kB / 0.9764 GB, free: 13.41 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.3581, allocations: 358.8 kB / 0.9767 GB, free: 13.05 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003455/0.3584, allocations: 237 kB / 0.977 GB, free: 12.82 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004546/0.3589, allocations: 402.5 kB / 0.9773 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008365/0.3597, allocations: 0.6817 MB / 0.978 GB, free: 11.6 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.3598, allocations: 8 kB / 0.978 GB, free: 11.59 MB / 0.7637 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001668/0.3614, allocations: 0.9208 MB / 0.9789 GB, free: 10.65 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.3615, allocations: 6.844 kB / 0.9789 GB, free: 10.65 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.3615, allocations: 8 kB / 0.9789 GB, free: 10.64 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007933/0.3623, allocations: 226.4 kB / 0.9791 GB, free: 10.41 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005124/0.3628, allocations: 115.8 kB / 0.9793 GB, free: 10.3 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005584/0.3684, allocations: 5.335 MB / 0.9845 GB, free: 4.539 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005518/0.369, allocations: 31.98 kB / 0.9845 GB, free: 4.508 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.3e-05/0.369, allocations: 23.98 kB / 0.9845 GB, free: 4.484 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.0003518/0.3694, allocations: 217.7 kB / 0.9847 GB, free: 4.262 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.3696, allocations: 59.28 kB / 0.9848 GB, free: 4.203 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001457/0.371, allocations: 0.7775 MB / 0.9855 GB, free: 3.41 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.371, allocations: 7.984 kB / 0.9855 GB, free: 3.402 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.3711, allocations: 4 kB / 0.9856 GB, free: 3.398 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.3711, allocations: 7.984 kB / 0.9856 GB, free: 3.391 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002446/0.3735, allocations: 1.494 MB / 0.987 GB, free: 1.809 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.3735, allocations: 4 kB / 0.987 GB, free: 1.805 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003529/0.3739, allocations: 59.95 kB / 0.9871 GB, free: 1.746 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006556/0.3746, allocations: 210.7 kB / 0.9873 GB, free: 1.531 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.298e-05/0.3746, allocations: 15.98 kB / 0.9873 GB, free: 1.516 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004948/0.3796, allocations: 5.262 MB / 0.9924 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.3796, allocations: 4 kB / 0.9924 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001879/0.3815, allocations: 1.139 MB / 0.9936 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003088/0.3818, allocations: 172.4 kB / 0.9937 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.939e-05/0.3819, allocations: 15.94 kB / 0.9937 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000321/0.3822, allocations: 19.97 kB / 0.9938 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.3823, allocations: 40.02 kB / 0.9938 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.852e-05/0.3823, allocations: 12 kB / 0.9938 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003525/0.3827, allocations: 310.9 kB / 0.9941 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3827, allocations: 0 / 0.9941 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0006909/0.3834, allocations: 167.9 kB / 0.9943 GB, free: 9.902 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.000169/0.3836, allocations: 123.2 kB / 0.9944 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001589/0.3852, allocations: 1.012 MB / 0.9954 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3852, allocations: 0 / 0.9954 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0009268/0.3861, allocations: 0.6877 MB / 0.996 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008442/0.387, allocations: 179.5 kB / 0.9962 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002049/0.389, allocations: 1.233 MB / 0.9974 GB, free: 6.543 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005727/0.3896, allocations: 0.9533 MB / 0.9983 GB, free: 5.562 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0003367/0.39, allocations: 116.9 kB / 0.9985 GB, free: 5.445 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.3901, allocations: 39.44 kB / 0.9985 GB, free: 5.406 MB / 0.7794 GB Notification: Performance of SimCode: time 2.905e-06/0.3901, allocations: 0 / 0.9985 GB, free: 5.406 MB / 0.7794 GB Notification: Performance of Templates: time 0.01704/0.4072, allocations: 8.838 MB / 1.007 GB, free: 12.68 MB / 0.795 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches