Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002359/0.002359, allocations: 115.8 kB / 16.42 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.002733/0.002732, allocations: 185.7 kB / 17.35 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.492/1.492, allocations: 222.9 MB / 241.1 MB, free: 15.15 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.537/2.537, allocations: 437 MB / 0.7112 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 63.91 kB / 1.019 GB, free: 9.445 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.086/1.088, allocations: 151.6 MB / 1.167 GB, free: 3.906 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.007194/1.095, allocations: 4.394 MB / 1.172 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.005626/1.101, allocations: 3.265 MB / 1.175 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000501/1.101, allocations: 11.94 kB / 1.175 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001836/1.103, allocations: 0.5035 MB / 1.175 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001195/1.104, allocations: 394 kB / 1.176 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007967/1.105, allocations: 255.4 kB / 1.176 GB, free: 11.06 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001045/1.106, allocations: 0.5957 MB / 1.176 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008401/1.107, allocations: 0.5246 MB / 1.177 GB, free: 9.941 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006344/1.108, allocations: 283.2 kB / 1.177 GB, free: 9.664 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005405/1.108, allocations: 275 kB / 1.178 GB, free: 9.395 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001114/1.108, allocations: 40 kB / 1.178 GB, free: 9.355 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000639/1.109, allocations: 303.5 kB / 1.178 GB, free: 9.059 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002224/1.109, allocations: 159.6 kB / 1.178 GB, free: 8.902 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003453/1.109, allocations: 238.8 kB / 1.178 GB, free: 8.668 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001136/1.111, allocations: 0.7769 MB / 1.179 GB, free: 7.891 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/1.111, allocations: 0 / 1.179 GB, free: 7.891 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.463e-06/1.111, allocations: 0 / 1.179 GB, free: 7.891 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.627e-05/1.111, allocations: 0 / 1.179 GB, free: 7.891 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001482/1.112, allocations: 0.7831 MB / 1.18 GB, free: 7.059 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/1.112, allocations: 12.03 kB / 1.18 GB, free: 7.047 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002935/1.115, allocations: 0.6711 MB / 1.18 GB, free: 6.375 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007665/1.116, allocations: 455.8 kB / 1.181 GB, free: 5.891 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/1.116, allocations: 21.03 kB / 1.181 GB, free: 5.871 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.002e-05/1.116, allocations: 36.11 kB / 1.181 GB, free: 5.836 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/1.118, allocations: 0.7864 MB / 1.182 GB, free: 5.016 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/1.118, allocations: 7.984 kB / 1.182 GB, free: 5.008 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.523e-05/1.118, allocations: 15.98 kB / 1.182 GB, free: 4.992 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001163/1.118, allocations: 44.61 kB / 1.182 GB, free: 4.949 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002103/1.12, allocations: 0.8725 MB / 1.183 GB, free: 4.078 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004153/1.124, allocations: 2.811 MB / 1.185 GB, free: 1.047 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/1.126, allocations: 0.5175 MB / 1.186 GB, free: 0.5156 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007352/1.127, allocations: 252.6 kB / 1.186 GB, free: 272 kB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001236/1.127, allocations: 89.09 kB / 1.186 GB, free: 164 kB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/1.127, allocations: 38.56 kB / 1.186 GB, free: 116 kB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 2.414e-06/1.127, allocations: 0 / 1.186 GB, free: 116 kB / 0.9044 GB Notification: Performance of matching and sorting (n=24): time 0.0127/1.14, allocations: 3.058 MB / 1.189 GB, free: 13.02 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/1.14, allocations: 55.41 kB / 1.189 GB, free: 12.96 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005639/1.14, allocations: 405.5 kB / 1.19 GB, free: 12.55 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.029e-05/1.14, allocations: 29.7 kB / 1.19 GB, free: 12.52 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/1.14, allocations: 235.8 kB / 1.19 GB, free: 12.28 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 9.52e-05/1.141, allocations: 90.73 kB / 1.19 GB, free: 12.19 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001758/1.141, allocations: 69.67 kB / 1.19 GB, free: 12.12 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001489/1.141, allocations: 346.8 kB / 1.19 GB, free: 11.77 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/1.142, allocations: 356.5 kB / 1.191 GB, free: 11.42 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/1.143, allocations: 434.2 kB / 1.191 GB, free: 10.96 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001999/1.145, allocations: 0.7543 MB / 1.192 GB, free: 10.18 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/1.145, allocations: 4 kB / 1.192 GB, free: 10.18 MB / 0.92 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005338/1.15, allocations: 1.495 MB / 1.193 GB, free: 8.668 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.834e-05/1.15, allocations: 6.344 kB / 1.193 GB, free: 8.664 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/1.15, allocations: 4 kB / 1.193 GB, free: 8.66 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003695/1.154, allocations: 0.7741 MB / 1.194 GB, free: 7.879 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007721/1.155, allocations: 131.8 kB / 1.194 GB, free: 7.75 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007466/1.162, allocations: 4.842 MB / 1.199 GB, free: 2.621 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009407/1.163, allocations: 111.8 kB / 1.199 GB, free: 2.512 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.75e-05/1.164, allocations: 15.98 kB / 1.199 GB, free: 2.496 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001306/1.165, allocations: 0.5387 MB / 1.2 GB, free: 1.953 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001061/1.166, allocations: 416.1 kB / 1.2 GB, free: 1.516 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001981/1.168, allocations: 0.7333 MB / 1.201 GB, free: 0.7539 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.847e-06/1.168, allocations: 3.938 kB / 1.201 GB, free: 0.75 MB / 0.92 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.004497/1.172, allocations: 1.27 MB / 1.202 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/1.172, allocations: 8 kB / 1.202 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/1.172, allocations: 0 / 1.202 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00231/1.175, allocations: 0.4964 MB / 1.202 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007659/1.176, allocations: 139.8 kB / 1.203 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003878/1.179, allocations: 2.605 MB / 1.205 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00094/1.18, allocations: 111.9 kB / 1.205 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.441e-05/1.181, allocations: 11.98 kB / 1.205 GB, free: 11.96 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (29): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002689/1.181, allocations: 206.3 kB / 1.205 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/1.181, allocations: 31.62 kB / 1.205 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004821/1.186, allocations: 1.352 MB / 1.207 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/1.186, allocations: 11.98 kB / 1.207 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/1.186, allocations: 0 / 1.207 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003439/1.186, allocations: 160.6 kB / 1.207 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/1.186, allocations: 4 kB / 1.207 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006726/1.187, allocations: 91.78 kB / 1.207 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/1.187, allocations: 23.97 kB / 1.207 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003639/1.191, allocations: 1.162 MB / 1.208 GB, free: 8.875 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002654/1.193, allocations: 1.11 MB / 1.209 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007348/1.194, allocations: 313.9 kB / 1.21 GB, free: 7.445 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004955/1.195, allocations: 307.1 kB / 1.21 GB, free: 7.148 MB / 0.9356 GB Notification: Performance of Backend: time 9.92e-07/1.195, allocations: 0 / 1.21 GB, free: 7.148 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.00421/1.199, allocations: 1.514 MB / 1.211 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of SimCode: time 0.002463/1.201, allocations: 1.414 MB / 1.213 GB, free: 4.133 MB / 0.9356 GB Notification: Performance of Templates: time 0.03103/1.233, allocations: 15.46 MB / 1.228 GB, free: 4.75 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches