Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.4/2.4, allocations: 387.4 MB / 394.9 MB, free: 13.34 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.001055/0.001055, allocations: 168.9 kB / 487.4 MB, free: 5.039 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.502/1.502, allocations: 221.5 MB / 0.7824 GB, free: 1.023 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008896/0.0008895, allocations: 91.84 kB / 0.9219 GB, free: 2.258 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.917e-05/1.921e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2803, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9727/1.253, allocations: 192.1 MB / 1.394 GB, free: 13.6 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002413/1.253, allocations: 95.25 kB / 1.394 GB, free: 13.59 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.07554/1.329, allocations: 34.1 MB / 1.427 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.152e-06/1.329, allocations: 0 / 1.427 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.044e-05/1.329, allocations: 15.98 kB / 1.427 GB, free: 3.277 MB / 0.8386 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.001418/1.33, allocations: 0.8061 MB / 1.428 GB, free: 2.469 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/1.33, allocations: 8.031 kB / 1.428 GB, free: 2.461 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001627/1.332, allocations: 198.9 kB / 1.428 GB, free: 2.266 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/1.333, allocations: 492.2 kB / 1.428 GB, free: 1.793 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/1.333, allocations: 16 kB / 1.428 GB, free: 1.777 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001616/1.333, allocations: 43.89 kB / 1.429 GB, free: 1.734 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008876/1.334, allocations: 462.9 kB / 1.429 GB, free: 1.438 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/1.335, allocations: 0.7892 MB / 1.43 GB, free: 0.7109 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.863e-05/1.335, allocations: 11.94 kB / 1.43 GB, free: 0.6992 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.076e-05/1.335, allocations: 0 / 1.43 GB, free: 0.6992 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.446e-05/1.335, allocations: 53.03 kB / 1.43 GB, free: 0.6484 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004111/1.34, allocations: 4.482 MB / 1.434 GB, free: 12.23 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004036/1.34, allocations: 273.5 kB / 1.434 GB, free: 12.05 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002701/1.34, allocations: 209.5 kB / 1.435 GB, free: 11.91 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/1.34, allocations: 4 kB / 1.435 GB, free: 11.91 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/1.34, allocations: 37.44 kB / 1.435 GB, free: 11.87 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=33): time 1.844e-06/1.34, allocations: 0 / 1.435 GB, free: 11.87 MB / 0.8542 GB Notification: Performance of matching and sorting (n=40): time 0.004202/1.345, allocations: 1.977 MB / 1.437 GB, free: 10.21 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/1.345, allocations: 58.53 kB / 1.437 GB, free: 10.14 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004954/1.345, allocations: 328.5 kB / 1.437 GB, free: 9.883 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.823e-05/1.345, allocations: 29.7 kB / 1.437 GB, free: 9.848 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003016/1.345, allocations: 337.7 kB / 1.437 GB, free: 9.586 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/1.346, allocations: 139 kB / 1.437 GB, free: 9.465 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.039e-05/1.346, allocations: 0 / 1.437 GB, free: 9.465 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002201/1.346, allocations: 363.9 kB / 1.438 GB, free: 9.121 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004802/1.346, allocations: 214.6 kB / 1.438 GB, free: 8.988 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005946/1.347, allocations: 371.6 kB / 1.438 GB, free: 8.652 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005653/1.348, allocations: 274.8 kB / 1.439 GB, free: 8.473 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/1.348, allocations: 3.953 kB / 1.439 GB, free: 8.469 MB / 0.8542 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002369/1.35, allocations: 0.8134 MB / 1.439 GB, free: 7.836 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.719e-05/1.35, allocations: 15.95 kB / 1.439 GB, free: 7.82 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/1.35, allocations: 4 kB / 1.439 GB, free: 7.816 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/1.351, allocations: 217.2 kB / 1.44 GB, free: 7.633 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007573/1.352, allocations: 107.7 kB / 1.44 GB, free: 7.531 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007235/1.359, allocations: 4.742 MB / 1.444 GB, free: 2.902 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007208/1.36, allocations: 15.98 kB / 1.444 GB, free: 2.887 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.794e-05/1.36, allocations: 23.55 kB / 1.444 GB, free: 2.867 MB / 0.8542 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.0002383/1.36, allocations: 128.2 kB / 1.445 GB, free: 2.738 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001568/1.361, allocations: 51.44 kB / 1.445 GB, free: 2.688 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00208/1.363, allocations: 0.7229 MB / 1.445 GB, free: 2.152 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/1.363, allocations: 11.92 kB / 1.445 GB, free: 2.141 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/1.363, allocations: 0 / 1.445 GB, free: 2.141 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.966e-06/1.363, allocations: 3.953 kB / 1.445 GB, free: 2.137 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003304/1.366, allocations: 1.357 MB / 1.447 GB, free: 1.008 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/1.366, allocations: 0 / 1.447 GB, free: 1.008 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005308/1.367, allocations: 63.89 kB / 1.447 GB, free: 0.9453 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008939/1.368, allocations: 209.4 kB / 1.447 GB, free: 0.7695 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.144e-05/1.368, allocations: 4 kB / 1.447 GB, free: 0.7656 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005894/1.373, allocations: 4.655 MB / 1.451 GB, free: 12.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/1.374, allocations: 3.953 kB / 1.451 GB, free: 12.19 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/1.376, allocations: 1.161 MB / 1.453 GB, free: 11.23 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000333/1.376, allocations: 168.9 kB / 1.453 GB, free: 11.06 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.445e-05/1.376, allocations: 4 kB / 1.453 GB, free: 11.05 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004676/1.377, allocations: 15.97 kB / 1.453 GB, free: 11.04 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/1.377, allocations: 38.72 kB / 1.453 GB, free: 11.01 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.138e-05/1.377, allocations: 15.19 kB / 1.453 GB, free: 11 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0003914/1.378, allocations: 254.3 kB / 1.453 GB, free: 10.8 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.21e-07/1.378, allocations: 0 / 1.453 GB, free: 10.8 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001121/1.379, allocations: 163.9 kB / 1.453 GB, free: 10.64 MB / 0.8698 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.0002546/1.379, allocations: 106.6 kB / 1.453 GB, free: 10.53 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002189/1.381, allocations: 0.9324 MB / 1.454 GB, free: 9.762 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/1.381, allocations: 0 / 1.454 GB, free: 9.762 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001357/1.383, allocations: 0.6477 MB / 1.455 GB, free: 9.18 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/1.384, allocations: 142.5 kB / 1.455 GB, free: 9.066 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002479/1.386, allocations: 0.9298 MB / 1.456 GB, free: 8.184 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008254/1.387, allocations: 0.9622 MB / 1.457 GB, free: 7.215 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0005878/1.388, allocations: 108.6 kB / 1.457 GB, free: 7.109 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/1.388, allocations: 31.44 kB / 1.457 GB, free: 7.078 MB / 0.8698 GB Notification: Performance of SimCode: time 1.322e-06/1.388, allocations: 0 / 1.457 GB, free: 7.078 MB / 0.8698 GB Notification: Performance of Templates: time 0.02046/1.408, allocations: 7.461 MB / 1.464 GB, free: 15.72 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches