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.006631/0.006631, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001402/0.001402, allocations: 195 kB / 16.67 MB, free: 5.977 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.518/1.518, allocations: 222.9 MB / 240.4 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.733/2.733, allocations: 437 MB / 0.7105 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 59.91 kB / 1.019 GB, free: 9.438 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.122/1.123, allocations: 151.6 MB / 1.167 GB, free: 3.898 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.006036/1.129, allocations: 4.392 MB / 1.171 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.005004/1.134, allocations: 3.265 MB / 1.174 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004094/1.135, allocations: 19.81 kB / 1.174 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001691/1.137, allocations: 0.5031 MB / 1.175 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001197/1.138, allocations: 390 kB / 1.175 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007979/1.139, allocations: 252.9 kB / 1.175 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0007869/1.139, allocations: 0.5917 MB / 1.176 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006546/1.14, allocations: 0.5131 MB / 1.176 GB, free: 9.945 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004509/1.141, allocations: 279.1 kB / 1.177 GB, free: 9.672 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004372/1.141, allocations: 279 kB / 1.177 GB, free: 9.398 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 8.465e-05/1.141, allocations: 40 kB / 1.177 GB, free: 9.359 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006183/1.142, allocations: 299.5 kB / 1.177 GB, free: 9.066 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001807/1.142, allocations: 167.5 kB / 1.177 GB, free: 8.902 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000235/1.142, allocations: 226.9 kB / 1.178 GB, free: 8.68 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0009927/1.143, allocations: 0.7908 MB / 1.178 GB, free: 7.891 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/1.143, allocations: 0 / 1.178 GB, free: 7.891 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.914e-06/1.143, allocations: 0 / 1.178 GB, free: 7.891 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.687e-06/1.143, allocations: 0 / 1.178 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.00137/1.145, allocations: 0.7902 MB / 1.179 GB, free: 7.051 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/1.145, allocations: 8.031 kB / 1.179 GB, free: 7.043 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002856/1.148, allocations: 0.6831 MB / 1.18 GB, free: 6.359 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007257/1.148, allocations: 464 kB / 1.18 GB, free: 5.867 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/1.148, allocations: 21.03 kB / 1.18 GB, free: 5.848 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-05/1.148, allocations: 32.12 kB / 1.18 GB, free: 5.816 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/1.15, allocations: 0.7864 MB / 1.181 GB, free: 4.996 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/1.15, allocations: 0 / 1.181 GB, free: 4.996 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.83e-05/1.15, allocations: 12 kB / 1.181 GB, free: 4.984 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001086/1.15, allocations: 44.61 kB / 1.181 GB, free: 4.941 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00207/1.152, allocations: 0.8725 MB / 1.182 GB, free: 4.07 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004193/1.156, allocations: 2.823 MB / 1.185 GB, free: 1.027 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001669/1.158, allocations: 0.5213 MB / 1.185 GB, free: 0.4961 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000716/1.159, allocations: 252.6 kB / 1.185 GB, free: 252 kB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001736/1.159, allocations: 93.08 kB / 1.185 GB, free: 140 kB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/1.159, allocations: 34.56 kB / 1.186 GB, free: 96 kB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 2.114e-06/1.159, allocations: 0 / 1.186 GB, free: 96 kB / 0.9044 GB Notification: Performance of matching and sorting (n=24): time 0.01193/1.171, allocations: 3.06 MB / 1.189 GB, free: 13 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.656e-05/1.171, allocations: 55.41 kB / 1.189 GB, free: 12.93 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000678/1.172, allocations: 401.6 kB / 1.189 GB, free: 12.53 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.607e-05/1.172, allocations: 29.7 kB / 1.189 GB, free: 12.5 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002519/1.172, allocations: 252.2 kB / 1.189 GB, free: 12.25 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/1.172, allocations: 87.27 kB / 1.189 GB, free: 12.16 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/1.173, allocations: 73.62 kB / 1.189 GB, free: 12.08 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001866/1.173, allocations: 342.8 kB / 1.19 GB, free: 11.74 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009896/1.174, allocations: 360.5 kB / 1.19 GB, free: 11.38 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001044/1.175, allocations: 430.2 kB / 1.19 GB, free: 10.93 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001993/1.177, allocations: 0.7504 MB / 1.191 GB, free: 10.15 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/1.177, allocations: 4 kB / 1.191 GB, free: 10.15 MB / 0.92 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004928/1.182, allocations: 1.499 MB / 1.193 GB, free: 8.637 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/1.182, allocations: 10.28 kB / 1.193 GB, free: 8.629 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/1.182, allocations: 4 kB / 1.193 GB, free: 8.625 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003362/1.185, allocations: 0.7664 MB / 1.193 GB, free: 7.852 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006305/1.186, allocations: 131.8 kB / 1.194 GB, free: 7.723 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006739/1.193, allocations: 4.849 MB / 1.198 GB, free: 2.586 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007889/1.193, allocations: 111.8 kB / 1.198 GB, free: 2.477 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-05/1.193, allocations: 12 kB / 1.198 GB, free: 2.465 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001185/1.195, allocations: 0.5348 MB / 1.199 GB, free: 1.926 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009563/1.196, allocations: 420.1 kB / 1.199 GB, free: 1.484 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001842/1.197, allocations: 0.7333 MB / 1.2 GB, free: 0.7227 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.695e-06/1.198, allocations: 0 / 1.2 GB, free: 0.7227 MB / 0.92 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.004173/1.202, allocations: 1.274 MB / 1.201 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/1.202, allocations: 8 kB / 1.201 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/1.202, allocations: 0 / 1.201 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002173/1.204, allocations: 0.5004 MB / 1.202 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006688/1.205, allocations: 143.8 kB / 1.202 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00358/1.208, allocations: 2.593 MB / 1.204 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008103/1.209, allocations: 119.9 kB / 1.205 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.321e-05/1.209, allocations: 11.98 kB / 1.205 GB, free: 11.93 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.0002095/1.209, allocations: 200.1 kB / 1.205 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/1.209, allocations: 31.81 kB / 1.205 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004499/1.214, allocations: 1.366 MB / 1.206 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/1.214, allocations: 8 kB / 1.206 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/1.214, allocations: 0 / 1.206 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.779e-05/1.214, allocations: 3.984 kB / 1.206 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00533/1.219, allocations: 1.983 MB / 1.208 GB, free: 8.246 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.605e-05/1.219, allocations: 4 kB / 1.208 GB, free: 8.242 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003672/1.22, allocations: 83.83 kB / 1.208 GB, free: 8.16 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002976/1.223, allocations: 0.6999 MB / 1.209 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.442e-05/1.223, allocations: 15.92 kB / 1.209 GB, free: 7.438 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006043/1.229, allocations: 4.671 MB / 1.213 GB, free: 2.488 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.229, allocations: 4.031 kB / 1.213 GB, free: 2.484 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004183/1.233, allocations: 1.36 MB / 1.215 GB, free: 1.094 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000255/1.233, allocations: 164.8 kB / 1.215 GB, free: 0.9141 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.665e-05/1.233, allocations: 12 kB / 1.215 GB, free: 0.9023 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005812/1.234, allocations: 83.84 kB / 1.215 GB, free: 0.8203 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/1.234, allocations: 19.97 kB / 1.215 GB, free: 0.8008 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.494e-05/1.234, allocations: 12 kB / 1.215 GB, free: 0.7891 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004348/1.235, allocations: 307.1 kB / 1.215 GB, free: 0.4922 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.1e-07/1.235, allocations: 7.938 kB / 1.215 GB, free: 496 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0008419/1.235, allocations: 203.9 kB / 1.216 GB, free: 292 kB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (19): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 0.0001801/1.236, allocations: 107.2 kB / 1.216 GB, free: 172 kB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.003642/1.239, allocations: 1.566 MB / 1.217 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.239, allocations: 0 / 1.217 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001159/1.24, allocations: 0.6307 MB / 1.218 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006608/1.241, allocations: 130.4 kB / 1.218 GB, free: 13.78 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001942/1.243, allocations: 1.054 MB / 1.219 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005612/1.244, allocations: 0.9093 MB / 1.22 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0004977/1.244, allocations: 159.1 kB / 1.22 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/1.244, allocations: 39.41 kB / 1.22 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of SimCode: time 2.3e-07/1.244, allocations: 0 / 1.22 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of Templates: time 0.01981/1.264, allocations: 12.63 MB / 1.232 GB, free: 15 MB / 0.9669 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/jenkins/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