Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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_L,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_L") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,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_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00162/0.00162, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002187/0.002188, allocations: 191 kB / 16.25 MB, free: 6.629 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.651/1.651, allocations: 222.9 MB / 239.9 MB, free: 4.508 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.515/2.515, allocations: 390.2 MB / 0.6643 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 67.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.868/0.8696, allocations: 140.4 MB / 0.9491 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.008999/0.8786, allocations: 6.101 MB / 0.9551 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.006187/0.8848, allocations: 3.122 MB / 0.9581 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001345/0.8862, allocations: 26.12 kB / 0.9581 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.003695/0.8899, allocations: 0.8803 MB / 0.959 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00269/0.8926, allocations: 435.5 kB / 0.9594 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002023/0.8947, allocations: 440.2 kB / 0.9598 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.002904/0.8976, allocations: 1.096 MB / 0.9609 GB, free: 44 kB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002119/0.8998, allocations: 0.7108 MB / 0.9616 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001531/0.9013, allocations: 441.3 kB / 0.962 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001417/0.9027, allocations: 488.9 kB / 0.9625 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0003518/0.9031, allocations: 57.5 kB / 0.9625 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001953/0.9051, allocations: 491.6 kB / 0.963 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0007433/0.9058, allocations: 285.4 kB / 0.9633 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.00135/0.9072, allocations: 407.4 kB / 0.9637 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.003577/0.9108, allocations: 1.196 MB / 0.9648 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.9108, allocations: 1.281 kB / 0.9648 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.505e-06/0.9109, allocations: 0 / 0.9648 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.479e-05/0.9109, allocations: 0 / 0.9648 GB, free: 13.62 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.004537/0.9155, allocations: 1.06 MB / 0.9659 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 7.879e-05/0.9156, allocations: 9.719 kB / 0.9659 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003479/0.9191, allocations: 216.7 kB / 0.9661 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001737/0.9208, allocations: 0.5318 MB / 0.9666 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.613e-05/0.9209, allocations: 51.27 kB / 0.9667 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001932/0.9211, allocations: 60.36 kB / 0.9667 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003023/0.9242, allocations: 1.03 MB / 0.9677 GB, free: 11.42 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.525e-05/0.9243, allocations: 16.02 kB / 0.9677 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/0.9244, allocations: 33.39 kB / 0.9678 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001654/0.9246, allocations: 61.97 kB / 0.9678 GB, free: 11.37 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002069/0.9267, allocations: 0.6952 MB / 0.9685 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009543/0.9362, allocations: 5.746 MB / 0.9741 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.9378, allocations: 0.601 MB / 0.9747 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0014/0.9393, allocations: 433.1 kB / 0.9751 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 5.273e-05/0.9393, allocations: 3.5 kB / 0.9751 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.9394, allocations: 40.94 kB / 0.9752 GB, free: 4.938 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=41): time 4.528e-06/0.9394, allocations: 0 / 0.9752 GB, free: 4.938 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.008062/0.9475, allocations: 2.053 MB / 0.9772 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.71e-05/0.9476, allocations: 63.23 kB / 0.9772 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.9486, allocations: 457.4 kB / 0.9777 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.551e-05/0.9487, allocations: 31.89 kB / 0.9777 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000419/0.9491, allocations: 388.9 kB / 0.9781 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002372/0.9494, allocations: 141.5 kB / 0.9782 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003289/0.9497, allocations: 117 kB / 0.9783 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002909/0.95, allocations: 362.9 kB / 0.9787 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006499/0.9507, allocations: 248.3 kB / 0.9789 GB, free: 2.191 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000982/0.9517, allocations: 456 kB / 0.9793 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001676/0.9534, allocations: 0.7491 MB / 0.9801 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.9534, allocations: 1.375 kB / 0.9801 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.003568/0.957, allocations: 1.07 MB / 0.9811 GB, free: 248 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.611e-05/0.9571, allocations: 8 kB / 0.9811 GB, free: 240 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.135e-05/0.9571, allocations: 8 kB / 0.9811 GB, free: 232 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001913/0.959, allocations: 335.6 kB / 0.9814 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006539/0.9597, allocations: 95.81 kB / 0.9815 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01289/0.9726, allocations: 7.525 MB / 0.9889 GB, free: 7.707 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.9737, allocations: 36.02 kB / 0.9889 GB, free: 7.672 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.798e-05/0.9738, allocations: 24 kB / 0.9889 GB, free: 7.648 MB / 0.7481 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 (53): * Single equations (assignments): 49 * 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 {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006651/0.9745, allocations: 245.6 kB / 0.9892 GB, free: 7.398 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001699/0.9746, allocations: 59.28 kB / 0.9892 GB, free: 7.34 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003085/0.9777, allocations: 0.9154 MB / 0.9901 GB, free: 6.402 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.9778, allocations: 12 kB / 0.9901 GB, free: 6.391 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.9778, allocations: 4 kB / 0.9901 GB, free: 6.387 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.9778, allocations: 0 / 0.9901 GB, free: 6.387 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004741/0.9826, allocations: 1.708 MB / 0.9918 GB, free: 4.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.726e-06/0.9826, allocations: 4 kB / 0.9918 GB, free: 4.586 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003436/0.983, allocations: 35.97 kB / 0.9918 GB, free: 4.551 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001849/0.9848, allocations: 331.3 kB / 0.9922 GB, free: 4.215 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-05/0.9849, allocations: 8 kB / 0.9922 GB, free: 4.207 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01185/0.9968, allocations: 7.505 MB / 0.9995 GB, free: 12.14 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/0.9968, allocations: 7.938 kB / 0.9995 GB, free: 12.13 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003027/0.9999, allocations: 1.014 MB / 1 GB, free: 11.07 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004857/1, allocations: 176.3 kB / 1.001 GB, free: 10.88 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/1.001, allocations: 8 kB / 1.001 GB, free: 10.87 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005126/1.001, allocations: 31.97 kB / 1.001 GB, free: 10.84 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/1.001, allocations: 36.19 kB / 1.001 GB, free: 10.8 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/1.001, allocations: 12 kB / 1.001 GB, free: 10.79 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0005681/1.002, allocations: 310.9 kB / 1.001 GB, free: 10.49 MB / 0.7637 GB Notification: Performance of sort global known variables: time 3.41e-07/1.002, allocations: 0 / 1.001 GB, free: 10.49 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001433/1.003, allocations: 195.9 kB / 1.001 GB, free: 10.3 MB / 0.7637 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 (23): * Single equations (assignments): 19 * 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 {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,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.0002163/1.004, allocations: 111.2 kB / 1.001 GB, free: 10.18 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003255/1.007, allocations: 1.238 MB / 1.003 GB, free: 8.895 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/1.007, allocations: 4.125 kB / 1.003 GB, free: 8.891 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001978/1.009, allocations: 0.8695 MB / 1.003 GB, free: 7.969 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001655/1.011, allocations: 193.7 kB / 1.004 GB, free: 7.785 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/1.014, allocations: 1.528 MB / 1.005 GB, free: 6.215 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/1.015, allocations: 0.9843 MB / 1.006 GB, free: 5.199 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005379/1.016, allocations: 101.2 kB / 1.006 GB, free: 5.098 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/1.016, allocations: 39.44 kB / 1.006 GB, free: 5.059 MB / 0.7637 GB Notification: Performance of SimCode: time 8.32e-07/1.016, allocations: 4 kB / 1.006 GB, free: 5.055 MB / 0.7637 GB Notification: Performance of Templates: time 0.03124/1.047, allocations: 10.03 MB / 1.016 GB, free: 11.13 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches