Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.ACLine_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 110.8 kB / 16.27 MB, free: 6.414 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.001073/0.001073, allocations: 191.8 kB / 17.2 MB, free: 5.953 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.375/1.375, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.769/2.769, allocations: 437 MB / 0.711 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 68.59 kB / 0.8699 GB, free: 2.172 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3404, allocations: 151.6 MB / 1.018 GB, free: 10.61 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.009083/0.3496, allocations: 6.732 MB / 1.025 GB, free: 3.855 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00543/0.3551, allocations: 3.036 MB / 1.028 GB, free: 0.8086 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00075/0.3558, allocations: 23.88 kB / 1.028 GB, free: 0.7852 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.002743/0.3586, allocations: 0.9568 MB / 1.028 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.001538/0.3602, allocations: 0.5012 MB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001223/0.3614, allocations: 421.3 kB / 1.029 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001711/0.3631, allocations: 1.232 MB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001129/0.3643, allocations: 0.6586 MB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000861/0.3651, allocations: 474.2 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009839/0.3661, allocations: 0.5176 MB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002101/0.3664, allocations: 68 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009482/0.3673, allocations: 379.2 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0004011/0.3677, allocations: 307.2 kB / 1.033 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0007553/0.3685, allocations: 449.8 kB / 1.033 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001743/0.3702, allocations: 1.203 MB / 1.034 GB, free: 9.645 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3703, allocations: 4 kB / 1.034 GB, free: 9.641 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.064e-06/0.3703, allocations: 0 / 1.034 GB, free: 9.641 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.802e-05/0.3703, allocations: 0 / 1.034 GB, free: 9.641 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002513/0.3728, allocations: 1.157 MB / 1.036 GB, free: 8.434 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.3729, allocations: 12.88 kB / 1.036 GB, free: 8.422 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001695/0.3746, allocations: 239.6 kB / 1.036 GB, free: 8.188 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009544/0.3756, allocations: 0.5452 MB / 1.036 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.606e-05/0.3756, allocations: 53.67 kB / 1.036 GB, free: 7.547 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.3757, allocations: 64.36 kB / 1.036 GB, free: 7.484 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/0.3773, allocations: 1.077 MB / 1.038 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.265e-05/0.3774, allocations: 7.938 kB / 1.038 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.303e-05/0.3775, allocations: 31.98 kB / 1.038 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001789/0.3776, allocations: 85.25 kB / 1.038 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001232/0.3789, allocations: 0.7543 MB / 1.038 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005701/0.3846, allocations: 5.905 MB / 1.044 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.3856, allocations: 0.5469 MB / 1.045 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004366/0.3861, allocations: 333.9 kB / 1.045 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.321e-05/0.3861, allocations: 4.438 kB / 1.045 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/0.3862, allocations: 43 kB / 1.045 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=47): time 2.475e-06/0.3862, allocations: 0 / 1.045 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.004091/0.3903, allocations: 1.982 MB / 1.047 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.3903, allocations: 59.84 kB / 1.047 GB, free: 12 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007119/0.3911, allocations: 0.5509 MB / 1.048 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.459e-05/0.3911, allocations: 33.7 kB / 1.048 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002748/0.3914, allocations: 418.9 kB / 1.048 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.3916, allocations: 173.6 kB / 1.048 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/0.3918, allocations: 126.5 kB / 1.048 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001786/0.392, allocations: 378.7 kB / 1.049 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003987/0.3924, allocations: 273.8 kB / 1.049 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005331/0.3929, allocations: 497 kB / 1.049 GB, free: 9.457 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.394, allocations: 0.8054 MB / 1.05 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.394, allocations: 8 kB / 1.05 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001864/0.3959, allocations: 1.079 MB / 1.051 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.3959, allocations: 11.98 kB / 1.051 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.3959, allocations: 4 kB / 1.051 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008787/0.3968, allocations: 291.2 kB / 1.052 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004895/0.3973, allocations: 123.8 kB / 1.052 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006786/0.4041, allocations: 7.138 MB / 1.059 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006694/0.4048, allocations: 39.97 kB / 1.059 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.226e-05/0.4049, allocations: 31.98 kB / 1.059 GB, free: 15.25 MB / 0.8419 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 (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,6,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004138/0.4053, allocations: 251.9 kB / 1.059 GB, free: 15 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.4055, allocations: 67.25 kB / 1.059 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001578/0.4071, allocations: 0.8963 MB / 1.06 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.4071, allocations: 7.938 kB / 1.06 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.4071, allocations: 4 kB / 1.06 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.4071, allocations: 0 / 1.06 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002687/0.4098, allocations: 1.721 MB / 1.062 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.4098, allocations: 0 / 1.062 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002716/0.4101, allocations: 63.83 kB / 1.062 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007669/0.4109, allocations: 271.2 kB / 1.062 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.76e-05/0.4109, allocations: 8 kB / 1.062 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006433/0.4174, allocations: 7.131 MB / 1.069 GB, free: 4.152 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.625e-06/0.4174, allocations: 4.172 kB / 1.069 GB, free: 4.148 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/0.419, allocations: 0.9757 MB / 1.07 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003493/0.4194, allocations: 208.1 kB / 1.07 GB, free: 2.902 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001398/0.4195, allocations: 12 kB / 1.07 GB, free: 2.891 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004223/0.4199, allocations: 31.91 kB / 1.07 GB, free: 2.859 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.4201, allocations: 43.88 kB / 1.07 GB, free: 2.816 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.31e-05/0.4201, allocations: 12 kB / 1.07 GB, free: 2.805 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004647/0.4206, allocations: 387.1 kB / 1.07 GB, free: 2.434 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.4206, allocations: 0 / 1.07 GB, free: 2.434 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0009059/0.4215, allocations: 224 kB / 1.071 GB, free: 2.215 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000183/0.4217, allocations: 115.2 kB / 1.071 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002172/0.4239, allocations: 1.338 MB / 1.072 GB, free: 0.707 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.4239, allocations: 0 / 1.072 GB, free: 0.707 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.5281/0.952, allocations: 0.8808 MB / 1.073 GB, free: 59.99 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001532/0.9536, allocations: 213.6 kB / 1.073 GB, free: 59.99 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.957, allocations: 1.405 MB / 1.075 GB, free: 59.46 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001032/0.9581, allocations: 1.009 MB / 1.076 GB, free: 58.76 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.9583, allocations: 44.94 kB / 1.076 GB, free: 58.76 MB / 0.8419 GB Notification: Performance of SimCode: time 1.773e-06/0.9583, allocations: 0 / 1.076 GB, free: 58.76 MB / 0.8419 GB Notification: Performance of Templates: time 0.04122/0.9995, allocations: 20.65 MB / 1.096 GB, free: 55.47 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches