Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001377/0.001378, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001535/0.001535, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.615/2.615, allocations: 390.2 MB / 0.6653 GB, free: 2.992 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003548/0.0003549, allocations: 8 kB / 0.8145 GB, free: 14.31 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8473/0.8476, allocations: 142.3 MB / 0.9535 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.009877/0.8576, allocations: 9.252 MB / 0.9626 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01314/0.8707, allocations: 8.031 MB / 0.9704 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002193/0.873, allocations: 54.47 kB / 0.9704 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001242/0.8742, allocations: 257.9 kB / 0.9707 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.006013/0.8803, allocations: 1.255 MB / 0.9719 GB, free: 9.57 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002017/0.8823, allocations: 472 kB / 0.9724 GB, free: 9.215 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003827/0.8861, allocations: 1.379 MB / 0.9737 GB, free: 8.348 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003922/0.8901, allocations: 1.786 MB / 0.9755 GB, free: 7.207 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002535/0.8926, allocations: 0.7202 MB / 0.9762 GB, free: 6.797 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001739/0.8944, allocations: 0.7341 MB / 0.9769 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001944/0.8946, allocations: 59.16 kB / 0.9769 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001498/0.8961, allocations: 409.1 kB / 0.9773 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0005354/0.8966, allocations: 445.5 kB / 0.9778 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0005811/0.8972, allocations: 339.7 kB / 0.9781 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002757/0.9, allocations: 1.907 MB / 0.9799 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.9, allocations: 0 / 0.9799 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.755e-06/0.9, allocations: 5.406 kB / 0.9799 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.411e-05/0.9001, allocations: 0 / 0.9799 GB, free: 4.387 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.00391/0.904, allocations: 1.71 MB / 0.9816 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.9041, allocations: 9.688 kB / 0.9816 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01106/0.9151, allocations: 2.126 MB / 0.9837 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003043/0.9182, allocations: 1.079 MB / 0.9848 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.854e-05/0.9183, allocations: 90.31 kB / 0.9848 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002265/0.9186, allocations: 115.9 kB / 0.9849 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005725/0.9243, allocations: 2.482 MB / 0.9874 GB, free: 13.12 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.866e-05/0.9244, allocations: 11.89 kB / 0.9874 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001597/0.9245, allocations: 55.94 kB / 0.9874 GB, free: 13.06 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003788/0.9249, allocations: 134 kB / 0.9876 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007274/0.9322, allocations: 2.58 MB / 0.9901 GB, free: 10.34 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01566/0.9479, allocations: 10.11 MB / 1 GB, free: 15.56 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006096/0.9541, allocations: 2 MB / 1.002 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 4.819e-05/0.9542, allocations: 4.438 kB / 1.002 GB, free: 13.53 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.208e-05/0.9542, allocations: 46.88 kB / 1.002 GB, free: 13.48 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=53): time 3.246e-06/0.9542, allocations: 0 / 1.002 GB, free: 13.48 MB / 0.7637 GB Notification: Performance of matching and sorting (n=81): time 0.03178/0.986, allocations: 8.773 MB / 1.011 GB, free: 4.645 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.9862, allocations: 60.06 kB / 1.011 GB, free: 4.574 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00265/0.9889, allocations: 1.081 MB / 1.012 GB, free: 3.477 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0002269/0.9891, allocations: 37.7 kB / 1.012 GB, free: 3.434 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008063/0.99, allocations: 0.7418 MB / 1.012 GB, free: 2.684 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004636/0.9904, allocations: 280 kB / 1.013 GB, free: 2.406 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.9906, allocations: 20 kB / 1.013 GB, free: 2.387 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.000214/0.9908, allocations: 353.8 kB / 1.013 GB, free: 2.035 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003044/0.9938, allocations: 1.091 MB / 1.014 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003199/0.9971, allocations: 1.313 MB / 1.015 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003106/1, allocations: 1.15 MB / 1.016 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-06/1, allocations: 4 kB / 1.016 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.009037/1.009, allocations: 3.308 MB / 1.02 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.597e-05/1.009, allocations: 8 kB / 1.02 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/1.009, allocations: 8 kB / 1.02 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002859/1.012, allocations: 0.7838 MB / 1.021 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001973/1.014, allocations: 427.3 kB / 1.021 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01762/1.032, allocations: 14.97 MB / 1.036 GB, free: 9.75 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002824/1.035, allocations: 299.6 kB / 1.036 GB, free: 9.457 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000302/1.035, allocations: 55.95 kB / 1.036 GB, free: 9.402 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 2,(2,100.0%) 2,(3,100.0%) 5,(3,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001092/1.036, allocations: 400.2 kB / 1.036 GB, free: 9.004 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004409/1.037, allocations: 146.2 kB / 1.036 GB, free: 8.859 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009136/1.046, allocations: 3.234 MB / 1.04 GB, free: 5.586 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.435e-05/1.046, allocations: 12 kB / 1.04 GB, free: 5.574 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.853e-05/1.046, allocations: 4 kB / 1.04 GB, free: 5.57 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/1.046, allocations: 7.984 kB / 1.04 GB, free: 5.562 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01277/1.059, allocations: 4.947 MB / 1.044 GB, free: 500 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.822e-05/1.059, allocations: 7.984 kB / 1.044 GB, free: 492 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001683/1.06, allocations: 363.7 kB / 1.045 GB, free: 128 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002623/1.063, allocations: 0.7054 MB / 1.045 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001491/1.063, allocations: 27.97 kB / 1.045 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01688/1.08, allocations: 14.61 MB / 1.06 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/1.08, allocations: 3.938 kB / 1.06 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008969/1.089, allocations: 3.229 MB / 1.063 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001472/1.091, allocations: 383.1 kB / 1.063 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000606/1.091, allocations: 19.98 kB / 1.063 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002329/1.094, allocations: 303.4 kB / 1.064 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003315/1.094, allocations: 84.45 kB / 1.064 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001313/1.094, allocations: 39.95 kB / 1.064 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001459/1.096, allocations: 0.7249 MB / 1.064 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.31e-07/1.096, allocations: 3.938 kB / 1.064 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.002578/1.098, allocations: 432 kB / 1.065 GB, free: 10.31 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(3,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003539/1.099, allocations: 135 kB / 1.065 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.009217/1.108, allocations: 3.648 MB / 1.069 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/1.108, allocations: 0 / 1.069 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.005409/1.113, allocations: 2.387 MB / 1.071 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002889/1.116, allocations: 484.4 kB / 1.071 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009617/1.126, allocations: 3.93 MB / 1.075 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001703/1.128, allocations: 1.419 MB / 1.077 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001908/1.129, allocations: 379.9 kB / 1.077 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004523/1.13, allocations: 103.4 kB / 1.077 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of SimCode: time 1.112e-06/1.13, allocations: 3.938 kB / 1.077 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of Templates: time 0.05192/1.182, allocations: 28.09 MB / 1.104 GB, free: 1.848 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches