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.009927/0.009927, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.001679/0.001679, allocations: 196.6 kB / 16.67 MB, free: 5.969 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.553/1.553, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.969/2.969, allocations: 437 MB / 0.7105 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 63.89 kB / 1.019 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.346, allocations: 151.6 MB / 1.167 GB, free: 6.785 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.009663/0.3557, allocations: 6.73 MB / 1.173 GB, free: 20 kB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.005918/0.3616, allocations: 3.04 MB / 1.176 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008357/0.3625, allocations: 23.88 kB / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.002884/0.3654, allocations: 0.953 MB / 1.177 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.00178/0.3672, allocations: 0.5285 MB / 1.178 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001422/0.3686, allocations: 415 kB / 1.178 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.002041/0.3707, allocations: 1.228 MB / 1.179 GB, free: 9.82 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001282/0.372, allocations: 0.6699 MB / 1.18 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009899/0.373, allocations: 474.4 kB / 1.18 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001113/0.3741, allocations: 0.5175 MB / 1.181 GB, free: 8.16 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002275/0.3744, allocations: 67.94 kB / 1.181 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001013/0.3754, allocations: 379.3 kB / 1.181 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0004312/0.3758, allocations: 311.2 kB / 1.182 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0007283/0.3766, allocations: 457.7 kB / 1.182 GB, free: 6.969 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001751/0.3783, allocations: 1.218 MB / 1.183 GB, free: 5.746 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.3784, allocations: 0 / 1.183 GB, free: 5.746 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3784, allocations: 0 / 1.183 GB, free: 5.746 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.635e-05/0.3784, allocations: 0 / 1.183 GB, free: 5.746 MB / 0.9356 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.002146/0.3805, allocations: 1.179 MB / 1.184 GB, free: 4.512 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.3806, allocations: 11.98 kB / 1.184 GB, free: 4.5 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001546/0.3822, allocations: 244.1 kB / 1.185 GB, free: 4.262 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.3832, allocations: 0.5964 MB / 1.185 GB, free: 3.625 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.948e-05/0.3832, allocations: 49.67 kB / 1.185 GB, free: 3.578 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.3833, allocations: 64.36 kB / 1.185 GB, free: 3.516 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.3848, allocations: 1.089 MB / 1.186 GB, free: 2.316 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.131e-05/0.3849, allocations: 15.83 kB / 1.186 GB, free: 2.301 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.764e-05/0.385, allocations: 31.98 kB / 1.186 GB, free: 2.27 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001532/0.3851, allocations: 89.23 kB / 1.186 GB, free: 2.18 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.3863, allocations: 0.7543 MB / 1.187 GB, free: 1.426 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005391/0.3917, allocations: 5.863 MB / 1.193 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.3928, allocations: 0.5633 MB / 1.193 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004429/0.3932, allocations: 326 kB / 1.194 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.65e-05/0.3933, allocations: 4.438 kB / 1.194 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.765e-05/0.3933, allocations: 42.94 kB / 1.194 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=47): time 2.394e-06/0.3933, allocations: 4 kB / 1.194 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of matching and sorting (n=48): time 0.003943/0.3973, allocations: 1.988 MB / 1.196 GB, free: 8.105 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/0.3973, allocations: 55.84 kB / 1.196 GB, free: 8.039 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006774/0.398, allocations: 0.5586 MB / 1.196 GB, free: 7.473 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.86e-05/0.3981, allocations: 37.7 kB / 1.196 GB, free: 7.43 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.000301/0.3984, allocations: 424.1 kB / 1.197 GB, free: 7.008 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.3985, allocations: 178.5 kB / 1.197 GB, free: 6.832 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000189/0.3987, allocations: 130.6 kB / 1.197 GB, free: 6.699 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001805/0.3989, allocations: 374.7 kB / 1.197 GB, free: 6.324 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004025/0.3993, allocations: 277.8 kB / 1.198 GB, free: 6.051 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005659/0.3999, allocations: 0.4892 MB / 1.198 GB, free: 5.469 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.4009, allocations: 0.8054 MB / 1.199 GB, free: 4.566 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.401, allocations: 4 kB / 1.199 GB, free: 4.562 MB / 0.9512 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002097/0.4031, allocations: 1.087 MB / 1.2 GB, free: 3.457 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.886e-05/0.4031, allocations: 8 kB / 1.2 GB, free: 3.449 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/0.4031, allocations: 8 kB / 1.2 GB, free: 3.441 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.4042, allocations: 283.2 kB / 1.2 GB, free: 3.152 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005327/0.4047, allocations: 123.8 kB / 1.2 GB, free: 3.031 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007389/0.4121, allocations: 7.146 MB / 1.207 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008712/0.413, allocations: 39.97 kB / 1.207 GB, free: 11.28 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.522e-05/0.4131, allocations: 24 kB / 1.208 GB, free: 11.26 MB / 0.9669 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.000445/0.4135, allocations: 261.4 kB / 1.208 GB, free: 10.99 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.4137, allocations: 79.62 kB / 1.208 GB, free: 10.91 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001539/0.4152, allocations: 0.8807 MB / 1.209 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.4152, allocations: 4 kB / 1.209 GB, free: 10.01 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.4152, allocations: 4 kB / 1.209 GB, free: 10.01 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.4153, allocations: 7.922 kB / 1.209 GB, free: 10 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002909/0.4182, allocations: 1.721 MB / 1.21 GB, free: 8.191 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.4182, allocations: 4 kB / 1.21 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002749/0.4185, allocations: 63.83 kB / 1.21 GB, free: 8.125 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007742/0.4193, allocations: 267.3 kB / 1.211 GB, free: 7.852 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.749e-05/0.4193, allocations: 8 kB / 1.211 GB, free: 7.844 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007156/0.4265, allocations: 7.136 MB / 1.218 GB, free: 152 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.4265, allocations: 3.938 kB / 1.218 GB, free: 148 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001886/0.4284, allocations: 0.9801 MB / 1.219 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004119/0.4288, allocations: 192.6 kB / 1.219 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.544e-05/0.4289, allocations: 19.98 kB / 1.219 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003799/0.4293, allocations: 31.91 kB / 1.219 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.4294, allocations: 39.89 kB / 1.219 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.423e-05/0.4295, allocations: 16 kB / 1.219 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0005022/0.43, allocations: 387.1 kB / 1.219 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.51e-07/0.43, allocations: 0 / 1.219 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0008895/0.4309, allocations: 220 kB / 1.22 GB, free: 14.21 MB / 0.9825 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.0002001/0.4311, allocations: 119.2 kB / 1.22 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002155/0.4332, allocations: 1.287 MB / 1.221 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.4333, allocations: 0 / 1.221 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001335/0.4346, allocations: 0.8893 MB / 1.222 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/0.4357, allocations: 217.2 kB / 1.222 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.4381, allocations: 1.338 MB / 1.223 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006525/0.4387, allocations: 1.012 MB / 1.224 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0004076/0.4391, allocations: 125.9 kB / 1.224 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.4393, allocations: 39.44 kB / 1.224 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of SimCode: time 1.983e-06/0.4393, allocations: 0 / 1.224 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of Templates: time 0.02147/0.4608, allocations: 11.31 MB / 1.235 GB, free: 13.83 MB / 0.9981 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/jenkins/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