Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001773/0.001774, allocations: 108.8 kB / 16.41 MB, free: 6.492 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.001879/0.001879, 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.537/1.537, 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 9.1.3-maint.9.1.x/package.mo): time 2.293/2.293, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 59.91 kB / 0.9515 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9766/0.9779, allocations: 140.4 MB / 1.089 GB, free: 5.785 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.005873/0.9838, allocations: 4.387 MB / 1.093 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.004876/0.9887, allocations: 3.251 MB / 1.096 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003699/0.9891, allocations: 12.59 kB / 1.096 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00159/0.9907, allocations: 0.5131 MB / 1.097 GB, free: 272 kB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001139/0.9919, allocations: 402.5 kB / 1.097 GB, free: 40 kB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007994/0.9927, allocations: 246.4 kB / 1.097 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.000897/0.9936, allocations: 0.5931 MB / 1.098 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008241/0.9944, allocations: 0.5255 MB / 1.098 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005889/0.995, allocations: 289.5 kB / 1.099 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004909/0.9955, allocations: 274.5 kB / 1.099 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 8.716e-05/0.9956, allocations: 38.31 kB / 1.099 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007259/0.9964, allocations: 298.5 kB / 1.099 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002086/0.9966, allocations: 164 kB / 1.099 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002751/0.9969, allocations: 235.8 kB / 1.1 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001208/0.9981, allocations: 0.7922 MB / 1.1 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.9981, allocations: 0 / 1.1 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.814e-06/0.9981, allocations: 1.891 kB / 1.1 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.166e-05/0.9981, allocations: 0 / 1.1 GB, free: 14.65 MB / 0.8731 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.001514/0.9997, allocations: 0.7697 MB / 1.101 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.9997, allocations: 10.64 kB / 1.101 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003301/1.003, allocations: 0.6823 MB / 1.102 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008444/1.004, allocations: 451.3 kB / 1.102 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.091e-05/1.004, allocations: 30.11 kB / 1.102 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.268e-05/1.004, allocations: 36.73 kB / 1.102 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/1.006, allocations: 0.7827 MB / 1.103 GB, free: 13.4 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/1.006, allocations: 1.922 kB / 1.103 GB, free: 13.4 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.912e-05/1.006, allocations: 11.97 kB / 1.103 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001378/1.006, allocations: 43.66 kB / 1.103 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002347/1.009, allocations: 0.8721 MB / 1.104 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004463/1.013, allocations: 2.805 MB / 1.107 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001874/1.015, allocations: 0.5148 MB / 1.107 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007828/1.016, allocations: 259 kB / 1.107 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001213/1.016, allocations: 86.39 kB / 1.107 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/1.016, allocations: 35.69 kB / 1.108 GB, free: 10.85 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=16): time 2.175e-06/1.016, allocations: 4 kB / 1.108 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of matching and sorting (n=24): time 0.01315/1.029, allocations: 3.059 MB / 1.11 GB, free: 10.19 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/1.029, allocations: 58.06 kB / 1.111 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006241/1.03, allocations: 405.7 kB / 1.111 GB, free: 9.93 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 6.208e-05/1.03, allocations: 26.89 kB / 1.111 GB, free: 9.898 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/1.03, allocations: 243.8 kB / 1.111 GB, free: 9.699 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 9.446e-05/1.03, allocations: 84.38 kB / 1.111 GB, free: 9.633 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001741/1.03, allocations: 71.58 kB / 1.111 GB, free: 9.598 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001494/1.031, allocations: 346.8 kB / 1.112 GB, free: 9.27 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/1.032, allocations: 363.3 kB / 1.112 GB, free: 9.168 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/1.033, allocations: 428.8 kB / 1.112 GB, free: 8.984 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002048/1.035, allocations: 0.7581 MB / 1.113 GB, free: 8.695 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/1.035, allocations: 1.375 kB / 1.113 GB, free: 8.695 MB / 0.8731 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005311/1.04, allocations: 1.489 MB / 1.115 GB, free: 8.355 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/1.04, allocations: 5.25 kB / 1.115 GB, free: 8.355 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/1.04, allocations: 2.938 kB / 1.115 GB, free: 8.355 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003658/1.044, allocations: 0.7724 MB / 1.115 GB, free: 8.277 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007061/1.045, allocations: 127.3 kB / 1.116 GB, free: 8.273 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007168/1.052, allocations: 4.84 MB / 1.12 GB, free: 4.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009404/1.053, allocations: 114.2 kB / 1.12 GB, free: 4.812 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.114e-05/1.053, allocations: 16.69 kB / 1.12 GB, free: 4.809 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001317/1.054, allocations: 0.5298 MB / 1.121 GB, free: 4.602 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001042/1.055, allocations: 414.6 kB / 1.121 GB, free: 4.43 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002093/1.057, allocations: 0.7351 MB / 1.122 GB, free: 4.148 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.496e-06/1.057, allocations: 0 / 1.122 GB, free: 4.148 MB / 0.8731 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.005038/1.062, allocations: 1.264 MB / 1.123 GB, free: 3.852 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/1.062, allocations: 6.406 kB / 1.123 GB, free: 3.852 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/1.062, allocations: 6.203 kB / 1.123 GB, free: 3.848 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002485/1.065, allocations: 0.4955 MB / 1.124 GB, free: 3.801 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008031/1.066, allocations: 140.3 kB / 1.124 GB, free: 3.793 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003944/1.07, allocations: 2.61 MB / 1.126 GB, free: 1.992 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008965/1.071, allocations: 111.5 kB / 1.127 GB, free: 1.984 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.765e-05/1.071, allocations: 17.75 kB / 1.127 GB, free: 1.98 MB / 0.8731 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.0002201/1.071, allocations: 197.2 kB / 1.127 GB, free: 1.785 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/1.071, allocations: 37.2 kB / 1.127 GB, free: 1.766 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004929/1.076, allocations: 1.362 MB / 1.128 GB, free: 1.426 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/1.076, allocations: 2.188 kB / 1.128 GB, free: 1.426 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/1.076, allocations: 5.094 kB / 1.128 GB, free: 1.422 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/1.076, allocations: 2.438 kB / 1.128 GB, free: 1.422 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005515/1.082, allocations: 1.981 MB / 1.13 GB, free: 0.6797 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/1.082, allocations: 5.438 kB / 1.13 GB, free: 0.6758 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003973/1.082, allocations: 78.31 kB / 1.13 GB, free: 0.6719 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00318/1.085, allocations: 0.7091 MB / 1.131 GB, free: 0.5977 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.084e-05/1.085, allocations: 8.438 kB / 1.131 GB, free: 0.5938 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006419/1.092, allocations: 4.672 MB / 1.135 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/1.092, allocations: 1.375 kB / 1.135 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004284/1.096, allocations: 1.361 MB / 1.137 GB, free: 12.23 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002646/1.096, allocations: 157.5 kB / 1.137 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.705e-05/1.096, allocations: 14.34 kB / 1.137 GB, free: 12.08 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006033/1.097, allocations: 93 kB / 1.137 GB, free: 12.03 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/1.097, allocations: 21.59 kB / 1.137 GB, free: 12.02 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/1.097, allocations: 6.75 kB / 1.137 GB, free: 12.02 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004451/1.098, allocations: 310.9 kB / 1.137 GB, free: 11.82 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.4e-07/1.098, allocations: 0 / 1.137 GB, free: 11.82 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0009689/1.099, allocations: 197.7 kB / 1.137 GB, free: 11.81 MB / 0.8887 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.000186/1.099, allocations: 119.2 kB / 1.138 GB, free: 11.71 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003858/1.103, allocations: 1.567 MB / 1.139 GB, free: 10.73 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/1.103, allocations: 1.094 kB / 1.139 GB, free: 10.73 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001245/1.104, allocations: 0.627 MB / 1.14 GB, free: 10.29 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000698/1.105, allocations: 126.2 kB / 1.14 GB, free: 10.23 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002177/1.107, allocations: 1.068 MB / 1.141 GB, free: 9.559 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005792/1.107, allocations: 0.9049 MB / 1.142 GB, free: 8.75 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001657/1.108, allocations: 37.81 kB / 1.142 GB, free: 8.734 MB / 0.8887 GB Notification: Performance of SimCode: time 3.71e-07/1.108, allocations: 0 / 1.142 GB, free: 8.734 MB / 0.8887 GB Notification: Performance of Templates: time 0.01924/1.127, allocations: 12.56 MB / 1.154 GB, free: 2.16 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches