Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001289/0.001289, allocations: 108.1 kB / 16.41 MB, free: 6.496 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.001382/0.001382, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.351/1.351, 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 10.1.1-maint.10.0.x/package.mo): time 2.436/2.436, allocations: 437 MB / 0.7112 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 71.89 kB / 1.019 GB, free: 9.43 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.037/1.038, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.00861/1.047, allocations: 6.086 MB / 1.173 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.005613/1.052, allocations: 3.157 MB / 1.176 GB, free: 10.6 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006431/1.053, allocations: 27.81 kB / 1.176 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002588/1.056, allocations: 0.9272 MB / 1.177 GB, free: 9.645 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001388/1.057, allocations: 493.6 kB / 1.178 GB, free: 9.16 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001329/1.058, allocations: 493.9 kB / 1.178 GB, free: 8.68 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001402/1.06, allocations: 1.096 MB / 1.179 GB, free: 7.578 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009947/1.061, allocations: 0.6348 MB / 1.18 GB, free: 6.938 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007145/1.061, allocations: 454.3 kB / 1.18 GB, free: 6.492 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006329/1.062, allocations: 470.2 kB / 1.181 GB, free: 6.031 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 9.367e-05/1.062, allocations: 56 kB / 1.181 GB, free: 5.977 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009618/1.063, allocations: 490.9 kB / 1.181 GB, free: 5.496 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002752/1.063, allocations: 287.2 kB / 1.182 GB, free: 5.215 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000372/1.064, allocations: 398 kB / 1.182 GB, free: 4.824 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001332/1.065, allocations: 1.172 MB / 1.183 GB, free: 3.652 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/1.065, allocations: 0 / 1.183 GB, free: 3.652 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.894e-06/1.065, allocations: 0 / 1.183 GB, free: 3.652 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.622e-05/1.065, allocations: 0 / 1.183 GB, free: 3.652 MB / 0.9044 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.001587/1.067, allocations: 1.082 MB / 1.184 GB, free: 2.516 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/1.067, allocations: 16.58 kB / 1.184 GB, free: 2.5 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001454/1.068, allocations: 220.2 kB / 1.184 GB, free: 2.285 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009187/1.069, allocations: 0.5926 MB / 1.185 GB, free: 1.652 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.694e-05/1.069, allocations: 49.67 kB / 1.185 GB, free: 1.605 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/1.069, allocations: 60.36 kB / 1.185 GB, free: 1.547 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001401/1.071, allocations: 1.026 MB / 1.186 GB, free: 412 kB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.43e-05/1.071, allocations: 19.81 kB / 1.186 GB, free: 392 kB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.749e-05/1.071, allocations: 31.98 kB / 1.186 GB, free: 360 kB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.391e-05/1.071, allocations: 69.28 kB / 1.186 GB, free: 292 kB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/1.072, allocations: 0.6879 MB / 1.187 GB, free: 15.6 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005265/1.077, allocations: 5.738 MB / 1.192 GB, free: 9.434 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008666/1.078, allocations: 0.5981 MB / 1.193 GB, free: 8.789 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007518/1.079, allocations: 428.6 kB / 1.193 GB, free: 8.367 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.554e-05/1.079, allocations: 8.688 kB / 1.193 GB, free: 8.359 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/1.079, allocations: 42.5 kB / 1.193 GB, free: 8.309 MB / 0.92 GB Notification: Performance of pre-optimization done (n=41): time 2.925e-06/1.079, allocations: 0 / 1.193 GB, free: 8.309 MB / 0.92 GB Notification: Performance of matching and sorting (n=42): time 0.004166/1.083, allocations: 2.027 MB / 1.195 GB, free: 6.188 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/1.083, allocations: 55.41 kB / 1.196 GB, free: 6.121 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005031/1.084, allocations: 454.8 kB / 1.196 GB, free: 5.668 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.572e-05/1.084, allocations: 33.7 kB / 1.196 GB, free: 5.629 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002608/1.084, allocations: 404.1 kB / 1.196 GB, free: 5.23 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/1.084, allocations: 154.6 kB / 1.197 GB, free: 5.078 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/1.084, allocations: 114.2 kB / 1.197 GB, free: 4.961 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001572/1.085, allocations: 358.8 kB / 1.197 GB, free: 4.602 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003401/1.085, allocations: 249.2 kB / 1.197 GB, free: 4.359 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004908/1.085, allocations: 453 kB / 1.198 GB, free: 3.82 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000914/1.086, allocations: 0.7439 MB / 1.198 GB, free: 2.98 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/1.086, allocations: 0 / 1.198 GB, free: 2.98 MB / 0.92 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001764/1.088, allocations: 1.046 MB / 1.199 GB, free: 1.914 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/1.088, allocations: 14.44 kB / 1.199 GB, free: 1.902 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/1.088, allocations: 8 kB / 1.199 GB, free: 1.895 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009798/1.089, allocations: 319.4 kB / 1.2 GB, free: 1.57 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003018/1.09, allocations: 95.83 kB / 1.2 GB, free: 1.477 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00719/1.097, allocations: 7.479 MB / 1.207 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005066/1.097, allocations: 36.02 kB / 1.207 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.402e-05/1.097, allocations: 24 kB / 1.207 GB, free: 9.375 MB / 0.9356 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.0004144/1.098, allocations: 245.6 kB / 1.207 GB, free: 9.125 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/1.098, allocations: 63.56 kB / 1.207 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001662/1.1, allocations: 0.8925 MB / 1.208 GB, free: 8.148 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/1.1, allocations: 4.281 kB / 1.208 GB, free: 8.145 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/1.1, allocations: 4 kB / 1.208 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/1.1, allocations: 3.984 kB / 1.208 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002657/1.102, allocations: 1.674 MB / 1.21 GB, free: 6.375 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/1.102, allocations: 3.938 kB / 1.21 GB, free: 6.371 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/1.102, allocations: 39.97 kB / 1.21 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008796/1.103, allocations: 311.3 kB / 1.21 GB, free: 6.016 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.908e-05/1.103, allocations: 8 kB / 1.21 GB, free: 6.008 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007132/1.111, allocations: 7.469 MB / 1.218 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/1.111, allocations: 7.875 kB / 1.218 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/1.112, allocations: 0.9918 MB / 1.219 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002544/1.113, allocations: 176.7 kB / 1.219 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.382e-05/1.113, allocations: 19.89 kB / 1.219 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/1.113, allocations: 19.97 kB / 1.219 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/1.113, allocations: 35.89 kB / 1.219 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.144e-05/1.113, allocations: 16.28 kB / 1.219 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003442/1.113, allocations: 306.9 kB / 1.219 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.9e-07/1.113, allocations: 0 / 1.219 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0007788/1.114, allocations: 203.9 kB / 1.219 GB, free: 12.16 MB / 0.9512 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.0001549/1.114, allocations: 107.2 kB / 1.219 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001771/1.116, allocations: 1.199 MB / 1.221 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/1.116, allocations: 0 / 1.221 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001145/1.117, allocations: 0.8618 MB / 1.221 GB, free: 9.875 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009161/1.118, allocations: 202.7 kB / 1.222 GB, free: 9.688 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002115/1.12, allocations: 1.308 MB / 1.223 GB, free: 8.324 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006095/1.121, allocations: 0.996 MB / 1.224 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.418e-05/1.121, allocations: 35.44 kB / 1.224 GB, free: 7.262 MB / 0.9512 GB Notification: Performance of SimCode: time 2.484e-06/1.121, allocations: 0 / 1.224 GB, free: 7.262 MB / 0.9512 GB Notification: Performance of Templates: time 0.02217/1.143, allocations: 18.5 MB / 1.242 GB, free: 4.793 MB / 0.9669 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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