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.001135/0.001135, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008756/0.008756, allocations: 169.1 kB / 16.26 MB, free: 6.328 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.558/1.558, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.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.776/2.776, allocations: 437.8 MB / 0.7121 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005235/0.0005235, allocations: 11.98 kB / 0.8728 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8356/0.8361, allocations: 153.8 MB / 1.023 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.005594/0.8418, allocations: 4.047 MB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005286/0.8471, allocations: 3.207 MB / 1.03 GB, free: 8.668 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003885/0.8475, allocations: 19.81 kB / 1.03 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.00072/0.8482, allocations: 171.1 kB / 1.03 GB, free: 8.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001132/0.8494, allocations: 362.4 kB / 1.031 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000707/0.8501, allocations: 227.5 kB / 1.031 GB, free: 7.902 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001079/0.8512, allocations: 0.7946 MB / 1.032 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001592/0.8528, allocations: 0.8135 MB / 1.032 GB, free: 6.254 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006195/0.8535, allocations: 223.1 kB / 1.033 GB, free: 6.035 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006045/0.8541, allocations: 259 kB / 1.033 GB, free: 5.781 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.289e-05/0.8542, allocations: 16 kB / 1.033 GB, free: 5.766 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007525/0.8549, allocations: 323.4 kB / 1.033 GB, free: 5.449 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000204/0.8551, allocations: 131.6 kB / 1.033 GB, free: 5.32 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003274/0.8555, allocations: 216.7 kB / 1.034 GB, free: 5.102 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.8566, allocations: 0.773 MB / 1.034 GB, free: 4.328 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.8566, allocations: 0 / 1.034 GB, free: 4.328 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.443e-06/0.8566, allocations: 0 / 1.034 GB, free: 4.328 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.8e-05/0.8566, allocations: 0 / 1.034 GB, free: 4.328 MB / 0.7794 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.001502/0.8581, allocations: 0.6936 MB / 1.035 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.8582, allocations: 12.03 kB / 1.035 GB, free: 3.574 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003275/0.8615, allocations: 0.6828 MB / 1.036 GB, free: 2.891 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009521/0.8624, allocations: 447.8 kB / 1.036 GB, free: 2.414 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/0.8625, allocations: 21.03 kB / 1.036 GB, free: 2.395 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.8626, allocations: 36.06 kB / 1.036 GB, free: 2.359 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001844/0.8644, allocations: 0.7982 MB / 1.037 GB, free: 1.531 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.8645, allocations: 3.984 kB / 1.037 GB, free: 1.527 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.045e-05/0.8646, allocations: 15.98 kB / 1.037 GB, free: 1.512 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001206/0.8647, allocations: 40.62 kB / 1.037 GB, free: 1.469 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002245/0.8669, allocations: 0.8882 MB / 1.038 GB, free: 0.582 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004451/0.8714, allocations: 2.827 MB / 1.041 GB, free: 13.54 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001864/0.8733, allocations: 0.5332 MB / 1.041 GB, free: 13 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008067/0.8741, allocations: 268.5 kB / 1.041 GB, free: 12.73 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001285/0.8743, allocations: 97.02 kB / 1.041 GB, free: 12.62 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.8743, allocations: 42.5 kB / 1.042 GB, free: 12.57 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 3.116e-06/0.8743, allocations: 0 / 1.042 GB, free: 12.57 MB / 0.795 GB Notification: Performance of matching and sorting (n=24): time 0.01782/0.8921, allocations: 3.194 MB / 1.045 GB, free: 9.34 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001391/0.8923, allocations: 59.34 kB / 1.045 GB, free: 9.27 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008887/0.8932, allocations: 413.5 kB / 1.045 GB, free: 8.859 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001129/0.8934, allocations: 25.7 kB / 1.045 GB, free: 8.828 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003307/0.8937, allocations: 227.9 kB / 1.045 GB, free: 8.602 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001442/0.8939, allocations: 90.75 kB / 1.045 GB, free: 8.512 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.894, allocations: 29.7 kB / 1.045 GB, free: 8.477 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0002/0.8942, allocations: 350.8 kB / 1.046 GB, free: 8.125 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001636/0.8958, allocations: 363.7 kB / 1.046 GB, free: 7.77 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001849/0.8977, allocations: 445.5 kB / 1.047 GB, free: 7.301 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003167/0.9009, allocations: 0.7933 MB / 1.047 GB, free: 6.48 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.9009, allocations: 0 / 1.047 GB, free: 6.48 MB / 0.795 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009322/0.9102, allocations: 1.54 MB / 1.049 GB, free: 4.93 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001814/0.9105, allocations: 158 kB / 1.049 GB, free: 4.746 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/0.9105, allocations: 4 kB / 1.049 GB, free: 4.742 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007343/0.9178, allocations: 0.8208 MB / 1.05 GB, free: 3.914 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001329/0.9192, allocations: 135.8 kB / 1.05 GB, free: 3.781 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01229/0.9315, allocations: 4.538 MB / 1.054 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/0.9331, allocations: 123.8 kB / 1.054 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.643e-05/0.9332, allocations: 20.05 kB / 1.054 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.9332, allocations: 4 kB / 1.054 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007915/0.9412, allocations: 1.265 MB / 1.056 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.9412, allocations: 4 kB / 1.056 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00469/0.9459, allocations: 0.5431 MB / 1.056 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001442/0.9474, allocations: 143.8 kB / 1.056 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008511/0.9559, allocations: 2.697 MB / 1.059 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.9575, allocations: 111.9 kB / 1.059 GB, free: 9.926 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.936e-05/0.9577, allocations: 23.92 kB / 1.059 GB, free: 9.902 MB / 0.8106 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.0009491/0.9586, allocations: 320.2 kB / 1.059 GB, free: 9.582 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001936/0.9588, allocations: 35.62 kB / 1.059 GB, free: 9.547 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009199/0.9681, allocations: 1.42 MB / 1.061 GB, free: 8.113 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/0.9681, allocations: 4.094 kB / 1.061 GB, free: 8.109 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.9681, allocations: 0 / 1.061 GB, free: 8.109 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.647e-05/0.9681, allocations: 7.922 kB / 1.061 GB, free: 8.102 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01029/0.9784, allocations: 2.036 MB / 1.063 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/0.9785, allocations: 4 kB / 1.063 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007782/0.9793, allocations: 79.84 kB / 1.063 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006396/0.9857, allocations: 0.7701 MB / 1.064 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.48e-05/0.9858, allocations: 7.984 kB / 1.064 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01069/0.9965, allocations: 4.364 MB / 1.068 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.9966, allocations: 8.094 kB / 1.068 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008427/1.005, allocations: 1.403 MB / 1.069 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004477/1.006, allocations: 172.6 kB / 1.07 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001307/1.006, allocations: 7.938 kB / 1.07 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/1.007, allocations: 95.84 kB / 1.07 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002235/1.007, allocations: 23.97 kB / 1.07 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.334e-05/1.007, allocations: 4 kB / 1.07 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0007603/1.008, allocations: 315.1 kB / 1.07 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of sort global known variables: time 5.71e-07/1.008, allocations: 0 / 1.07 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001325/1.009, allocations: 200 kB / 1.07 GB, free: 14.23 MB / 0.8262 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.0002559/1.01, allocations: 112.4 kB / 1.07 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.007915/1.018, allocations: 1.765 MB / 1.072 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 7.174e-06/1.018, allocations: 8.125 kB / 1.072 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001956/1.02, allocations: 0.63 MB / 1.073 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/1.021, allocations: 111.7 kB / 1.073 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003362/1.024, allocations: 1.241 MB / 1.074 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008171/1.025, allocations: 0.9132 MB / 1.075 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.001188/1.026, allocations: 155.2 kB / 1.075 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002275/1.026, allocations: 35.42 kB / 1.075 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of SimCode: time 8.22e-07/1.027, allocations: 0 / 1.075 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of Templates: time 0.03121/1.058, allocations: 12.06 MB / 1.087 GB, free: 13.14 MB / 0.8419 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