Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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,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_10_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_10_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.001659/0.001659, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002198/0.002198, allocations: 189.8 kB / 16.25 MB, free: 6.637 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.546/1.546, allocations: 222.9 MB / 239.9 MB, free: 4.531 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.694/2.694, allocations: 437 MB / 0.71 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 67.89 kB / 0.8687 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8455/0.8469, allocations: 151.6 MB / 1.017 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01307/0.8601, allocations: 10.87 MB / 1.027 GB, free: 7.84 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01395/0.8741, allocations: 8.714 MB / 1.036 GB, free: 15.1 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002074/0.8762, allocations: 51.69 kB / 1.036 GB, free: 15.05 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.004741/0.881, allocations: 1.578 MB / 1.037 GB, free: 13.46 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.005625/0.8866, allocations: 1.393 MB / 1.039 GB, free: 12.07 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002185/0.8888, allocations: 0.6044 MB / 1.039 GB, free: 11.46 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.003866/0.8927, allocations: 2.287 MB / 1.042 GB, free: 9.168 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002668/0.8954, allocations: 1.549 MB / 1.043 GB, free: 7.59 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002455/0.8978, allocations: 1 MB / 1.044 GB, free: 6.586 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002389/0.9002, allocations: 1.047 MB / 1.045 GB, free: 5.535 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0006823/0.9009, allocations: 151.9 kB / 1.045 GB, free: 5.387 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002501/0.9035, allocations: 0.7955 MB / 1.046 GB, free: 4.59 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.001032/0.9045, allocations: 0.5608 MB / 1.047 GB, free: 4.027 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001903/0.9064, allocations: 0.8901 MB / 1.048 GB, free: 3.133 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.004546/0.911, allocations: 2.585 MB / 1.05 GB, free: 0.5391 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 9.748e-06/0.911, allocations: 4 kB / 1.05 GB, free: 0.5352 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.725e-06/0.911, allocations: 0 / 1.05 GB, free: 0.5352 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0001286/0.9112, allocations: 0 / 1.05 GB, free: 0.5352 MB / 0.795 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.0058/0.917, allocations: 2.022 MB / 1.052 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.917, allocations: 15.98 kB / 1.052 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01093/0.928, allocations: 2.046 MB / 1.054 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002587/0.9306, allocations: 1.119 MB / 1.055 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.129e-05/0.9307, allocations: 90.69 kB / 1.055 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004074/0.9311, allocations: 120 kB / 1.055 GB, free: 11.01 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005575/0.9367, allocations: 2.49 MB / 1.058 GB, free: 8.367 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.973e-05/0.9367, allocations: 7.938 kB / 1.058 GB, free: 8.359 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001512/0.9369, allocations: 51.98 kB / 1.058 GB, free: 8.309 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003363/0.9372, allocations: 122.1 kB / 1.058 GB, free: 8.188 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006642/0.9439, allocations: 2.545 MB / 1.06 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0136/0.9575, allocations: 10.07 MB / 1.07 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005842/0.9634, allocations: 1.952 MB / 1.072 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002574/0.966, allocations: 0.9714 MB / 1.073 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 5.371e-05/0.9661, allocations: 8.422 kB / 1.073 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.935e-05/0.9661, allocations: 42.94 kB / 1.073 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=53): time 2.845e-06/0.9661, allocations: 0 / 1.073 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of matching and sorting (n=81): time 0.02991/0.996, allocations: 8.722 MB / 1.082 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.825e-05/0.9961, allocations: 60.06 kB / 1.082 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001496/0.9976, allocations: 1.101 MB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.9977, allocations: 33.7 kB / 1.083 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005151/0.9983, allocations: 0.7379 MB / 1.084 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002786/0.9986, allocations: 283.9 kB / 1.084 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003965/0.999, allocations: 202.5 kB / 1.084 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.9991, allocations: 337.9 kB / 1.084 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002755/1.002, allocations: 1.079 MB / 1.085 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00284/1.005, allocations: 1.306 MB / 1.087 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005488/1.01, allocations: 2.382 MB / 1.089 GB, free: 7.344 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/1.01, allocations: 4 kB / 1.089 GB, free: 7.34 MB / 0.8419 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00849/1.019, allocations: 3.276 MB / 1.092 GB, free: 4.031 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/1.019, allocations: 8 kB / 1.092 GB, free: 4.023 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/1.019, allocations: 4 kB / 1.092 GB, free: 4.02 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002767/1.022, allocations: 0.7996 MB / 1.093 GB, free: 3.195 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00178/1.023, allocations: 415.3 kB / 1.093 GB, free: 2.789 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01615/1.04, allocations: 15.93 MB / 1.109 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002521/1.042, allocations: 295.6 kB / 1.109 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/1.042, allocations: 51.97 kB / 1.109 GB, free: 1.391 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,2,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,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.0007996/1.043, allocations: 398.2 kB / 1.11 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002822/1.043, allocations: 150.2 kB / 1.11 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008672/1.052, allocations: 3.202 MB / 1.113 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.066e-05/1.052, allocations: 11.94 kB / 1.113 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-05/1.052, allocations: 8 kB / 1.113 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/1.052, allocations: 3.984 kB / 1.113 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0117/1.064, allocations: 4.889 MB / 1.118 GB, free: 8.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.338e-06/1.064, allocations: 11.88 kB / 1.118 GB, free: 8.559 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001662/1.066, allocations: 355.7 kB / 1.118 GB, free: 8.211 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002568/1.068, allocations: 0.7013 MB / 1.119 GB, free: 7.484 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001233/1.068, allocations: 35.95 kB / 1.119 GB, free: 7.449 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0164/1.085, allocations: 15.53 MB / 1.134 GB, free: 6.793 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/1.085, allocations: 7.938 kB / 1.134 GB, free: 6.785 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007963/1.093, allocations: 3.042 MB / 1.137 GB, free: 3.66 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008052/1.094, allocations: 379.2 kB / 1.137 GB, free: 3.27 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000205/1.094, allocations: 20 kB / 1.137 GB, free: 3.25 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001715/1.096, allocations: 299.4 kB / 1.138 GB, free: 2.957 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002925/1.096, allocations: 76.5 kB / 1.138 GB, free: 2.883 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.27e-05/1.096, allocations: 35.95 kB / 1.138 GB, free: 2.848 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001093/1.097, allocations: 0.7366 MB / 1.138 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.41e-07/1.097, allocations: 3.938 kB / 1.138 GB, free: 2.105 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001579/1.099, allocations: 432 kB / 1.139 GB, free: 1.684 MB / 0.8887 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 (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003069/1.099, allocations: 139 kB / 1.139 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.008734/1.108, allocations: 3.765 MB / 1.143 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/1.108, allocations: 0 / 1.143 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.004851/1.113, allocations: 2.368 MB / 1.145 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002416/1.115, allocations: 0.5243 MB / 1.146 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00811/1.123, allocations: 4.053 MB / 1.149 GB, free: 6.586 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001159/1.124, allocations: 1.388 MB / 1.151 GB, free: 5.164 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001693/1.126, allocations: 375.8 kB / 1.151 GB, free: 4.793 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003485/1.126, allocations: 103.4 kB / 1.151 GB, free: 4.691 MB / 0.9044 GB Notification: Performance of SimCode: time 7.72e-07/1.126, allocations: 0 / 1.151 GB, free: 4.691 MB / 0.9044 GB Notification: Performance of Templates: time 0.05279/1.179, allocations: 30.45 MB / 1.181 GB, free: 6.648 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches