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.001018/0.001019, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001197/0.001198, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 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: 223.3 MB / 240 MB, free: 5.41 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.602/2.602, allocations: 390.9 MB / 0.666 GB, free: 2.414 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004036/0.0004038, allocations: 8 kB / 0.8154 GB, free: 13.55 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9021/0.9026, allocations: 142.4 MB / 0.9544 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.005909/0.9085, allocations: 5.997 MB / 0.9603 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004382/0.913, allocations: 2.871 MB / 0.9631 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005918/0.9136, allocations: 24.78 kB / 0.9631 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003872/0.914, allocations: 135.8 kB / 0.9633 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0009473/0.9149, allocations: 412.2 kB / 0.9637 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008584/0.9158, allocations: 317.5 kB / 0.964 GB, free: 412 kB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001383/0.9172, allocations: 1.325 MB / 0.9652 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001673/0.9189, allocations: 0.9266 MB / 0.9662 GB, free: 15 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006802/0.9196, allocations: 390 kB / 0.9665 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007116/0.9203, allocations: 480.5 kB / 0.967 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.735e-05/0.9204, allocations: 39.09 kB / 0.967 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005478/0.921, allocations: 195.8 kB / 0.9672 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002625/0.9212, allocations: 266 kB / 0.9675 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001817/0.9214, allocations: 173.7 kB / 0.9676 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0008921/0.9223, allocations: 0.9008 MB / 0.9685 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.9223, allocations: 0.7188 kB / 0.9685 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.264e-06/0.9223, allocations: 0 / 0.9685 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.165e-05/0.9224, allocations: 0 / 0.9685 GB, free: 13.57 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.001757/0.9241, allocations: 1.023 MB / 0.9695 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.9242, allocations: 8.656 kB / 0.9695 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001446/0.9256, allocations: 237.1 kB / 0.9697 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007928/0.9264, allocations: 0.5266 MB / 0.9703 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.13e-05/0.9265, allocations: 47.45 kB / 0.9703 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.9266, allocations: 70.11 kB / 0.9704 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.9282, allocations: 1.075 MB / 0.9714 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.654e-05/0.9282, allocations: 9.984 kB / 0.9714 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.739e-05/0.9283, allocations: 32.89 kB / 0.9715 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001439/0.9285, allocations: 89.39 kB / 0.9715 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001232/0.9297, allocations: 0.7467 MB / 0.9723 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005392/0.9351, allocations: 5.882 MB / 0.978 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.9363, allocations: 0.5673 MB / 0.9786 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00052/0.9368, allocations: 330.3 kB / 0.9789 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.799e-05/0.9369, allocations: 7.938 kB / 0.9789 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.9369, allocations: 38.34 kB / 0.9789 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 2.574e-06/0.9369, allocations: 0 / 0.9789 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.004103/0.941, allocations: 1.985 MB / 0.9809 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.9411, allocations: 57.22 kB / 0.9809 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00061/0.9417, allocations: 0.5471 MB / 0.9815 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.939e-05/0.9418, allocations: 37.7 kB / 0.9815 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002741/0.942, allocations: 414.9 kB / 0.9819 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.9422, allocations: 173.6 kB / 0.9821 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.258e-05/0.9422, allocations: 15.94 kB / 0.9821 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001612/0.9424, allocations: 378.7 kB / 0.9824 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004104/0.9428, allocations: 273.8 kB / 0.9827 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000568/0.9434, allocations: 485 kB / 0.9832 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005412/0.9439, allocations: 349.9 kB / 0.9835 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.944, allocations: 4 kB / 0.9835 GB, free: 0.9336 MB / 0.7325 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001739/0.9457, allocations: 1.076 MB / 0.9845 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/0.9457, allocations: 8 kB / 0.9845 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.9458, allocations: 12 kB / 0.9846 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007672/0.9465, allocations: 283.2 kB / 0.9848 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004392/0.947, allocations: 123.8 kB / 0.9849 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006121/0.9531, allocations: 6.595 MB / 0.9914 GB, free: 8.281 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006552/0.9538, allocations: 35.97 kB / 0.9914 GB, free: 8.246 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.327e-05/0.9539, allocations: 31.98 kB / 0.9915 GB, free: 8.215 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004542/0.9543, allocations: 253.9 kB / 0.9917 GB, free: 7.957 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.9545, allocations: 75.11 kB / 0.9918 GB, free: 7.883 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001635/0.9561, allocations: 0.8846 MB / 0.9926 GB, free: 6.98 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.9562, allocations: 4 kB / 0.9926 GB, free: 6.977 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.9562, allocations: 4 kB / 0.9926 GB, free: 6.973 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.9562, allocations: 0 / 0.9926 GB, free: 6.973 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00278/0.959, allocations: 1.724 MB / 0.9943 GB, free: 5.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.959, allocations: 4 kB / 0.9943 GB, free: 5.156 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002589/0.9593, allocations: 63.89 kB / 0.9944 GB, free: 5.094 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007851/0.9601, allocations: 263.4 kB / 0.9946 GB, free: 4.824 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.546e-05/0.9601, allocations: 16 kB / 0.9947 GB, free: 4.809 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00655/0.9667, allocations: 6.591 MB / 1.001 GB, free: 13.68 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.9667, allocations: 4.031 kB / 1.001 GB, free: 13.68 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001822/0.9685, allocations: 0.9796 MB / 1.002 GB, free: 12.64 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004638/0.969, allocations: 188.2 kB / 1.002 GB, free: 12.44 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001975/0.9692, allocations: 15.95 kB / 1.002 GB, free: 12.43 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005229/0.9698, allocations: 35.97 kB / 1.002 GB, free: 12.39 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.9699, allocations: 35.94 kB / 1.002 GB, free: 12.36 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-05/0.97, allocations: 16 kB / 1.002 GB, free: 12.34 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0006187/0.9706, allocations: 379.1 kB / 1.003 GB, free: 11.97 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.7e-07/0.9706, allocations: 0 / 1.003 GB, free: 11.97 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001553/0.9722, allocations: 224 kB / 1.003 GB, free: 11.75 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002944/0.9725, allocations: 119 kB / 1.003 GB, free: 11.63 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002387/0.9749, allocations: 1.268 MB / 1.004 GB, free: 10.31 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.9749, allocations: 0 / 1.004 GB, free: 10.31 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.9762, allocations: 0.9091 MB / 1.005 GB, free: 9.352 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/0.9776, allocations: 201.8 kB / 1.005 GB, free: 9.16 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002932/0.9806, allocations: 1.575 MB / 1.007 GB, free: 7.539 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007211/0.9813, allocations: 1.009 MB / 1.008 GB, free: 6.504 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005128/0.9818, allocations: 130 kB / 1.008 GB, free: 6.375 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.982, allocations: 39.44 kB / 1.008 GB, free: 6.336 MB / 0.7637 GB Notification: Performance of SimCode: time 8.01e-07/0.982, allocations: 0 / 1.008 GB, free: 6.336 MB / 0.7637 GB Notification: Performance of Templates: time 0.02076/1.003, allocations: 10.26 MB / 1.018 GB, free: 12.19 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/jenkins/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