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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001801/0.001801, allocations: 111.4 kB / 16.37 MB, free: 6.012 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.001932/0.001932, allocations: 192.1 kB / 17.3 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.36/2.36, allocations: 390.3 MB / 0.6655 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 63.44 kB / 0.814 GB, free: 32.72 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3328, allocations: 140.4 MB / 0.9511 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007493/0.3403, allocations: 5.458 MB / 0.9565 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004522/0.3449, allocations: 2.627 MB / 0.959 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004915/0.3454, allocations: 31.81 kB / 0.9591 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.00188/0.3474, allocations: 0.6728 MB / 0.9597 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.001333/0.3487, allocations: 405.8 kB / 0.9601 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.3498, allocations: 398.5 kB / 0.9605 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.001023/0.3509, allocations: 0.9513 MB / 0.9614 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006967/0.3516, allocations: 466.5 kB / 0.9619 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004547/0.352, allocations: 374.6 kB / 0.9622 GB, free: 12.65 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005563/0.3526, allocations: 406.4 kB / 0.9626 GB, free: 12.25 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 7.502e-05/0.3527, allocations: 48 kB / 0.9627 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000762/0.3535, allocations: 359.3 kB / 0.963 GB, free: 11.85 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002778/0.3537, allocations: 251.3 kB / 0.9632 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003701/0.3541, allocations: 346.2 kB / 0.9636 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001157/0.3553, allocations: 0.9734 MB / 0.9645 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3553, allocations: 0 / 0.9645 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.194e-06/0.3553, allocations: 4 kB / 0.9645 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.096e-05/0.3553, allocations: 0 / 0.9645 GB, free: 10.29 MB / 0.7481 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.001685/0.357, allocations: 0.9659 MB / 0.9655 GB, free: 9.27 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.3571, allocations: 12.03 kB / 0.9655 GB, free: 9.258 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0014/0.3585, allocations: 195.9 kB / 0.9657 GB, free: 9.066 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008703/0.3594, allocations: 0.514 MB / 0.9662 GB, free: 8.512 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.055e-05/0.3594, allocations: 41.36 kB / 0.9662 GB, free: 8.469 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.3596, allocations: 60.55 kB / 0.9663 GB, free: 8.41 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.3609, allocations: 0.8221 MB / 0.9671 GB, free: 7.508 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.086e-05/0.3609, allocations: 19.83 kB / 0.9671 GB, free: 7.488 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.151e-05/0.361, allocations: 23.98 kB / 0.9671 GB, free: 7.465 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001882/0.3612, allocations: 64.95 kB / 0.9672 GB, free: 7.402 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009047/0.3621, allocations: 0.5697 MB / 0.9677 GB, free: 6.828 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004889/0.367, allocations: 4.561 MB / 0.9722 GB, free: 1.914 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004945/0.3675, allocations: 295.3 kB / 0.9725 GB, free: 1.617 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003191/0.3678, allocations: 221.3 kB / 0.9727 GB, free: 1.398 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.3679, allocations: 4.281 kB / 0.9727 GB, free: 1.395 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.3679, allocations: 38.84 kB / 0.9727 GB, free: 1.348 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=33): time 2.023e-06/0.3679, allocations: 0 / 0.9727 GB, free: 1.348 MB / 0.7481 GB Notification: Performance of matching and sorting (n=40): time 0.005493/0.3734, allocations: 2.631 MB / 0.9753 GB, free: 14.59 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.3735, allocations: 63.33 kB / 0.9753 GB, free: 14.52 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004756/0.374, allocations: 461.9 kB / 0.9758 GB, free: 14.05 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 4.312e-05/0.374, allocations: 29.7 kB / 0.9758 GB, free: 14.02 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002128/0.3743, allocations: 339.6 kB / 0.9761 GB, free: 13.68 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.3744, allocations: 145.9 kB / 0.9763 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.3745, allocations: 106.1 kB / 0.9764 GB, free: 13.43 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001635/0.3747, allocations: 366.8 kB / 0.9767 GB, free: 13.06 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003574/0.3751, allocations: 244.9 kB / 0.977 GB, free: 12.82 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005377/0.3756, allocations: 402.5 kB / 0.9773 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009251/0.3766, allocations: 0.6817 MB / 0.978 GB, free: 11.59 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3766, allocations: 0 / 0.978 GB, free: 11.59 MB / 0.7637 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001642/0.3782, allocations: 0.9134 MB / 0.9789 GB, free: 10.66 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.3783, allocations: 10.19 kB / 0.9789 GB, free: 10.66 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.3783, allocations: 4 kB / 0.9789 GB, free: 10.65 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007765/0.379, allocations: 230.5 kB / 0.9791 GB, free: 10.42 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005149/0.3796, allocations: 115.8 kB / 0.9792 GB, free: 10.3 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005671/0.3853, allocations: 5.347 MB / 0.9845 GB, free: 4.535 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004852/0.3858, allocations: 27.97 kB / 0.9845 GB, free: 4.508 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.833e-05/0.3858, allocations: 24 kB / 0.9845 GB, free: 4.484 MB / 0.7637 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002989/0.3861, allocations: 217.7 kB / 0.9847 GB, free: 4.262 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.3862, allocations: 67.28 kB / 0.9848 GB, free: 4.195 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001626/0.3879, allocations: 0.7696 MB / 0.9855 GB, free: 3.41 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.3879, allocations: 4 kB / 0.9855 GB, free: 3.406 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3879, allocations: 0 / 0.9855 GB, free: 3.406 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3879, allocations: 3.984 kB / 0.9855 GB, free: 3.402 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002444/0.3904, allocations: 1.498 MB / 0.987 GB, free: 1.816 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.3904, allocations: 4.031 kB / 0.987 GB, free: 1.812 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003721/0.3908, allocations: 67.89 kB / 0.9871 GB, free: 1.746 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000712/0.3915, allocations: 210.3 kB / 0.9873 GB, free: 1.531 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.081e-05/0.3915, allocations: 11.94 kB / 0.9873 GB, free: 1.52 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005323/0.3969, allocations: 5.265 MB / 0.9924 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/0.3969, allocations: 7.969 kB / 0.9924 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001846/0.3987, allocations: 1.127 MB / 0.9935 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003142/0.3991, allocations: 172.5 kB / 0.9937 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.126e-05/0.3992, allocations: 15.94 kB / 0.9937 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003328/0.3995, allocations: 23.97 kB / 0.9937 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.3996, allocations: 36.03 kB / 0.9938 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.177e-05/0.3996, allocations: 16.17 kB / 0.9938 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003512/0.4, allocations: 314.9 kB / 0.9941 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.5e-07/0.4, allocations: 0 / 0.9941 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0006829/0.4007, allocations: 172 kB / 0.9943 GB, free: 9.898 MB / 0.7794 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001613/0.4009, allocations: 115.2 kB / 0.9944 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001604/0.4025, allocations: 1.016 MB / 0.9954 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.4025, allocations: 0 / 0.9954 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0009774/0.4035, allocations: 0.6876 MB / 0.996 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008556/0.4043, allocations: 185.2 kB / 0.9962 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.4063, allocations: 1.225 MB / 0.9974 GB, free: 6.543 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005705/0.4069, allocations: 0.9494 MB / 0.9983 GB, free: 5.566 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0003023/0.4072, allocations: 113 kB / 0.9984 GB, free: 5.453 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.768e-05/0.4073, allocations: 35.44 kB / 0.9985 GB, free: 5.418 MB / 0.7794 GB Notification: Performance of SimCode: time 2.71e-07/0.4073, allocations: 0 / 0.9985 GB, free: 5.418 MB / 0.7794 GB Notification: Performance of Templates: time 0.01754/0.4248, allocations: 8.852 MB / 1.007 GB, free: 12.69 MB / 0.795 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 -s gbode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches