Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.296/2.296, allocations: 390.3 MB / 402.9 MB, free: 6.66 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 172.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 221.3 MB / 0.7915 GB, free: 5.398 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00099/0.00099, allocations: 99.88 kB / 0.9318 GB, free: 5.707 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.552e-05/5.563e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3101/0.3102, allocations: 143 MB / 1.219 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.048/1.358, allocations: 193.6 MB / 1.408 GB, free: 10.76 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/1.359, allocations: 97.27 kB / 1.408 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.08493/1.443, allocations: 34.23 MB / 1.441 GB, free: 13.57 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.603e-06/1.444, allocations: 0 / 1.441 GB, free: 13.57 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 6.503e-05/1.444, allocations: 20 kB / 1.441 GB, free: 13.55 MB / 0.9011 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.002025/1.446, allocations: 0.7934 MB / 1.442 GB, free: 12.75 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/1.446, allocations: 8.031 kB / 1.442 GB, free: 12.75 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001651/1.447, allocations: 202.2 kB / 1.442 GB, free: 12.55 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001241/1.449, allocations: 494.3 kB / 1.443 GB, free: 12.07 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.434e-05/1.449, allocations: 38.98 kB / 1.443 GB, free: 12.05 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000233/1.449, allocations: 57.67 kB / 1.443 GB, free: 12.01 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/1.45, allocations: 0.8625 MB / 1.444 GB, free: 11.24 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.94e-05/1.45, allocations: 3.906 kB / 1.444 GB, free: 11.24 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.442e-05/1.45, allocations: 29.69 kB / 1.444 GB, free: 11.23 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.451e-05/1.451, allocations: 44.72 kB / 1.444 GB, free: 11.19 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009779/1.451, allocations: 0.5575 MB / 1.444 GB, free: 10.8 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004986/1.456, allocations: 4.602 MB / 1.449 GB, free: 6.254 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000468/1.457, allocations: 286.5 kB / 1.449 GB, free: 5.965 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003152/1.457, allocations: 224.8 kB / 1.449 GB, free: 5.742 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.157e-05/1.457, allocations: 4 kB / 1.449 GB, free: 5.738 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.941e-05/1.457, allocations: 38.5 kB / 1.449 GB, free: 5.691 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=33): time 2.615e-06/1.457, allocations: 0 / 1.449 GB, free: 5.691 MB / 0.9011 GB Notification: Performance of matching and sorting (n=40): time 0.004931/1.462, allocations: 2.201 MB / 1.452 GB, free: 3.398 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.842e-05/1.462, allocations: 63.34 kB / 1.452 GB, free: 3.324 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005779/1.463, allocations: 391.9 kB / 1.452 GB, free: 2.934 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 4.807e-05/1.463, allocations: 33.7 kB / 1.452 GB, free: 2.895 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002721/1.463, allocations: 331.8 kB / 1.452 GB, free: 2.562 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/1.464, allocations: 141.9 kB / 1.452 GB, free: 2.422 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.048e-05/1.464, allocations: 12 kB / 1.452 GB, free: 2.41 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001805/1.464, allocations: 370.7 kB / 1.453 GB, free: 2.039 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003875/1.464, allocations: 229.1 kB / 1.453 GB, free: 1.816 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004423/1.465, allocations: 376.5 kB / 1.453 GB, free: 1.379 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004405/1.465, allocations: 289.4 kB / 1.454 GB, free: 1.098 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/1.465, allocations: 0 / 1.454 GB, free: 1.098 MB / 0.9011 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001675/1.467, allocations: 0.8824 MB / 1.455 GB, free: 204 kB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/1.467, allocations: 4 kB / 1.455 GB, free: 200 kB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/1.467, allocations: 8.562 kB / 1.455 GB, free: 192 kB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008285/1.468, allocations: 226.3 kB / 1.455 GB, free: 15.96 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005371/1.468, allocations: 111.8 kB / 1.455 GB, free: 15.85 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005051/1.473, allocations: 4.919 MB / 1.46 GB, free: 10.52 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005736/1.474, allocations: 27.97 kB / 1.46 GB, free: 10.49 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.789e-05/1.474, allocations: 27.92 kB / 1.46 GB, free: 10.46 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 52 * 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.0001873/1.474, allocations: 140.9 kB / 1.46 GB, free: 10.32 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001707/1.474, allocations: 55.34 kB / 1.46 GB, free: 10.27 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001574/1.476, allocations: 0.7658 MB / 1.461 GB, free: 9.484 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/1.476, allocations: 4.141 kB / 1.461 GB, free: 9.48 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/1.476, allocations: 7.984 kB / 1.461 GB, free: 9.473 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/1.476, allocations: 0 / 1.461 GB, free: 9.473 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002647/1.479, allocations: 1.478 MB / 1.462 GB, free: 7.906 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/1.479, allocations: 224 / 1.462 GB, free: 7.906 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003832/1.479, allocations: 71.89 kB / 1.462 GB, free: 7.836 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006717/1.48, allocations: 198.4 kB / 1.462 GB, free: 7.633 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.212e-05/1.48, allocations: 16 kB / 1.462 GB, free: 7.617 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00475/1.484, allocations: 4.85 MB / 1.467 GB, free: 2.371 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/1.485, allocations: 4.031 kB / 1.467 GB, free: 2.367 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002028/1.487, allocations: 1.198 MB / 1.468 GB, free: 1.078 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003895/1.487, allocations: 172.6 kB / 1.468 GB, free: 0.8906 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/1.487, allocations: 12 kB / 1.468 GB, free: 0.8789 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003825/1.488, allocations: 27.97 kB / 1.469 GB, free: 0.8516 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/1.488, allocations: 35.91 kB / 1.469 GB, free: 0.8164 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/1.488, allocations: 16 kB / 1.469 GB, free: 0.8008 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0004446/1.488, allocations: 297.6 kB / 1.469 GB, free: 0.5156 MB / 0.9167 GB Notification: Performance of sort global known variables: time 3.6e-07/1.488, allocations: 0 / 1.469 GB, free: 0.5156 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0008413/1.489, allocations: 184 kB / 1.469 GB, free: 344 kB / 0.9167 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 () * 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.0002443/1.489, allocations: 123.1 kB / 1.469 GB, free: 212 kB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001768/1.491, allocations: 0.9919 MB / 1.47 GB, free: 15.18 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/1.491, allocations: 3.938 kB / 1.47 GB, free: 15.17 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0009435/1.492, allocations: 0.6679 MB / 1.471 GB, free: 14.46 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008369/1.493, allocations: 149 kB / 1.471 GB, free: 14.32 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/1.495, allocations: 0.9657 MB / 1.472 GB, free: 13.31 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007009/1.496, allocations: 0.961 MB / 1.473 GB, free: 12.32 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.0004177/1.496, allocations: 112.8 kB / 1.473 GB, free: 12.21 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/1.496, allocations: 35.44 kB / 1.473 GB, free: 12.17 MB / 0.9323 GB Notification: Performance of SimCode: time 6.62e-07/1.496, allocations: 0 / 1.473 GB, free: 12.17 MB / 0.9323 GB Notification: Performance of Templates: time 0.01624/1.512, allocations: 8.158 MB / 1.481 GB, free: 4.121 MB / 0.9323 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches