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.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.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.008442/0.008442, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.001496/0.001496, allocations: 194.3 kB / 16.68 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.511/1.511, allocations: 222.9 MB / 240.4 MB, free: 15.13 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.275/2.275, allocations: 390.2 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 63.91 kB / 0.9508 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.099/1.101, allocations: 140.4 MB / 1.088 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007169/1.108, allocations: 5.464 MB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00478/1.113, allocations: 2.622 MB / 1.096 GB, free: 4 kB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005024/1.113, allocations: 21.23 kB / 1.096 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002017/1.115, allocations: 0.6788 MB / 1.096 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001321/1.117, allocations: 430.5 kB / 1.097 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001213/1.118, allocations: 390.4 kB / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001363/1.119, allocations: 0.9517 MB / 1.098 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007848/1.12, allocations: 472 kB / 1.099 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006253/1.121, allocations: 376.4 kB / 1.099 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006655/1.121, allocations: 408 kB / 1.099 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 9.374e-05/1.121, allocations: 52.28 kB / 1.099 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009091/1.122, allocations: 359.5 kB / 1.1 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.000381/1.123, allocations: 247.5 kB / 1.1 GB, free: 13.97 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0004704/1.123, allocations: 354.4 kB / 1.1 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001667/1.125, allocations: 0.9689 MB / 1.101 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/1.125, allocations: 0 / 1.101 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.016e-06/1.125, allocations: 0.875 kB / 1.101 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.208e-05/1.125, allocations: 3.938 kB / 1.101 GB, free: 13.42 MB / 0.8731 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.002124/1.127, allocations: 0.9958 MB / 1.102 GB, free: 12.69 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/1.127, allocations: 8.688 kB / 1.102 GB, free: 12.69 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001551/1.129, allocations: 194.8 kB / 1.102 GB, free: 12.65 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/1.13, allocations: 0.5162 MB / 1.103 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.247e-05/1.13, allocations: 37.48 kB / 1.103 GB, free: 12.28 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002011/1.13, allocations: 52.34 kB / 1.103 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/1.132, allocations: 0.8361 MB / 1.104 GB, free: 11.78 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/1.132, allocations: 11.09 kB / 1.104 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.077e-05/1.132, allocations: 31.58 kB / 1.104 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002121/1.132, allocations: 68.12 kB / 1.104 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001001/1.133, allocations: 0.5683 MB / 1.105 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00593/1.139, allocations: 4.578 MB / 1.109 GB, free: 7.641 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005719/1.14, allocations: 298.7 kB / 1.109 GB, free: 7.516 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003483/1.14, allocations: 226.5 kB / 1.11 GB, free: 7.426 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/1.14, allocations: 4.281 kB / 1.11 GB, free: 7.426 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.772e-05/1.14, allocations: 37.86 kB / 1.11 GB, free: 7.383 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=33): time 2.555e-06/1.14, allocations: 0 / 1.11 GB, free: 7.383 MB / 0.8731 GB Notification: Performance of matching and sorting (n=40): time 0.006538/1.147, allocations: 2.635 MB / 1.112 GB, free: 5.992 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/1.147, allocations: 63.94 kB / 1.112 GB, free: 5.922 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007013/1.147, allocations: 456.8 kB / 1.113 GB, free: 5.699 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.823e-05/1.147, allocations: 31.92 kB / 1.113 GB, free: 5.664 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002592/1.148, allocations: 346.2 kB / 1.113 GB, free: 5.383 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/1.148, allocations: 146.6 kB / 1.113 GB, free: 5.27 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002226/1.148, allocations: 109.7 kB / 1.113 GB, free: 5.207 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001912/1.148, allocations: 360 kB / 1.114 GB, free: 4.875 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005705/1.149, allocations: 239.4 kB / 1.114 GB, free: 4.793 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005686/1.149, allocations: 412.6 kB / 1.114 GB, free: 4.488 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009951/1.15, allocations: 0.6726 MB / 1.115 GB, free: 4.055 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/1.15, allocations: 1.406 kB / 1.115 GB, free: 4.055 MB / 0.8731 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002114/1.153, allocations: 0.92 MB / 1.116 GB, free: 3.668 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.203e-05/1.153, allocations: 7.906 kB / 1.116 GB, free: 3.668 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/1.153, allocations: 5.938 kB / 1.116 GB, free: 3.668 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000962/1.154, allocations: 224.4 kB / 1.116 GB, free: 3.602 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006019/1.154, allocations: 115.3 kB / 1.116 GB, free: 3.59 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005942/1.16, allocations: 5.338 MB / 1.121 GB, free: 14.92 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007134/1.161, allocations: 33.75 kB / 1.121 GB, free: 14.91 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.688e-05/1.161, allocations: 23.92 kB / 1.121 GB, free: 14.91 MB / 0.8887 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.0005407/1.162, allocations: 225.4 kB / 1.122 GB, free: 14.73 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002165/1.162, allocations: 65.06 kB / 1.122 GB, free: 14.7 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001812/1.164, allocations: 0.773 MB / 1.122 GB, free: 14.36 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/1.164, allocations: 12.83 kB / 1.122 GB, free: 14.35 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/1.164, allocations: 2.688 kB / 1.122 GB, free: 14.35 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/1.164, allocations: 1.922 kB / 1.122 GB, free: 14.35 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003242/1.167, allocations: 1.498 MB / 1.124 GB, free: 13.57 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/1.167, allocations: 2.047 kB / 1.124 GB, free: 13.57 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004553/1.167, allocations: 68.33 kB / 1.124 GB, free: 13.56 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00075/1.168, allocations: 202.8 kB / 1.124 GB, free: 13.5 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.683e-05/1.168, allocations: 12.09 kB / 1.124 GB, free: 13.49 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005896/1.174, allocations: 5.281 MB / 1.129 GB, free: 8.844 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/1.174, allocations: 2.25 kB / 1.129 GB, free: 8.844 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0023/1.176, allocations: 1.132 MB / 1.13 GB, free: 8.262 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000636/1.177, allocations: 175.3 kB / 1.131 GB, free: 8.117 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002765/1.177, allocations: 14 kB / 1.131 GB, free: 8.109 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006719/1.178, allocations: 27.92 kB / 1.131 GB, free: 8.102 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002251/1.178, allocations: 38.84 kB / 1.131 GB, free: 8.09 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.982e-05/1.178, allocations: 11.62 kB / 1.131 GB, free: 8.09 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0008669/1.179, allocations: 312 kB / 1.131 GB, free: 7.941 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.2e-07/1.179, allocations: 0 / 1.131 GB, free: 7.941 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001536/1.181, allocations: 166.2 kB / 1.131 GB, free: 7.926 MB / 0.8887 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.0003238/1.181, allocations: 129.6 kB / 1.131 GB, free: 7.809 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002791/1.184, allocations: 1.013 MB / 1.132 GB, free: 7.223 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/1.184, allocations: 4.125 kB / 1.132 GB, free: 7.219 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001474/1.186, allocations: 0.6821 MB / 1.133 GB, free: 6.758 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001618/1.187, allocations: 186.4 kB / 1.133 GB, free: 6.691 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003333/1.19, allocations: 1.267 MB / 1.134 GB, free: 5.953 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001027/1.192, allocations: 0.9496 MB / 1.135 GB, free: 5.223 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0006346/1.192, allocations: 112.8 kB / 1.135 GB, free: 5.199 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001371/1.192, allocations: 37.64 kB / 1.135 GB, free: 5.191 MB / 0.8887 GB Notification: Performance of SimCode: time 1.894e-06/1.192, allocations: 0 / 1.135 GB, free: 5.191 MB / 0.8887 GB Notification: Performance of Templates: time 0.02826/1.221, allocations: 8.956 MB / 1.144 GB, free: 4.387 MB / 0.8887 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 -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/jenkins/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