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.001193/0.001193, allocations: 108.6 kB / 16.41 MB, free: 6.441 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.001118/0.001118, allocations: 185.6 kB / 17.34 MB, free: 5.746 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.15 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.397/2.397, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 67.89 kB / 0.9515 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9468/0.9484, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.007569/0.956, allocations: 6.089 MB / 1.095 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00552/0.9615, allocations: 3.139 MB / 1.098 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006107/0.9622, allocations: 29.56 kB / 1.098 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.00267/0.9648, allocations: 0.9305 MB / 1.099 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001584/0.9664, allocations: 0.4888 MB / 1.099 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001571/0.968, allocations: 484.6 kB / 1.1 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001741/0.9698, allocations: 1.095 MB / 1.101 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001096/0.9709, allocations: 0.6362 MB / 1.101 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007444/0.9716, allocations: 441.7 kB / 1.102 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007614/0.9724, allocations: 473.8 kB / 1.102 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.9725, allocations: 58.44 kB / 1.102 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001211/0.9737, allocations: 489.6 kB / 1.103 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0004075/0.9742, allocations: 287.2 kB / 1.103 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.000536/0.9747, allocations: 405 kB / 1.103 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002118/0.9768, allocations: 1.164 MB / 1.104 GB, free: 12.1 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.9769, allocations: 0 / 1.104 GB, free: 12.1 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.472e-06/0.9769, allocations: 3.938 kB / 1.104 GB, free: 12.1 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.042e-05/0.9769, allocations: 0 / 1.104 GB, free: 12.1 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.001905/0.9788, allocations: 1.059 MB / 1.105 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.9788, allocations: 10.33 kB / 1.105 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001591/0.9804, allocations: 221.5 kB / 1.106 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009361/0.9814, allocations: 0.5773 MB / 1.106 GB, free: 10.9 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.377e-05/0.9814, allocations: 50.23 kB / 1.106 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.9816, allocations: 60.88 kB / 1.106 GB, free: 10.86 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.9832, allocations: 1.037 MB / 1.107 GB, free: 10.24 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.123e-05/0.9833, allocations: 3.703 kB / 1.107 GB, free: 10.24 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.659e-05/0.9834, allocations: 29.73 kB / 1.107 GB, free: 10.22 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001223/0.9835, allocations: 73.44 kB / 1.107 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001187/0.9847, allocations: 0.6956 MB / 1.108 GB, free: 9.961 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00564/0.9903, allocations: 5.721 MB / 1.114 GB, free: 5.008 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009544/0.9913, allocations: 0.6175 MB / 1.114 GB, free: 4.617 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008723/0.9922, allocations: 424.7 kB / 1.115 GB, free: 4.484 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.115e-05/0.9922, allocations: 3.5 kB / 1.115 GB, free: 4.484 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.9923, allocations: 41.34 kB / 1.115 GB, free: 4.438 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=41): time 2.304e-06/0.9923, allocations: 0 / 1.115 GB, free: 4.438 MB / 0.8731 GB Notification: Performance of matching and sorting (n=42): time 0.004815/0.9971, allocations: 2.016 MB / 1.117 GB, free: 3.398 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.9972, allocations: 56.44 kB / 1.117 GB, free: 3.336 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000594/0.9978, allocations: 453.7 kB / 1.117 GB, free: 3.125 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.906e-05/0.9978, allocations: 31.05 kB / 1.117 GB, free: 3.09 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002966/0.9981, allocations: 390 kB / 1.118 GB, free: 2.777 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.9983, allocations: 155 kB / 1.118 GB, free: 2.656 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001987/0.9985, allocations: 104.7 kB / 1.118 GB, free: 2.602 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001972/0.9987, allocations: 365 kB / 1.118 GB, free: 2.266 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004463/0.9991, allocations: 242.1 kB / 1.118 GB, free: 2.184 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005554/0.9997, allocations: 456 kB / 1.119 GB, free: 1.828 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/1.001, allocations: 0.7433 MB / 1.12 GB, free: 1.32 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/1.001, allocations: 5.656 kB / 1.12 GB, free: 1.316 MB / 0.8731 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002049/1.003, allocations: 1.035 MB / 1.121 GB, free: 0.8867 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/1.003, allocations: 8.5 kB / 1.121 GB, free: 0.8867 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/1.003, allocations: 7.016 kB / 1.121 GB, free: 0.8867 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/1.004, allocations: 323.1 kB / 1.121 GB, free: 0.7852 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003424/1.004, allocations: 98.16 kB / 1.121 GB, free: 0.7734 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007516/1.012, allocations: 7.476 MB / 1.128 GB, free: 10.39 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004717/1.012, allocations: 33.52 kB / 1.128 GB, free: 10.38 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.653e-05/1.012, allocations: 29.89 kB / 1.128 GB, free: 10.37 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.0004129/1.013, allocations: 250.5 kB / 1.129 GB, free: 10.19 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.842e-05/1.013, allocations: 64.22 kB / 1.129 GB, free: 10.15 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001819/1.015, allocations: 0.8892 MB / 1.13 GB, free: 9.766 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/1.015, allocations: 7.328 kB / 1.13 GB, free: 9.766 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/1.015, allocations: 3.5 kB / 1.13 GB, free: 9.766 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/1.015, allocations: 0 / 1.13 GB, free: 9.766 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002906/1.018, allocations: 1.68 MB / 1.131 GB, free: 8.91 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/1.018, allocations: 2.391 kB / 1.131 GB, free: 8.91 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001705/1.018, allocations: 41.11 kB / 1.131 GB, free: 8.906 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009916/1.019, allocations: 306.6 kB / 1.132 GB, free: 8.812 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.176e-05/1.019, allocations: 7.406 kB / 1.132 GB, free: 8.809 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009048/1.028, allocations: 7.466 MB / 1.139 GB, free: 2.441 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/1.028, allocations: 9.281 kB / 1.139 GB, free: 2.434 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002041/1.03, allocations: 0.9879 MB / 1.14 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002983/1.03, allocations: 173.5 kB / 1.14 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.978e-05/1.03, allocations: 10.12 kB / 1.14 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002927/1.031, allocations: 24.02 kB / 1.14 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/1.031, allocations: 42.83 kB / 1.14 GB, free: 1.754 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.333e-05/1.031, allocations: 13.16 kB / 1.14 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004363/1.031, allocations: 310.5 kB / 1.14 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.4e-07/1.031, allocations: 1.188 kB / 1.14 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0009942/1.032, allocations: 197.1 kB / 1.141 GB, free: 1.578 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.0001841/1.033, allocations: 104.1 kB / 1.141 GB, free: 1.484 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002031/1.035, allocations: 1.197 MB / 1.142 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/1.035, allocations: 0 / 1.142 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001276/1.036, allocations: 0.8557 MB / 1.143 GB, free: 156 kB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/1.037, allocations: 205.6 kB / 1.143 GB, free: 84 kB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/1.039, allocations: 1.29 MB / 1.144 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007185/1.04, allocations: 0.9881 MB / 1.145 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/1.04, allocations: 38.33 kB / 1.145 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of SimCode: time 1.082e-06/1.04, allocations: 0 / 1.145 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of Templates: time 0.03277/1.073, allocations: 18.49 MB / 1.163 GB, free: 7.426 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