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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001266/0.001266, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001698/0.001698, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.521/1.521, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.526/2.526, allocations: 390.2 MB / 0.6642 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 67.88 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8405/0.8418, allocations: 140.3 MB / 0.9489 GB, free: 9.301 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01169/0.8536, allocations: 10.87 MB / 0.9595 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01534/0.869, allocations: 8.796 MB / 0.9681 GB, free: 9.984 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002215/0.8713, allocations: 50.16 kB / 0.9682 GB, free: 9.965 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.004538/0.8758, allocations: 1.559 MB / 0.9697 GB, free: 8.777 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.00638/0.8822, allocations: 1.397 MB / 0.9711 GB, free: 7.699 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002392/0.8846, allocations: 0.6127 MB / 0.9717 GB, free: 7.215 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.004853/0.8895, allocations: 2.895 MB / 0.9745 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002636/0.8921, allocations: 1.327 MB / 0.9758 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0022/0.8943, allocations: 0.8937 MB / 0.9767 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001757/0.8961, allocations: 1.019 MB / 0.9777 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0002036/0.8963, allocations: 86.75 kB / 0.9777 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002333/0.8987, allocations: 0.9059 MB / 0.9786 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0006153/0.8993, allocations: 0.5251 MB / 0.9791 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0009742/0.9003, allocations: 0.8307 MB / 0.9799 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002766/0.9031, allocations: 2.546 MB / 0.9824 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.9031, allocations: 0 / 0.9824 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.503e-06/0.9031, allocations: 0 / 0.9824 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.508e-05/0.9031, allocations: 0 / 0.9824 GB, free: 15.7 MB / 0.7481 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.00322/0.9063, allocations: 2.018 MB / 0.9844 GB, free: 13.62 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.9064, allocations: 8.031 kB / 0.9844 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01104/0.9174, allocations: 2.058 MB / 0.9864 GB, free: 11.55 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002537/0.92, allocations: 1.115 MB / 0.9875 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.643e-05/0.9201, allocations: 90.69 kB / 0.9876 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002363/0.9203, allocations: 124 kB / 0.9877 GB, free: 10.17 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005516/0.9259, allocations: 2.49 MB / 0.9901 GB, free: 7.527 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.221e-05/0.9259, allocations: 4 kB / 0.9901 GB, free: 7.523 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001579/0.9261, allocations: 55.98 kB / 0.9902 GB, free: 7.469 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003653/0.9265, allocations: 134 kB / 0.9903 GB, free: 7.336 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006905/0.9334, allocations: 2.537 MB / 0.9928 GB, free: 4.789 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01419/0.9476, allocations: 10.07 MB / 1.003 GB, free: 10.06 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00581/0.9535, allocations: 1.942 MB / 1.005 GB, free: 8.09 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002621/0.9561, allocations: 0.9738 MB / 1.005 GB, free: 7.113 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 5.094e-05/0.9562, allocations: 8.438 kB / 1.005 GB, free: 7.105 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.573e-05/0.9562, allocations: 38.94 kB / 1.006 GB, free: 7.059 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=53): time 3.938e-06/0.9563, allocations: 4 kB / 1.006 GB, free: 7.055 MB / 0.7637 GB Notification: Performance of matching and sorting (n=81): time 0.03116/0.9874, allocations: 8.722 MB / 1.014 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.9875, allocations: 60.06 kB / 1.014 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001807/0.9893, allocations: 1.101 MB / 1.015 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.000211/0.9896, allocations: 37.7 kB / 1.015 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006851/0.9903, allocations: 0.7379 MB / 1.016 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004296/0.9907, allocations: 283.9 kB / 1.016 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004505/0.9912, allocations: 202.4 kB / 1.016 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002189/0.9914, allocations: 341.9 kB / 1.017 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003009/0.9944, allocations: 1.075 MB / 1.018 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003048/0.9975, allocations: 1.297 MB / 1.019 GB, free: 9 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005816/1.003, allocations: 2.378 MB / 1.021 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/1.003, allocations: 4 kB / 1.021 GB, free: 6.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00856/1.012, allocations: 3.28 MB / 1.025 GB, free: 3.203 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.23e-05/1.012, allocations: 8 kB / 1.025 GB, free: 3.195 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/1.012, allocations: 8 kB / 1.025 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002895/1.015, allocations: 0.7876 MB / 1.025 GB, free: 2.375 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001902/1.017, allocations: 419.2 kB / 1.026 GB, free: 1.965 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01492/1.032, allocations: 14.7 MB / 1.04 GB, free: 2.195 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002345/1.034, allocations: 291.5 kB / 1.04 GB, free: 1.91 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001502/1.034, allocations: 51.97 kB / 1.04 GB, free: 1.859 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 (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.0008329/1.035, allocations: 397.5 kB / 1.041 GB, free: 1.461 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000291/1.035, allocations: 142.3 kB / 1.041 GB, free: 1.32 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00821/1.044, allocations: 3.21 MB / 1.044 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/1.044, allocations: 8 kB / 1.044 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/1.044, allocations: 12 kB / 1.044 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/1.044, allocations: 3.984 kB / 1.044 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01101/1.055, allocations: 4.912 MB / 1.049 GB, free: 9.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/1.055, allocations: 4 kB / 1.049 GB, free: 9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/1.056, allocations: 351.4 kB / 1.049 GB, free: 8.656 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002374/1.059, allocations: 0.6978 MB / 1.05 GB, free: 7.934 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/1.059, allocations: 31.97 kB / 1.05 GB, free: 7.902 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0142/1.073, allocations: 14.32 MB / 1.064 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/1.073, allocations: 0 / 1.064 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007883/1.081, allocations: 3.042 MB / 1.067 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009171/1.082, allocations: 383.2 kB / 1.067 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000228/1.082, allocations: 19.94 kB / 1.067 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001733/1.084, allocations: 295.5 kB / 1.068 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003364/1.084, allocations: 76.48 kB / 1.068 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.788e-05/1.084, allocations: 35.97 kB / 1.068 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001032/1.085, allocations: 0.7483 MB / 1.068 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/1.085, allocations: 0 / 1.068 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001693/1.087, allocations: 435.9 kB / 1.069 GB, free: 3.402 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 (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.0002918/1.087, allocations: 131.1 kB / 1.069 GB, free: 3.262 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.008144/1.096, allocations: 3.613 MB / 1.073 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/1.096, allocations: 0 / 1.073 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.004808/1.1, allocations: 2.375 MB / 1.075 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002532/1.103, allocations: 494.6 kB / 1.075 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008041/1.111, allocations: 4.044 MB / 1.079 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/1.112, allocations: 1.392 MB / 1.081 GB, free: 7.066 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001795/1.114, allocations: 375.9 kB / 1.081 GB, free: 6.695 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003703/1.114, allocations: 99.38 kB / 1.081 GB, free: 6.598 MB / 0.8419 GB Notification: Performance of SimCode: time 7.72e-07/1.114, allocations: 4 kB / 1.081 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of Templates: time 0.05105/1.165, allocations: 29.32 MB / 1.11 GB, free: 9.66 MB / 0.8731 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches