Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 86.33 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.001631/0.001631, 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.515/1.515, allocations: 223.2 MB / 240 MB, free: 5.406 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.944/2.944, allocations: 437.7 MB / 0.7117 GB, free: 7.07 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005155/0.0005156, allocations: 19.92 kB / 0.8722 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8152/0.8158, allocations: 153.8 MB / 1.022 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007665/0.8235, allocations: 4.837 MB / 1.027 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004818/0.8284, allocations: 2.468 MB / 1.03 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006284/0.829, allocations: 23.81 kB / 1.03 GB, free: 8.668 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004513/0.8295, allocations: 95.2 kB / 1.03 GB, free: 8.574 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.831, allocations: 334.2 kB / 1.03 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.8323, allocations: 291.3 kB / 1.03 GB, free: 7.961 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001909/0.8342, allocations: 1.045 MB / 1.031 GB, free: 6.91 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001474/0.8357, allocations: 0.7437 MB / 1.032 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006083/0.8363, allocations: 306.7 kB / 1.032 GB, free: 5.832 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004893/0.8368, allocations: 370.6 kB / 1.033 GB, free: 5.469 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.533e-05/0.8369, allocations: 28 kB / 1.033 GB, free: 5.441 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005361/0.8374, allocations: 187.7 kB / 1.033 GB, free: 5.258 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002326/0.8376, allocations: 219.3 kB / 1.033 GB, free: 5.043 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001644/0.8378, allocations: 141.4 kB / 1.033 GB, free: 4.898 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008567/0.8387, allocations: 0.7304 MB / 1.034 GB, free: 4.168 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.8387, allocations: 0 / 1.034 GB, free: 4.168 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.853e-06/0.8387, allocations: 4 kB / 1.034 GB, free: 4.164 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.157e-05/0.8387, allocations: 0 / 1.034 GB, free: 4.164 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001589/0.8403, allocations: 0.8451 MB / 1.035 GB, free: 3.266 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.8404, allocations: 16.5 kB / 1.035 GB, free: 3.25 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001244/0.8416, allocations: 191 kB / 1.035 GB, free: 3.062 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007033/0.8423, allocations: 477.4 kB / 1.035 GB, free: 2.555 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.683e-05/0.8424, allocations: 40.97 kB / 1.035 GB, free: 2.516 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001482/0.8425, allocations: 59.89 kB / 1.035 GB, free: 2.457 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.8437, allocations: 0.8238 MB / 1.036 GB, free: 1.551 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.8438, allocations: 3.984 kB / 1.036 GB, free: 1.547 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.591e-05/0.8438, allocations: 23.98 kB / 1.036 GB, free: 1.523 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001997/0.844, allocations: 72.89 kB / 1.036 GB, free: 1.449 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009115/0.845, allocations: 0.5619 MB / 1.037 GB, free: 0.8906 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004531/0.8495, allocations: 4.578 MB / 1.041 GB, free: 11.96 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004634/0.85, allocations: 303.2 kB / 1.042 GB, free: 11.66 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003099/0.8503, allocations: 225.2 kB / 1.042 GB, free: 11.43 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/0.8503, allocations: 4.281 kB / 1.042 GB, free: 11.43 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/0.8504, allocations: 34.84 kB / 1.042 GB, free: 11.39 MB / 0.795 GB Notification: Performance of pre-optimization done (n=33): time 2.034e-06/0.8504, allocations: 4 kB / 1.042 GB, free: 11.38 MB / 0.795 GB Notification: Performance of matching and sorting (n=40): time 0.00519/0.8556, allocations: 2.63 MB / 1.045 GB, free: 8.625 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.732e-05/0.8556, allocations: 63.34 kB / 1.045 GB, free: 8.551 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004502/0.8561, allocations: 457.9 kB / 1.045 GB, free: 8.094 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.302e-05/0.8561, allocations: 33.64 kB / 1.045 GB, free: 8.055 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002311/0.8564, allocations: 343.6 kB / 1.045 GB, free: 7.711 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.8565, allocations: 134.1 kB / 1.046 GB, free: 7.578 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/0.8565, allocations: 12 kB / 1.046 GB, free: 7.566 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.8567, allocations: 362.8 kB / 1.046 GB, free: 7.203 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003472/0.857, allocations: 233 kB / 1.046 GB, free: 6.973 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004546/0.8575, allocations: 406.4 kB / 1.046 GB, free: 6.504 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004246/0.8579, allocations: 301.4 kB / 1.047 GB, free: 6.211 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.8579, allocations: 0 / 1.047 GB, free: 6.211 MB / 0.795 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001563/0.8595, allocations: 0.9097 MB / 1.048 GB, free: 5.285 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.8595, allocations: 11.95 kB / 1.048 GB, free: 5.273 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.8596, allocations: 4.656 kB / 1.048 GB, free: 5.27 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007309/0.8603, allocations: 226.4 kB / 1.048 GB, free: 5.039 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004769/0.8608, allocations: 115.8 kB / 1.048 GB, free: 4.926 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004846/0.8656, allocations: 4.954 MB / 1.053 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003821/0.866, allocations: 27.98 kB / 1.053 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.091e-05/0.8661, allocations: 27.98 kB / 1.053 GB, free: 15.52 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002863/0.8664, allocations: 225.6 kB / 1.053 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.486e-05/0.8665, allocations: 55.34 kB / 1.053 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001409/0.8679, allocations: 0.7735 MB / 1.054 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.8679, allocations: 4 kB / 1.054 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.8679, allocations: 4 kB / 1.054 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.8679, allocations: 3.984 kB / 1.054 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002356/0.8703, allocations: 1.487 MB / 1.055 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.8703, allocations: 11.98 kB / 1.055 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003417/0.8707, allocations: 63.89 kB / 1.055 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005948/0.8713, allocations: 206.4 kB / 1.056 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.55e-05/0.8713, allocations: 11.98 kB / 1.056 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004308/0.8756, allocations: 4.868 MB / 1.06 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.8756, allocations: 0 / 1.06 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001724/0.8774, allocations: 1.123 MB / 1.061 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002332/0.8776, allocations: 180.2 kB / 1.062 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.668e-05/0.8777, allocations: 8 kB / 1.062 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002846/0.878, allocations: 23.97 kB / 1.062 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.391e-05/0.8781, allocations: 40.02 kB / 1.062 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.8781, allocations: 12 kB / 1.062 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003171/0.8784, allocations: 306.9 kB / 1.062 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of sort global known variables: time 9e-08/0.8784, allocations: 0 / 1.062 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006583/0.8791, allocations: 164 kB / 1.062 GB, free: 5.379 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001741/0.8793, allocations: 121.3 kB / 1.062 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001527/0.8808, allocations: 1.008 MB / 1.063 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.8808, allocations: 0 / 1.063 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0009098/0.8817, allocations: 0.6876 MB / 1.064 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008386/0.8826, allocations: 171.2 kB / 1.064 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002013/0.8846, allocations: 1.488 MB / 1.066 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000501/0.8851, allocations: 0.9416 MB / 1.067 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0003414/0.8855, allocations: 117 kB / 1.067 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.8856, allocations: 43.36 kB / 1.067 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of SimCode: time 6.92e-07/0.8856, allocations: 0 / 1.067 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of Templates: time 0.01502/0.9006, allocations: 8.144 MB / 1.075 GB, free: 8.621 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches