Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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_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_9_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_9_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.008381/0.008381, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.002096/0.002096, allocations: 195.8 kB / 16.79 MB, free: 5.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.55/1.55, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.421/2.421, allocations: 390.2 MB / 0.6649 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 67.89 kB / 0.8125 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7481/0.7496, allocations: 140.3 MB / 0.9496 GB, free: 9.27 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.008041/0.7577, allocations: 6.746 MB / 0.9562 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004551/0.7623, allocations: 3.052 MB / 0.9591 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006358/0.763, allocations: 25.75 kB / 0.9592 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.002186/0.7652, allocations: 0.8834 MB / 0.96 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00123/0.7664, allocations: 476.5 kB / 0.9605 GB, free: 0.6133 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.7675, allocations: 385.6 kB / 0.9609 GB, free: 328 kB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.002063/0.7695, allocations: 1.586 MB / 0.9624 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001187/0.7707, allocations: 0.6517 MB / 0.963 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008894/0.7716, allocations: 421.8 kB / 0.9634 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.7727, allocations: 0.5216 MB / 0.964 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.000237/0.773, allocations: 46.75 kB / 0.964 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001276/0.7743, allocations: 453.4 kB / 0.9644 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0005324/0.7748, allocations: 287.5 kB / 0.9647 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.001081/0.7759, allocations: 428.7 kB / 0.9651 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001651/0.7776, allocations: 0.9267 MB / 0.966 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.7776, allocations: 0 / 0.966 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of FrontEnd: time 9.72e-07/0.7776, allocations: 1.125 kB / 0.966 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.434e-05/0.7777, allocations: 4 kB / 0.966 GB, free: 13.24 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.003399/0.7811, allocations: 1.161 MB / 0.9672 GB, free: 12.35 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.7811, allocations: 13.69 kB / 0.9672 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001926/0.7831, allocations: 235.7 kB / 0.9674 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/0.7844, allocations: 0.5484 MB / 0.9679 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.51e-05/0.7844, allocations: 47.3 kB / 0.968 GB, free: 11.76 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.7846, allocations: 70.38 kB / 0.968 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001898/0.7865, allocations: 1.091 MB / 0.9691 GB, free: 10.94 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.079e-05/0.7866, allocations: 6.844 kB / 0.9691 GB, free: 10.94 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.442e-05/0.7867, allocations: 26 kB / 0.9691 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001795/0.7868, allocations: 84.56 kB / 0.9692 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.7883, allocations: 0.7495 MB / 0.97 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006292/0.7946, allocations: 5.901 MB / 0.9757 GB, free: 5.035 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.7957, allocations: 0.5569 MB / 0.9763 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004821/0.7962, allocations: 326 kB / 0.9766 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.173e-05/0.7963, allocations: 5.531 kB / 0.9766 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.7963, allocations: 41.53 kB / 0.9766 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 2.615e-06/0.7963, allocations: 0 / 0.9766 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.00433/0.8007, allocations: 1.978 MB / 0.9785 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.8007, allocations: 57.09 kB / 0.9786 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008013/0.8015, allocations: 0.5579 MB / 0.9791 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.908e-05/0.8016, allocations: 36.33 kB / 0.9792 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002738/0.8019, allocations: 416 kB / 0.9796 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.802, allocations: 168 kB / 0.9797 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002189/0.8022, allocations: 132.6 kB / 0.9799 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.8024, allocations: 377.5 kB / 0.9802 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004136/0.8028, allocations: 270.8 kB / 0.9805 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005141/0.8033, allocations: 0.4892 MB / 0.981 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009518/0.8043, allocations: 0.8132 MB / 0.9818 GB, free: 136 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.8043, allocations: 3.938 kB / 0.9818 GB, free: 132 kB / 0.7325 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001843/0.8062, allocations: 1.083 MB / 0.9828 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.8062, allocations: 9.719 kB / 0.9828 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.8062, allocations: 8 kB / 0.9828 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008897/0.8071, allocations: 279.9 kB / 0.9831 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004949/0.8076, allocations: 131.8 kB / 0.9832 GB, free: 14.6 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006159/0.8138, allocations: 6.591 MB / 0.9897 GB, free: 7.473 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007523/0.8146, allocations: 44.03 kB / 0.9897 GB, free: 7.43 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.554e-05/0.8147, allocations: 31.98 kB / 0.9897 GB, free: 7.398 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 (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.0004264/0.8151, allocations: 255 kB / 0.99 GB, free: 7.141 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.8152, allocations: 67.25 kB / 0.99 GB, free: 7.074 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001568/0.8168, allocations: 0.8962 MB / 0.9909 GB, free: 6.16 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.8168, allocations: 4 kB / 0.9909 GB, free: 6.156 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.8168, allocations: 4 kB / 0.9909 GB, free: 6.152 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.8168, allocations: 0 / 0.9909 GB, free: 6.152 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00266/0.8195, allocations: 1.724 MB / 0.9926 GB, free: 4.34 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.8195, allocations: 8.125 kB / 0.9926 GB, free: 4.332 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002711/0.8198, allocations: 63.89 kB / 0.9927 GB, free: 4.27 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007901/0.8206, allocations: 263.2 kB / 0.9929 GB, free: 4 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.87e-05/0.8206, allocations: 12 kB / 0.9929 GB, free: 3.988 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006078/0.8267, allocations: 6.587 MB / 0.9994 GB, free: 12.86 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.8268, allocations: 0 / 0.9994 GB, free: 12.86 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001746/0.8285, allocations: 0.9834 MB / 1 GB, free: 11.83 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003553/0.8289, allocations: 192.4 kB / 1.001 GB, free: 11.62 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.997e-05/0.829, allocations: 19.94 kB / 1.001 GB, free: 11.61 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003609/0.8294, allocations: 31.97 kB / 1.001 GB, free: 11.57 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.8295, allocations: 35.94 kB / 1.001 GB, free: 11.54 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.223e-05/0.8295, allocations: 16 kB / 1.001 GB, free: 11.52 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.000448/0.83, allocations: 387.1 kB / 1.001 GB, free: 11.15 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.4e-07/0.83, allocations: 0 / 1.001 GB, free: 11.15 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008939/0.8309, allocations: 220 kB / 1.001 GB, free: 10.93 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 (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.0001623/0.8311, allocations: 119.1 kB / 1.001 GB, free: 10.81 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00195/0.833, allocations: 1.268 MB / 1.003 GB, free: 9.492 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.833, allocations: 0 / 1.003 GB, free: 9.492 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001206/0.8342, allocations: 0.9091 MB / 1.003 GB, free: 8.531 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/0.8353, allocations: 199.5 kB / 1.004 GB, free: 8.34 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/0.8378, allocations: 1.695 MB / 1.005 GB, free: 6.59 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005906/0.8384, allocations: 1.009 MB / 1.006 GB, free: 5.551 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.8386, allocations: 47.38 kB / 1.006 GB, free: 5.508 MB / 0.7637 GB Notification: Performance of SimCode: time 1.022e-06/0.8386, allocations: 0 / 1.006 GB, free: 5.508 MB / 0.7637 GB Notification: Performance of Templates: time 0.02324/0.8618, allocations: 20.64 MB / 1.026 GB, free: 0.918 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches