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.484/2.484, allocations: 393.5 MB / 408.4 MB, free: 10.93 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.001251/0.001252, allocations: 183.9 kB / 0.4902 GB, free: 2.152 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.542/1.542, allocations: 223.2 MB / 0.7992 GB, free: 15.71 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.0008441/0.0008441, allocations: 90.05 kB / 0.9396 GB, free: 2.902 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003669, allocations: 17.06 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2615, allocations: 143 MB / 1.229 GB, free: 85.53 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7681/1.03, allocations: 193.7 MB / 1.418 GB, free: 176.1 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004985/1.03, allocations: 97.23 kB / 1.418 GB, free: 176.1 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.09387/1.124, allocations: 34.42 MB / 1.452 GB, free: 161.5 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.134e-06/1.124, allocations: 0 / 1.452 GB, free: 161.5 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 6.52e-05/1.124, allocations: 15.94 kB / 1.452 GB, free: 161.5 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.002136/1.126, allocations: 0.8686 MB / 1.453 GB, free: 160.6 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/1.127, allocations: 8.562 kB / 1.453 GB, free: 160.6 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001691/1.128, allocations: 191 kB / 1.453 GB, free: 160.5 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00122/1.129, allocations: 0.5018 MB / 1.454 GB, free: 160 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.846e-05/1.13, allocations: 36 kB / 1.454 GB, free: 159.9 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002195/1.13, allocations: 59.66 kB / 1.454 GB, free: 159.9 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/1.131, allocations: 0.8671 MB / 1.455 GB, free: 158.9 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.392e-05/1.131, allocations: 8 kB / 1.455 GB, free: 158.9 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.406e-05/1.131, allocations: 20 kB / 1.455 GB, free: 158.9 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.908e-05/1.131, allocations: 48.97 kB / 1.455 GB, free: 158.8 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009466/1.132, allocations: 0.5657 MB / 1.455 GB, free: 158.3 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004239/1.136, allocations: 4.6 MB / 1.46 GB, free: 153.3 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004093/1.137, allocations: 290.4 kB / 1.46 GB, free: 153 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.981e-05/1.137, allocations: 4 kB / 1.46 GB, free: 153 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/1.137, allocations: 46.5 kB / 1.46 GB, free: 153 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=33): time 2.795e-06/1.137, allocations: 3.938 kB / 1.46 GB, free: 153 MB / 0.9011 GB Notification: Performance of matching and sorting (n=40): time 0.005172/1.142, allocations: 2.623 MB / 1.463 GB, free: 150.2 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/1.142, allocations: 59.34 kB / 1.463 GB, free: 150.2 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004199/1.143, allocations: 393.2 kB / 1.463 GB, free: 149.8 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/1.143, allocations: 33.7 kB / 1.463 GB, free: 149.7 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/1.143, allocations: 343.8 kB / 1.463 GB, free: 149.4 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 9.382e-05/1.143, allocations: 141.9 kB / 1.463 GB, free: 149.2 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.571e-05/1.143, allocations: 12 kB / 1.463 GB, free: 149.2 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 9.36e-05/1.143, allocations: 362.7 kB / 1.464 GB, free: 148.9 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003233/1.143, allocations: 237 kB / 1.464 GB, free: 148.6 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003685/1.144, allocations: 376.5 kB / 1.464 GB, free: 148.2 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000364/1.144, allocations: 294.2 kB / 1.465 GB, free: 147.9 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/1.144, allocations: 0 / 1.465 GB, free: 147.9 MB / 0.9011 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001491/1.146, allocations: 0.8902 MB / 1.466 GB, free: 147 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/1.146, allocations: 12.55 kB / 1.466 GB, free: 147 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/1.146, allocations: 11.94 kB / 1.466 GB, free: 147 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007502/1.146, allocations: 226.3 kB / 1.466 GB, free: 146.8 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005067/1.147, allocations: 111.8 kB / 1.466 GB, free: 146.6 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00421/1.151, allocations: 5.002 MB / 1.471 GB, free: 141.2 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005302/1.152, allocations: 27.97 kB / 1.471 GB, free: 141.2 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.332e-05/1.152, allocations: 24 kB / 1.471 GB, free: 141.2 MB / 0.9011 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 () * Number of clocked 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.0003815/1.152, allocations: 225.6 kB / 1.471 GB, free: 141 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/1.152, allocations: 55.34 kB / 1.471 GB, free: 140.9 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/1.154, allocations: 0.7742 MB / 1.472 GB, free: 140.1 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/1.154, allocations: 4.375 kB / 1.472 GB, free: 140.1 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/1.154, allocations: 4.281 kB / 1.472 GB, free: 140.1 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/1.154, allocations: 3.984 kB / 1.472 GB, free: 140.1 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002264/1.156, allocations: 1.486 MB / 1.473 GB, free: 138.5 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/1.156, allocations: 4 kB / 1.473 GB, free: 138.5 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003723/1.156, allocations: 67.88 kB / 1.473 GB, free: 138.5 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006417/1.157, allocations: 210.6 kB / 1.474 GB, free: 138.2 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/1.157, allocations: 8 kB / 1.474 GB, free: 138.2 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003619/1.161, allocations: 4.951 MB / 1.478 GB, free: 132.9 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/1.161, allocations: 3.938 kB / 1.478 GB, free: 132.9 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001595/1.162, allocations: 1.203 MB / 1.48 GB, free: 131.6 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003519/1.163, allocations: 172.4 kB / 1.48 GB, free: 131.4 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.688e-05/1.163, allocations: 8 kB / 1.48 GB, free: 131.4 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003363/1.163, allocations: 23.97 kB / 1.48 GB, free: 131.4 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.327e-05/1.163, allocations: 43.84 kB / 1.48 GB, free: 131.3 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/1.163, allocations: 8 kB / 1.48 GB, free: 131.3 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0003553/1.164, allocations: 314.9 kB / 1.48 GB, free: 131 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.2e-07/1.164, allocations: 0 / 1.48 GB, free: 131 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0007852/1.164, allocations: 183.9 kB / 1.48 GB, free: 130.8 MB / 0.9011 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.0002159/1.165, allocations: 119.2 kB / 1.48 GB, free: 130.7 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001464/1.166, allocations: 1.005 MB / 1.481 GB, free: 129.7 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/1.166, allocations: 0 / 1.481 GB, free: 129.7 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0008089/1.167, allocations: 0.6759 MB / 1.482 GB, free: 129 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007965/1.168, allocations: 166 kB / 1.482 GB, free: 128.8 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002061/1.17, allocations: 1.496 MB / 1.484 GB, free: 127.2 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004169/1.17, allocations: 0.9571 MB / 1.485 GB, free: 126.3 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0003958/1.171, allocations: 108.9 kB / 1.485 GB, free: 126.2 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.548e-05/1.171, allocations: 39.44 kB / 1.485 GB, free: 126.1 MB / 0.9011 GB Notification: Performance of SimCode: time 5.21e-07/1.171, allocations: 0 / 1.485 GB, free: 126.1 MB / 0.9011 GB Notification: Performance of Templates: time 0.01379/1.185, allocations: 8.15 MB / 1.493 GB, free: 118.1 MB / 0.9011 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