Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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_L,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.OnePhase.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,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.OnePhase.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 105.8 kB / 16.41 MB, free: 6.465 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.001078/0.001078, allocations: 187 kB / 17.34 MB, free: 5.719 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.14 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.405/2.405, allocations: 390.2 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 59.91 kB / 0.9515 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.021/1.023, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.008107/1.031, allocations: 6.085 MB / 1.095 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.005876/1.037, allocations: 3.143 MB / 1.098 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006826/1.038, allocations: 28.97 kB / 1.098 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002687/1.04, allocations: 0.9341 MB / 1.099 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001615/1.042, allocations: 479 kB / 1.099 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001605/1.044, allocations: 480.5 kB / 1.099 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001697/1.045, allocations: 1.091 MB / 1.101 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001083/1.046, allocations: 0.6412 MB / 1.101 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008383/1.047, allocations: 445.5 kB / 1.102 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007224/1.048, allocations: 465.8 kB / 1.102 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001141/1.048, allocations: 62.97 kB / 1.102 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001199/1.049, allocations: 490.2 kB / 1.103 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0003657/1.05, allocations: 286.3 kB / 1.103 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0004893/1.05, allocations: 403.8 kB / 1.103 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001896/1.052, allocations: 1.168 MB / 1.104 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/1.052, allocations: 1.438 kB / 1.104 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.124e-06/1.052, allocations: 4 kB / 1.104 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.457e-05/1.052, allocations: 0 / 1.104 GB, free: 12.12 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001761/1.054, allocations: 1.054 MB / 1.105 GB, free: 11.35 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/1.054, allocations: 9.406 kB / 1.105 GB, free: 11.35 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001619/1.056, allocations: 222.8 kB / 1.106 GB, free: 11.3 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009522/1.057, allocations: 0.5805 MB / 1.106 GB, free: 10.92 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.106e-05/1.057, allocations: 50.08 kB / 1.106 GB, free: 10.9 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/1.057, allocations: 65.73 kB / 1.106 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/1.058, allocations: 1.037 MB / 1.107 GB, free: 10.26 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.189e-05/1.058, allocations: 7.891 kB / 1.107 GB, free: 10.26 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.476e-05/1.059, allocations: 32.67 kB / 1.107 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001075/1.059, allocations: 66.05 kB / 1.107 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/1.06, allocations: 0.6901 MB / 1.108 GB, free: 9.984 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005229/1.065, allocations: 5.731 MB / 1.114 GB, free: 5.023 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009234/1.066, allocations: 0.5975 MB / 1.114 GB, free: 4.648 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008939/1.067, allocations: 431.8 kB / 1.115 GB, free: 4.512 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.354e-05/1.067, allocations: 5.047 kB / 1.115 GB, free: 4.512 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.865e-05/1.067, allocations: 36.78 kB / 1.115 GB, free: 4.469 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=41): time 2.224e-06/1.067, allocations: 0 / 1.115 GB, free: 4.469 MB / 0.8731 GB Notification: Performance of matching and sorting (n=42): time 0.004805/1.072, allocations: 2.012 MB / 1.117 GB, free: 3.434 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/1.072, allocations: 56.22 kB / 1.117 GB, free: 3.371 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005583/1.072, allocations: 458.6 kB / 1.117 GB, free: 3.156 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.044e-05/1.072, allocations: 35.08 kB / 1.117 GB, free: 3.117 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002733/1.073, allocations: 385 kB / 1.118 GB, free: 2.809 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/1.073, allocations: 155.9 kB / 1.118 GB, free: 2.688 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/1.073, allocations: 103.8 kB / 1.118 GB, free: 2.633 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001541/1.073, allocations: 369 kB / 1.118 GB, free: 2.293 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003841/1.074, allocations: 242.5 kB / 1.118 GB, free: 2.211 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005066/1.074, allocations: 450.7 kB / 1.119 GB, free: 1.859 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009129/1.075, allocations: 0.7484 MB / 1.12 GB, free: 1.348 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/1.075, allocations: 2.125 kB / 1.12 GB, free: 1.348 MB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001929/1.077, allocations: 1.039 MB / 1.121 GB, free: 0.9141 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/1.077, allocations: 7.5 kB / 1.121 GB, free: 0.9141 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/1.077, allocations: 6.656 kB / 1.121 GB, free: 0.9141 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/1.078, allocations: 320.4 kB / 1.121 GB, free: 0.8164 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003422/1.078, allocations: 102.1 kB / 1.121 GB, free: 0.8008 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007396/1.086, allocations: 7.473 MB / 1.128 GB, free: 10.42 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006982/1.087, allocations: 32.86 kB / 1.128 GB, free: 10.41 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.232e-05/1.087, allocations: 25.58 kB / 1.128 GB, free: 10.41 MB / 0.8887 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 (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006715/1.087, allocations: 249.5 kB / 1.129 GB, free: 10.22 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/1.088, allocations: 64.45 kB / 1.129 GB, free: 10.19 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001867/1.089, allocations: 0.8925 MB / 1.13 GB, free: 9.801 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/1.089, allocations: 8.594 kB / 1.13 GB, free: 9.797 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/1.089, allocations: 3.625 kB / 1.13 GB, free: 9.797 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/1.089, allocations: 2.766 kB / 1.13 GB, free: 9.797 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002913/1.092, allocations: 1.673 MB / 1.131 GB, free: 8.945 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/1.092, allocations: 1.844 kB / 1.131 GB, free: 8.945 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001774/1.093, allocations: 47.19 kB / 1.131 GB, free: 8.938 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009418/1.094, allocations: 309.3 kB / 1.132 GB, free: 8.84 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.353e-05/1.094, allocations: 11.56 kB / 1.132 GB, free: 8.832 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007309/1.101, allocations: 7.457 MB / 1.139 GB, free: 2.473 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/1.101, allocations: 7.219 kB / 1.139 GB, free: 2.469 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001877/1.103, allocations: 0.9913 MB / 1.14 GB, free: 1.949 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002762/1.103, allocations: 169.6 kB / 1.14 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.772e-05/1.103, allocations: 8.672 kB / 1.14 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002845/1.103, allocations: 23.77 kB / 1.14 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/1.104, allocations: 43.89 kB / 1.14 GB, free: 1.789 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.899e-05/1.104, allocations: 21 kB / 1.14 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004423/1.104, allocations: 306.8 kB / 1.14 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.3e-07/1.104, allocations: 1.25 kB / 1.14 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001048/1.105, allocations: 192.6 kB / 1.141 GB, free: 1.613 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001891/1.105, allocations: 121.5 kB / 1.141 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00209/1.107, allocations: 1.189 MB / 1.142 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/1.107, allocations: 4 kB / 1.142 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001244/1.109, allocations: 0.8506 MB / 1.143 GB, free: 188 kB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/1.11, allocations: 204 kB / 1.143 GB, free: 116 kB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002241/1.112, allocations: 1.3 MB / 1.144 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007221/1.113, allocations: 0.9845 MB / 1.145 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/1.113, allocations: 42.66 kB / 1.145 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of SimCode: time 4.71e-07/1.113, allocations: 0 / 1.145 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of Templates: time 0.0251/1.138, allocations: 18.48 MB / 1.163 GB, free: 7.457 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference: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] Variables in the result:R1.i[1],R1.i[2],R1.v[1],R1.v[2],R2.i[1],R2.i[2],R2.v[1],R2.v[2],R3.i[1],R3.i[2],R3.v[1],R3.v[2],load_sc.i[1],load_sc.i[2],time