Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001665/0.001665, allocations: 108.9 kB / 16.41 MB, free: 6.488 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.001752/0.001752, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.383/1.383, 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 11.0.1-master/package.mo): time 2.606/2.606, allocations: 461.9 MB / 0.7355 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001507, allocations: 63.91 kB / 1.055 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.055/1.057, allocations: 157.4 MB / 1.208 GB, free: 13.82 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.008266/1.065, allocations: 6.094 MB / 1.214 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.005854/1.071, allocations: 3.145 MB / 1.217 GB, free: 4.547 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007547/1.072, allocations: 31.81 kB / 1.217 GB, free: 4.516 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.002664/1.075, allocations: 0.9294 MB / 1.218 GB, free: 3.586 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001494/1.076, allocations: 477.6 kB / 1.219 GB, free: 3.117 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001381/1.078, allocations: 478.8 kB / 1.219 GB, free: 2.648 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001603/1.079, allocations: 1.1 MB / 1.22 GB, free: 1.543 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001102/1.08, allocations: 0.6406 MB / 1.221 GB, free: 0.9023 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008299/1.081, allocations: 438.4 kB / 1.221 GB, free: 484 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008377/1.082, allocations: 470.2 kB / 1.222 GB, free: 12 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001867/1.082, allocations: 60.05 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001087/1.083, allocations: 487 kB / 1.222 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.000377/1.084, allocations: 287.2 kB / 1.223 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0006373/1.084, allocations: 405.9 kB / 1.223 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001565/1.086, allocations: 1.168 MB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/1.086, allocations: 0 / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.344e-06/1.086, allocations: 0 / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.483e-05/1.086, allocations: 0 / 1.224 GB, free: 13.62 MB / 0.9512 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.001686/1.088, allocations: 1.056 MB / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/1.088, allocations: 8.031 kB / 1.225 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001417/1.089, allocations: 223.7 kB / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009606/1.09, allocations: 0.5765 MB / 1.226 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.156e-05/1.09, allocations: 53.67 kB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/1.09, allocations: 68.34 kB / 1.226 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/1.092, allocations: 1.03 MB / 1.227 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.207e-05/1.092, allocations: 7.938 kB / 1.227 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.647e-05/1.092, allocations: 31.92 kB / 1.227 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.583e-05/1.092, allocations: 69.27 kB / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000945/1.093, allocations: 0.6957 MB / 1.228 GB, free: 9.609 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004953/1.098, allocations: 5.725 MB / 1.233 GB, free: 3.457 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008393/1.099, allocations: 0.5982 MB / 1.234 GB, free: 2.812 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007631/1.099, allocations: 428.6 kB / 1.234 GB, free: 2.391 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.893e-05/1.099, allocations: 4 kB / 1.234 GB, free: 2.387 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/1.099, allocations: 34.5 kB / 1.235 GB, free: 2.344 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=41): time 3.196e-06/1.099, allocations: 4 kB / 1.235 GB, free: 2.34 MB / 0.9512 GB Notification: Performance of matching and sorting (n=42): time 0.004152/1.104, allocations: 2.022 MB / 1.236 GB, free: 228 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/1.104, allocations: 55.41 kB / 1.237 GB, free: 160 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005097/1.104, allocations: 454.8 kB / 1.237 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.701e-05/1.104, allocations: 37.69 kB / 1.237 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002509/1.104, allocations: 383 kB / 1.237 GB, free: 15.28 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/1.105, allocations: 149.8 kB / 1.238 GB, free: 15.13 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/1.105, allocations: 114.2 kB / 1.238 GB, free: 15.01 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001333/1.105, allocations: 366.8 kB / 1.238 GB, free: 14.64 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003175/1.105, allocations: 241.2 kB / 1.238 GB, free: 14.41 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004504/1.106, allocations: 453 kB / 1.239 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008562/1.107, allocations: 0.7478 MB / 1.239 GB, free: 13.03 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/1.107, allocations: 4 kB / 1.239 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001717/1.108, allocations: 1.043 MB / 1.24 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/1.108, allocations: 12.03 kB / 1.24 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/1.108, allocations: 4 kB / 1.24 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009646/1.109, allocations: 323 kB / 1.241 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003067/1.11, allocations: 95.83 kB / 1.241 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006737/1.116, allocations: 7.481 MB / 1.248 GB, free: 3.48 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004998/1.117, allocations: 28.03 kB / 1.248 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.175e-05/1.117, allocations: 31.98 kB / 1.248 GB, free: 3.422 MB / 0.9669 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.0003799/1.117, allocations: 245.5 kB / 1.248 GB, free: 3.172 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/1.117, allocations: 63.28 kB / 1.248 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/1.119, allocations: 0.8846 MB / 1.249 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.563e-06/1.119, allocations: 7.938 kB / 1.249 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/1.119, allocations: 4 kB / 1.249 GB, free: 2.195 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/1.119, allocations: 3.938 kB / 1.249 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002604/1.122, allocations: 1.674 MB / 1.251 GB, free: 440 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.579e-05/1.122, allocations: 4 kB / 1.251 GB, free: 436 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/1.122, allocations: 39.91 kB / 1.251 GB, free: 396 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008383/1.123, allocations: 311.3 kB / 1.251 GB, free: 72 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.936e-05/1.123, allocations: 8 kB / 1.251 GB, free: 64 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006734/1.13, allocations: 7.455 MB / 1.259 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/1.13, allocations: 7.938 kB / 1.259 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001705/1.131, allocations: 0.9871 MB / 1.26 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003237/1.132, allocations: 172.4 kB / 1.26 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.182e-05/1.132, allocations: 12 kB / 1.26 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002651/1.132, allocations: 23.97 kB / 1.26 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/1.132, allocations: 48.11 kB / 1.26 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.916e-05/1.132, allocations: 12 kB / 1.26 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003954/1.133, allocations: 310.9 kB / 1.26 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/1.133, allocations: 3.938 kB / 1.26 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0009257/1.134, allocations: 192 kB / 1.26 GB, free: 6.23 MB / 0.9825 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.0001998/1.134, allocations: 111.2 kB / 1.26 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002014/1.136, allocations: 1.191 MB / 1.262 GB, free: 4.867 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/1.136, allocations: 0 / 1.262 GB, free: 4.867 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001186/1.137, allocations: 0.858 MB / 1.262 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009944/1.138, allocations: 215.2 kB / 1.263 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002193/1.14, allocations: 1.277 MB / 1.264 GB, free: 2.43 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006296/1.141, allocations: 0.9882 MB / 1.265 GB, free: 1.414 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/1.141, allocations: 43.42 kB / 1.265 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of SimCode: time 5.51e-07/1.141, allocations: 0 / 1.265 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of Templates: time 0.02268/1.164, allocations: 18.49 MB / 1.283 GB, free: 14.91 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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