Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_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_10_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_10_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.0008615/0.0008615, allocations: 91.92 kB / 16.02 MB, free: 80 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.001121/0.001121, allocations: 179.3 kB / 16.92 MB, free: 6.652 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.434/1.434, allocations: 223.3 MB / 241 MB, free: 5.246 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.98/2.98, allocations: 437.8 MB / 0.7128 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003619, allocations: 8 kB / 0.8735 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6605/0.6609, allocations: 153.8 MB / 1.024 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.007526/0.6685, allocations: 6.307 MB / 1.03 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005305/0.6738, allocations: 3.013 MB / 1.033 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008023/0.6747, allocations: 23.81 kB / 1.033 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000568/0.6753, allocations: 134.8 kB / 1.033 GB, free: 6.281 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001498/0.6768, allocations: 477.7 kB / 1.033 GB, free: 5.812 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.678, allocations: 387.3 kB / 1.034 GB, free: 5.434 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.00188/0.6799, allocations: 1.587 MB / 1.035 GB, free: 3.84 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002038/0.6819, allocations: 1.004 MB / 1.036 GB, free: 2.812 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007074/0.6826, allocations: 386.3 kB / 1.037 GB, free: 2.434 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008393/0.6835, allocations: 0.4941 MB / 1.037 GB, free: 1.938 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001476/0.6837, allocations: 36 kB / 1.037 GB, free: 1.902 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008837/0.6845, allocations: 443.1 kB / 1.038 GB, free: 1.469 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0003457/0.6849, allocations: 275.1 kB / 1.038 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0006101/0.6855, allocations: 435.4 kB / 1.038 GB, free: 0.7656 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001068/0.6866, allocations: 0.9136 MB / 1.039 GB, free: 15.85 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.6866, allocations: 0 / 1.039 GB, free: 15.85 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.533e-06/0.6866, allocations: 3.938 kB / 1.039 GB, free: 15.85 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.186e-05/0.6867, allocations: 0 / 1.039 GB, free: 15.85 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001962/0.6886, allocations: 1.001 MB / 1.04 GB, free: 14.8 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.6887, allocations: 11.97 kB / 1.04 GB, free: 14.79 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001695/0.6904, allocations: 239.6 kB / 1.04 GB, free: 14.55 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008946/0.6913, allocations: 0.5376 MB / 1.041 GB, free: 13.97 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.026e-05/0.6914, allocations: 49.67 kB / 1.041 GB, free: 13.92 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.6915, allocations: 64.28 kB / 1.041 GB, free: 13.86 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001619/0.6931, allocations: 1.097 MB / 1.042 GB, free: 12.66 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.744e-05/0.6932, allocations: 8 kB / 1.042 GB, free: 12.65 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.54e-05/0.6933, allocations: 28 kB / 1.042 GB, free: 12.62 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001533/0.6934, allocations: 85.25 kB / 1.042 GB, free: 12.54 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001245/0.6947, allocations: 0.7503 MB / 1.043 GB, free: 11.79 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005485/0.7002, allocations: 5.901 MB / 1.049 GB, free: 5.453 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.7012, allocations: 0.5554 MB / 1.049 GB, free: 4.887 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004651/0.7017, allocations: 329.6 kB / 1.05 GB, free: 4.566 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.7018, allocations: 8.422 kB / 1.05 GB, free: 4.559 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.7018, allocations: 43 kB / 1.05 GB, free: 4.508 MB / 0.795 GB Notification: Performance of pre-optimization done (n=47): time 2.244e-06/0.7018, allocations: 0 / 1.05 GB, free: 4.508 MB / 0.795 GB Notification: Performance of matching and sorting (n=48): time 0.004083/0.7059, allocations: 1.998 MB / 1.052 GB, free: 2.414 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.7059, allocations: 55.84 kB / 1.052 GB, free: 2.348 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006407/0.7066, allocations: 0.5509 MB / 1.052 GB, free: 1.789 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.971e-05/0.7066, allocations: 33.7 kB / 1.052 GB, free: 1.75 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.7069, allocations: 414.9 kB / 1.053 GB, free: 1.336 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001361/0.7071, allocations: 173.6 kB / 1.053 GB, free: 1.164 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.039e-05/0.7071, allocations: 57.69 kB / 1.053 GB, free: 1.102 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.7073, allocations: 378.7 kB / 1.053 GB, free: 0.7227 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004536/0.7078, allocations: 277.8 kB / 1.053 GB, free: 460 kB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005593/0.7083, allocations: 493.5 kB / 1.054 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.7094, allocations: 0.8093 MB / 1.055 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.7094, allocations: 4 kB / 1.055 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001902/0.7113, allocations: 1.082 MB / 1.056 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.761e-05/0.7113, allocations: 11.98 kB / 1.056 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.7114, allocations: 8 kB / 1.056 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008858/0.7122, allocations: 280 kB / 1.056 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004979/0.7128, allocations: 127.8 kB / 1.056 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006375/0.7191, allocations: 6.61 MB / 1.063 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000709/0.7199, allocations: 39.89 kB / 1.063 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.407e-05/0.72, allocations: 32 kB / 1.063 GB, free: 6.215 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 (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.0004154/0.7204, allocations: 249.5 kB / 1.063 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.7206, allocations: 75.27 kB / 1.063 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00168/0.7223, allocations: 0.8923 MB / 1.064 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.7223, allocations: 8 kB / 1.064 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.7223, allocations: 4 kB / 1.064 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.7223, allocations: 3.984 kB / 1.064 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002767/0.7251, allocations: 1.724 MB / 1.066 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.789e-06/0.7251, allocations: 7.938 kB / 1.066 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002802/0.7254, allocations: 59.88 kB / 1.066 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007783/0.7262, allocations: 267.4 kB / 1.066 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.406e-05/0.7262, allocations: 8 kB / 1.066 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006402/0.7326, allocations: 6.587 MB / 1.072 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.7327, allocations: 0 / 1.072 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001885/0.7346, allocations: 0.9874 MB / 1.073 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003958/0.735, allocations: 188.3 kB / 1.073 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000126/0.7351, allocations: 20.11 kB / 1.074 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004282/0.7356, allocations: 27.97 kB / 1.074 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.7357, allocations: 43.89 kB / 1.074 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.741e-05/0.7358, allocations: 19.98 kB / 1.074 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0005172/0.7363, allocations: 383.1 kB / 1.074 GB, free: 9.961 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7363, allocations: 3.938 kB / 1.074 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0009274/0.7372, allocations: 224 kB / 1.074 GB, free: 9.738 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 (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.0001891/0.7374, allocations: 120.4 kB / 1.074 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002152/0.7396, allocations: 1.268 MB / 1.076 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.7396, allocations: 0 / 1.076 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001253/0.7409, allocations: 0.8894 MB / 1.076 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.7421, allocations: 213.5 kB / 1.077 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.7447, allocations: 1.726 MB / 1.078 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006532/0.7454, allocations: 1.009 MB / 1.079 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.7456, allocations: 43.44 kB / 1.079 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of SimCode: time 9.32e-07/0.7456, allocations: 0 / 1.079 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of Templates: time 0.02677/0.7724, allocations: 20.54 MB / 1.099 GB, free: 15.79 MB / 0.8575 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches