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.001665/0.001665, allocations: 104.1 kB / 16.4 MB, free: 6.457 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.001628/0.001628, allocations: 189.2 kB / 17.34 MB, free: 5.742 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.552/1.552, allocations: 222.9 MB / 241 MB, free: 15.18 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.755/2.755, allocations: 437.1 MB / 0.7112 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 64.11 kB / 1.019 GB, free: 9.445 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.073/1.075, allocations: 151.6 MB / 1.167 GB, free: 3.875 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.007265/1.083, allocations: 4.394 MB / 1.172 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.00579/1.088, allocations: 3.268 MB / 1.175 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003475/1.089, allocations: 11.94 kB / 1.175 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001665/1.09, allocations: 0.5112 MB / 1.175 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001146/1.092, allocations: 397.9 kB / 1.176 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006701/1.092, allocations: 252.7 kB / 1.176 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0008269/1.093, allocations: 0.5878 MB / 1.176 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007924/1.094, allocations: 0.5247 MB / 1.177 GB, free: 9.902 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005272/1.095, allocations: 291.1 kB / 1.177 GB, free: 9.617 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004974/1.095, allocations: 275 kB / 1.178 GB, free: 9.348 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 6.944e-05/1.095, allocations: 40 kB / 1.178 GB, free: 9.309 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007494/1.096, allocations: 295.5 kB / 1.178 GB, free: 9.02 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001845/1.096, allocations: 159.6 kB / 1.178 GB, free: 8.863 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000264/1.096, allocations: 246.8 kB / 1.178 GB, free: 8.621 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001032/1.097, allocations: 0.7908 MB / 1.179 GB, free: 7.832 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/1.097, allocations: 0 / 1.179 GB, free: 7.832 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.693e-06/1.097, allocations: 4 kB / 1.179 GB, free: 7.828 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.438e-06/1.097, allocations: 0 / 1.179 GB, free: 7.828 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.001428/1.099, allocations: 0.7824 MB / 1.18 GB, free: 6.996 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/1.099, allocations: 8.031 kB / 1.18 GB, free: 6.988 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00292/1.102, allocations: 0.6792 MB / 1.18 GB, free: 6.309 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007832/1.103, allocations: 456 kB / 1.181 GB, free: 5.824 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.03e-05/1.103, allocations: 24.97 kB / 1.181 GB, free: 5.801 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.375e-05/1.103, allocations: 40.11 kB / 1.181 GB, free: 5.762 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/1.104, allocations: 0.7787 MB / 1.182 GB, free: 4.949 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/1.105, allocations: 3.938 kB / 1.182 GB, free: 4.945 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.062e-05/1.105, allocations: 15.98 kB / 1.182 GB, free: 4.93 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001169/1.105, allocations: 44.61 kB / 1.182 GB, free: 4.887 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002095/1.107, allocations: 0.8648 MB / 1.183 GB, free: 4.023 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004321/1.111, allocations: 2.827 MB / 1.185 GB, free: 0.9766 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001752/1.113, allocations: 0.5136 MB / 1.186 GB, free: 460 kB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000755/1.114, allocations: 256.6 kB / 1.186 GB, free: 200 kB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001227/1.114, allocations: 81.11 kB / 1.186 GB, free: 100 kB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/1.114, allocations: 38.56 kB / 1.186 GB, free: 52 kB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 2.134e-06/1.114, allocations: 3.938 kB / 1.186 GB, free: 48 kB / 0.9044 GB Notification: Performance of matching and sorting (n=24): time 0.0125/1.126, allocations: 3.07 MB / 1.189 GB, free: 12.95 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/1.127, allocations: 51.41 kB / 1.189 GB, free: 12.88 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005576/1.127, allocations: 401.6 kB / 1.19 GB, free: 12.48 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 5.496e-05/1.127, allocations: 25.7 kB / 1.19 GB, free: 12.45 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002125/1.127, allocations: 252.2 kB / 1.19 GB, free: 12.2 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 9.264e-05/1.128, allocations: 87.25 kB / 1.19 GB, free: 12.11 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001917/1.128, allocations: 73.64 kB / 1.19 GB, free: 12.04 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000191/1.128, allocations: 350.7 kB / 1.19 GB, free: 11.68 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001029/1.129, allocations: 360.5 kB / 1.191 GB, free: 11.33 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/1.13, allocations: 434.2 kB / 1.191 GB, free: 10.87 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002179/1.132, allocations: 0.7504 MB / 1.192 GB, free: 10.09 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/1.132, allocations: 0 / 1.192 GB, free: 10.09 MB / 0.92 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005265/1.138, allocations: 1.507 MB / 1.193 GB, free: 8.574 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/1.138, allocations: 10.34 kB / 1.193 GB, free: 8.566 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/1.138, allocations: 0 / 1.193 GB, free: 8.566 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003512/1.141, allocations: 0.7664 MB / 1.194 GB, free: 7.793 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007012/1.142, allocations: 127.8 kB / 1.194 GB, free: 7.668 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007806/1.15, allocations: 4.839 MB / 1.199 GB, free: 2.539 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008718/1.151, allocations: 107.9 kB / 1.199 GB, free: 2.434 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.017e-05/1.151, allocations: 19.98 kB / 1.199 GB, free: 2.414 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001375/1.152, allocations: 0.5369 MB / 1.2 GB, free: 1.875 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001028/1.153, allocations: 424 kB / 1.2 GB, free: 1.43 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001919/1.155, allocations: 0.7294 MB / 1.201 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.497e-06/1.155, allocations: 7.984 kB / 1.201 GB, free: 0.6641 MB / 0.92 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.004376/1.159, allocations: 1.27 MB / 1.202 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/1.159, allocations: 4 kB / 1.202 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/1.159, allocations: 4 kB / 1.202 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002285/1.162, allocations: 0.5002 MB / 1.203 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007045/1.162, allocations: 139.8 kB / 1.203 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004097/1.167, allocations: 2.605 MB / 1.205 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00081/1.167, allocations: 107.8 kB / 1.205 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.788e-05/1.167, allocations: 24.05 kB / 1.205 GB, free: 11.86 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.0002989/1.168, allocations: 196.1 kB / 1.205 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.594e-05/1.168, allocations: 31.81 kB / 1.206 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004656/1.173, allocations: 1.356 MB / 1.207 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/1.173, allocations: 8.078 kB / 1.207 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/1.173, allocations: 0 / 1.207 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/1.173, allocations: 4 kB / 1.207 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005639/1.178, allocations: 1.991 MB / 1.209 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/1.178, allocations: 3.938 kB / 1.209 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003859/1.179, allocations: 79.94 kB / 1.209 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003081/1.182, allocations: 0.7154 MB / 1.21 GB, free: 7.383 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.322e-05/1.182, allocations: 7.938 kB / 1.21 GB, free: 7.375 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006497/1.188, allocations: 4.671 MB / 1.214 GB, free: 2.426 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/1.188, allocations: 0 / 1.214 GB, free: 2.426 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004336/1.193, allocations: 1.365 MB / 1.215 GB, free: 1.031 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002997/1.193, allocations: 164.8 kB / 1.216 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.954e-05/1.193, allocations: 4 kB / 1.216 GB, free: 0.8477 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005984/1.194, allocations: 91.84 kB / 1.216 GB, free: 0.7578 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/1.194, allocations: 23.97 kB / 1.216 GB, free: 0.7344 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.362e-05/1.194, allocations: 8 kB / 1.216 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004375/1.194, allocations: 311.1 kB / 1.216 GB, free: 436 kB / 0.9356 GB Notification: Performance of sort global known variables: time 3.01e-07/1.194, allocations: 0 / 1.216 GB, free: 436 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0008128/1.195, allocations: 199.9 kB / 1.216 GB, free: 236 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.0001855/1.195, allocations: 111.2 kB / 1.216 GB, free: 112 kB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.003867/1.199, allocations: 1.562 MB / 1.218 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/1.199, allocations: 4 kB / 1.218 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001305/1.201, allocations: 0.6261 MB / 1.219 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006761/1.201, allocations: 130.5 kB / 1.219 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002033/1.203, allocations: 1.055 MB / 1.22 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006589/1.204, allocations: 0.9171 MB / 1.221 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0005226/1.204, allocations: 159.1 kB / 1.221 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/1.205, allocations: 39.41 kB / 1.221 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of SimCode: time 9.82e-07/1.205, allocations: 0 / 1.221 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of Templates: time 0.02184/1.226, allocations: 12.65 MB / 1.233 GB, free: 14.92 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 -s cvode -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