Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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_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_10_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_10_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.0015/0.0015, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001837/0.001837, allocations: 197 kB / 16.79 MB, free: 6.809 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.382/1.382, allocations: 222.9 MB / 240.5 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.603/2.603, allocations: 437 MB / 0.7106 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 59.91 kB / 0.8692 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6877/0.6893, allocations: 151.6 MB / 1.017 GB, free: 2.82 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.008423/0.6977, allocations: 6.096 MB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005436/0.7032, allocations: 3.172 MB / 1.026 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007569/0.704, allocations: 27.81 kB / 1.026 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002537/0.7067, allocations: 0.8754 MB / 1.027 GB, free: 8.617 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001455/0.7081, allocations: 442 kB / 1.028 GB, free: 8.184 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001446/0.7096, allocations: 435.1 kB / 1.028 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.002022/0.7116, allocations: 1.463 MB / 1.029 GB, free: 6.289 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001285/0.7129, allocations: 0.6359 MB / 1.03 GB, free: 5.652 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008511/0.7138, allocations: 390.3 kB / 1.03 GB, free: 5.27 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009196/0.7147, allocations: 478.2 kB / 1.031 GB, free: 4.801 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001647/0.7149, allocations: 44 kB / 1.031 GB, free: 4.758 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001359/0.7163, allocations: 0.5731 MB / 1.032 GB, free: 4.184 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0003939/0.7167, allocations: 279.2 kB / 1.032 GB, free: 3.91 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0006535/0.7173, allocations: 381.9 kB / 1.032 GB, free: 3.535 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001301/0.7187, allocations: 0.9041 MB / 1.033 GB, free: 2.629 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.7187, allocations: 0 / 1.033 GB, free: 2.629 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.613e-06/0.7187, allocations: 0 / 1.033 GB, free: 2.629 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.895e-05/0.7187, allocations: 0 / 1.033 GB, free: 2.629 MB / 0.7794 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.002161/0.7209, allocations: 1.056 MB / 1.034 GB, free: 1.523 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.721, allocations: 11.98 kB / 1.034 GB, free: 1.512 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001651/0.7226, allocations: 223.7 kB / 1.034 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009274/0.7236, allocations: 0.522 MB / 1.035 GB, free: 0.7266 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.114e-05/0.7236, allocations: 53.67 kB / 1.035 GB, free: 0.6758 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.7237, allocations: 60.28 kB / 1.035 GB, free: 0.6172 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/0.7253, allocations: 1.041 MB / 1.036 GB, free: 15.47 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.081e-05/0.7254, allocations: 4 kB / 1.036 GB, free: 15.47 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-05/0.7254, allocations: 24 kB / 1.036 GB, free: 15.45 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.709e-05/0.7255, allocations: 69.27 kB / 1.036 GB, free: 15.38 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.7267, allocations: 0.6956 MB / 1.037 GB, free: 14.68 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005235/0.7319, allocations: 5.756 MB / 1.042 GB, free: 8.492 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009583/0.7329, allocations: 0.5981 MB / 1.043 GB, free: 7.848 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008164/0.7338, allocations: 412.6 kB / 1.043 GB, free: 7.441 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.752e-05/0.7338, allocations: 4 kB / 1.043 GB, free: 7.438 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.7339, allocations: 42.56 kB / 1.043 GB, free: 7.387 MB / 0.795 GB Notification: Performance of pre-optimization done (n=41): time 2.996e-06/0.7339, allocations: 0 / 1.043 GB, free: 7.387 MB / 0.795 GB Notification: Performance of matching and sorting (n=42): time 0.004542/0.7384, allocations: 2.061 MB / 1.045 GB, free: 5.23 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/0.7385, allocations: 55.41 kB / 1.045 GB, free: 5.164 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005539/0.7391, allocations: 454.8 kB / 1.046 GB, free: 4.707 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.7391, allocations: 29.7 kB / 1.046 GB, free: 4.672 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003298/0.7395, allocations: 395 kB / 1.046 GB, free: 4.281 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.7396, allocations: 149.9 kB / 1.046 GB, free: 4.133 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002418/0.7399, allocations: 118.2 kB / 1.047 GB, free: 4.012 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001842/0.7401, allocations: 362.8 kB / 1.047 GB, free: 3.648 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003927/0.7405, allocations: 245.2 kB / 1.047 GB, free: 3.41 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004957/0.741, allocations: 457.5 kB / 1.048 GB, free: 2.867 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009577/0.742, allocations: 0.7634 MB / 1.048 GB, free: 2.008 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.742, allocations: 0 / 1.048 GB, free: 2.008 MB / 0.795 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001999/0.744, allocations: 1.066 MB / 1.049 GB, free: 0.9219 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.863e-05/0.744, allocations: 11.98 kB / 1.049 GB, free: 0.9102 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.7441, allocations: 8 kB / 1.049 GB, free: 0.9023 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001297/0.7454, allocations: 327.7 kB / 1.05 GB, free: 0.5703 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005238/0.7459, allocations: 91.83 kB / 1.05 GB, free: 492 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007534/0.7535, allocations: 6.95 MB / 1.057 GB, free: 8.992 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005185/0.754, allocations: 32.3 kB / 1.057 GB, free: 8.961 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/0.7541, allocations: 27.94 kB / 1.057 GB, free: 8.934 MB / 0.8106 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.0004394/0.7546, allocations: 255 kB / 1.057 GB, free: 8.676 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/0.7547, allocations: 55.34 kB / 1.057 GB, free: 8.621 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001933/0.7567, allocations: 0.9197 MB / 1.058 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.7567, allocations: 8 kB / 1.058 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.7567, allocations: 4 kB / 1.058 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.7567, allocations: 0 / 1.058 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003138/0.7599, allocations: 1.708 MB / 1.059 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/0.7599, allocations: 4 kB / 1.059 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.7601, allocations: 39.91 kB / 1.059 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001095/0.7612, allocations: 319.4 kB / 1.06 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.845e-05/0.7612, allocations: 12 kB / 1.06 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007603/0.7688, allocations: 6.935 MB / 1.067 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.134e-06/0.7689, allocations: 7.938 kB / 1.067 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00187/0.7708, allocations: 1.011 MB / 1.068 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003611/0.7711, allocations: 172.4 kB / 1.068 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.7713, allocations: 16 kB / 1.068 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003047/0.7716, allocations: 19.92 kB / 1.068 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/0.7717, allocations: 43.88 kB / 1.068 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-05/0.7718, allocations: 15.94 kB / 1.068 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003984/0.7722, allocations: 306.9 kB / 1.068 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7722, allocations: 0 / 1.068 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0009/0.7731, allocations: 192 kB / 1.068 GB, free: 12.19 MB / 0.8262 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.0001758/0.7733, allocations: 123.2 kB / 1.068 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002128/0.7754, allocations: 1.207 MB / 1.07 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.7754, allocations: 0 / 1.07 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001276/0.7767, allocations: 0.8657 MB / 1.07 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.7778, allocations: 182.7 kB / 1.071 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002752/0.7806, allocations: 1.582 MB / 1.072 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006643/0.7812, allocations: 0.9921 MB / 1.073 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.7814, allocations: 35.44 kB / 1.073 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of SimCode: time 6.82e-07/0.7814, allocations: 0 / 1.073 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of Templates: time 0.02579/0.8072, allocations: 18.45 MB / 1.091 GB, free: 4.594 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches