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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.403/2.403, allocations: 387.4 MB / 394.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 184.8 kB / 487.4 MB, free: 5.043 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008886/0.0008887, allocations: 94.67 kB / 0.9219 GB, free: 2.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.205e-05/2.203e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2632, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.01/1.274, allocations: 190.8 MB / 1.392 GB, free: 14.22 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/1.274, allocations: 95.53 kB / 1.392 GB, free: 14.2 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1966/1.47, allocations: 83.11 MB / 1.474 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.192e-06/1.471, allocations: 4 kB / 1.474 GB, free: 11.49 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001612/1.471, allocations: 39.98 kB / 1.474 GB, free: 11.45 MB / 0.8855 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.003959/1.475, allocations: 1.535 MB / 1.475 GB, free: 9.973 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/1.475, allocations: 12.03 kB / 1.475 GB, free: 9.961 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01104/1.486, allocations: 1.806 MB / 1.477 GB, free: 8.176 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003096/1.489, allocations: 1.135 MB / 1.478 GB, free: 7.191 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.431e-05/1.489, allocations: 40 kB / 1.478 GB, free: 7.152 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000549/1.49, allocations: 75.83 kB / 1.478 GB, free: 7.082 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003008/1.493, allocations: 1.435 MB / 1.479 GB, free: 6.188 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00362/1.496, allocations: 1.874 MB / 1.481 GB, free: 4.609 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.4e-05/1.496, allocations: 7.938 kB / 1.481 GB, free: 4.602 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002206/1.497, allocations: 7.953 kB / 1.481 GB, free: 4.594 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001122/1.497, allocations: 74.77 kB / 1.481 GB, free: 4.523 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01556/1.512, allocations: 9.925 MB / 1.491 GB, free: 10.21 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002/1.514, allocations: 1.113 MB / 1.492 GB, free: 9.066 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008138/1.515, allocations: 0.5761 MB / 1.493 GB, free: 8.488 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 5.24e-05/1.515, allocations: 4.438 kB / 1.493 GB, free: 8.48 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.785e-05/1.515, allocations: 42.95 kB / 1.493 GB, free: 8.43 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=53): time 3.396e-06/1.515, allocations: 4 kB / 1.493 GB, free: 8.426 MB / 0.9011 GB Notification: Performance of matching and sorting (n=81): time 0.01094/1.526, allocations: 3.881 MB / 1.497 GB, free: 4.508 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001535/1.526, allocations: 214.4 kB / 1.497 GB, free: 4.25 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00178/1.528, allocations: 0.7499 MB / 1.497 GB, free: 3.488 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0001211/1.528, allocations: 29.7 kB / 1.498 GB, free: 3.453 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005973/1.529, allocations: 0.7369 MB / 1.498 GB, free: 2.707 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003013/1.529, allocations: 271.9 kB / 1.499 GB, free: 2.438 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.31e-05/1.529, allocations: 0 / 1.499 GB, free: 2.438 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001569/1.53, allocations: 341.9 kB / 1.499 GB, free: 2.098 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009725/1.53, allocations: 0.678 MB / 1.499 GB, free: 1.418 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001112/1.532, allocations: 0.915 MB / 1.5 GB, free: 412 kB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/1.533, allocations: 0.7696 MB / 1.501 GB, free: 15.63 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/1.533, allocations: 4 kB / 1.501 GB, free: 15.62 MB / 0.9167 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.005064/1.538, allocations: 2.425 MB / 1.504 GB, free: 13.17 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/1.538, allocations: 8 kB / 1.504 GB, free: 13.16 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/1.538, allocations: 8 kB / 1.504 GB, free: 13.16 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003118/1.541, allocations: 0.8426 MB / 1.504 GB, free: 12.29 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002085/1.543, allocations: 423.2 kB / 1.505 GB, free: 11.88 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01519/1.559, allocations: 14.32 MB / 1.519 GB, free: 12.63 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002641/1.561, allocations: 287.6 kB / 1.519 GB, free: 12.35 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000277/1.562, allocations: 47.97 kB / 1.519 GB, free: 12.3 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 70 * 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 {(3,100.0%) 5,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 2,(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.0004077/1.562, allocations: 129.8 kB / 1.519 GB, free: 12.17 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003948/1.562, allocations: 126.5 kB / 1.519 GB, free: 12.05 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005432/1.568, allocations: 2.423 MB / 1.522 GB, free: 9.59 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/1.568, allocations: 8 kB / 1.522 GB, free: 9.582 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.819e-05/1.568, allocations: 11.95 kB / 1.522 GB, free: 9.57 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/1.568, allocations: 3.984 kB / 1.522 GB, free: 9.566 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008246/1.576, allocations: 4.026 MB / 1.526 GB, free: 5.434 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/1.576, allocations: 4.062 kB / 1.526 GB, free: 5.43 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001818/1.578, allocations: 367.4 kB / 1.526 GB, free: 5.07 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002817/1.581, allocations: 0.7521 MB / 1.527 GB, free: 4.293 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/1.581, allocations: 19.97 kB / 1.527 GB, free: 4.273 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01462/1.596, allocations: 13.92 MB / 1.54 GB, free: 5.43 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-05/1.596, allocations: 12.03 kB / 1.54 GB, free: 5.418 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004999/1.601, allocations: 2.427 MB / 1.543 GB, free: 2.859 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009547/1.602, allocations: 379.4 kB / 1.543 GB, free: 2.469 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004424/1.602, allocations: 4 kB / 1.543 GB, free: 2.465 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002254/1.604, allocations: 291.5 kB / 1.543 GB, free: 2.18 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000278/1.605, allocations: 80.61 kB / 1.543 GB, free: 2.102 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/1.605, allocations: 47.86 kB / 1.543 GB, free: 2.055 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001087/1.606, allocations: 0.5602 MB / 1.544 GB, free: 1.488 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.71e-07/1.606, allocations: 0 / 1.544 GB, free: 1.488 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002047/1.608, allocations: 419.9 kB / 1.544 GB, free: 1.078 MB / 0.948 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 () * 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,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(3,100.0%) 5,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000378/1.608, allocations: 130.9 kB / 1.545 GB, free: 0.9453 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.004579/1.613, allocations: 2.741 MB / 1.547 GB, free: 14.12 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 8.365e-06/1.613, allocations: 4 kB / 1.547 GB, free: 14.12 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.00299/1.616, allocations: 1.895 MB / 1.549 GB, free: 12.15 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002507/1.619, allocations: 422.5 kB / 1.549 GB, free: 11.74 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007694/1.626, allocations: 2.659 MB / 1.552 GB, free: 9.008 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001516/1.628, allocations: 1.419 MB / 1.553 GB, free: 7.551 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.001866/1.63, allocations: 362.4 kB / 1.554 GB, free: 7.191 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004225/1.63, allocations: 99.38 kB / 1.554 GB, free: 7.094 MB / 0.9636 GB Notification: Performance of SimCode: time 6.91e-07/1.63, allocations: 0 / 1.554 GB, free: 7.094 MB / 0.9636 GB Notification: Performance of Templates: time 0.04803/1.678, allocations: 26.41 MB / 1.58 GB, free: 13.01 MB / 0.9948 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