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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.002227/0.002227, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00364/0.003639, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.565/1.565, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.468/2.468, allocations: 390.2 MB / 0.6643 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 67.88 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8025/0.8041, allocations: 140.4 MB / 0.9491 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.005701/0.8098, allocations: 5.486 MB / 0.9545 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003632/0.8135, allocations: 2.605 MB / 0.957 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004246/0.8139, allocations: 23.88 kB / 0.957 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001727/0.8157, allocations: 0.6286 MB / 0.9576 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000948/0.8167, allocations: 381.2 kB / 0.958 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008595/0.8176, allocations: 357.2 kB / 0.9583 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001033/0.8186, allocations: 0.9554 MB / 0.9593 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007393/0.8193, allocations: 0.5212 MB / 0.9598 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005508/0.8199, allocations: 364.8 kB / 0.9601 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004654/0.8204, allocations: 422.6 kB / 0.9605 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.307e-05/0.8205, allocations: 48.53 kB / 0.9606 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000661/0.8211, allocations: 365.5 kB / 0.9609 GB, free: 420 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0002038/0.8214, allocations: 246 kB / 0.9612 GB, free: 260 kB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002936/0.8217, allocations: 350.6 kB / 0.9615 GB, free: 28 kB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00121/0.8229, allocations: 0.9794 MB / 0.9625 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.8229, allocations: 5.531 kB / 0.9625 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.943e-06/0.8229, allocations: 3.938 kB / 0.9625 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.425e-05/0.8229, allocations: 0 / 0.9625 GB, free: 15.36 MB / 0.7325 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.001688/0.8246, allocations: 0.9775 MB / 0.9634 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.8247, allocations: 9.688 kB / 0.9634 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001403/0.8261, allocations: 192.3 kB / 0.9636 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007248/0.8268, allocations: 492.2 kB / 0.9641 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.931e-05/0.8269, allocations: 41.55 kB / 0.9641 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.827, allocations: 46.25 kB / 0.9642 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.8284, allocations: 0.8279 MB / 0.965 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.949e-05/0.8284, allocations: 7.219 kB / 0.965 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.508e-05/0.8285, allocations: 26.52 kB / 0.965 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002191/0.8287, allocations: 66.91 kB / 0.9651 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009528/0.8297, allocations: 0.5712 MB / 0.9656 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004825/0.8345, allocations: 4.579 MB / 0.9701 GB, free: 8.836 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005111/0.835, allocations: 303.8 kB / 0.9704 GB, free: 8.668 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003336/0.8354, allocations: 227.2 kB / 0.9706 GB, free: 8.551 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.609e-05/0.8354, allocations: 3.938 kB / 0.9706 GB, free: 8.551 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/0.8355, allocations: 36.09 kB / 0.9706 GB, free: 8.508 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 2.284e-06/0.8355, allocations: 1.344 kB / 0.9707 GB, free: 8.508 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.00603/0.8415, allocations: 2.634 MB / 0.9732 GB, free: 6.789 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.8416, allocations: 55.53 kB / 0.9733 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005998/0.8422, allocations: 458.2 kB / 0.9737 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.017e-05/0.8423, allocations: 35.02 kB / 0.9737 GB, free: 6.406 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.8425, allocations: 340.3 kB / 0.9741 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.8427, allocations: 148.3 kB / 0.9742 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/0.8428, allocations: 102.1 kB / 0.9743 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.843, allocations: 358.4 kB / 0.9747 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003896/0.8434, allocations: 240.3 kB / 0.9749 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005141/0.8439, allocations: 406 kB / 0.9753 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008723/0.8448, allocations: 0.6778 MB / 0.9759 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.8448, allocations: 1.25 kB / 0.9759 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00173/0.8465, allocations: 0.9243 MB / 0.9768 GB, free: 4.105 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.8466, allocations: 6.5 kB / 0.9768 GB, free: 4.105 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.8466, allocations: 10.64 kB / 0.9768 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007846/0.8474, allocations: 233.7 kB / 0.9771 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005082/0.8479, allocations: 109.5 kB / 0.9772 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005309/0.8532, allocations: 5.344 MB / 0.9824 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005112/0.8538, allocations: 36.03 kB / 0.9824 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.882e-05/0.8538, allocations: 20 kB / 0.9824 GB, free: 14.61 MB / 0.7481 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.0003585/0.8542, allocations: 222.4 kB / 0.9827 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.177e-05/0.8543, allocations: 63.22 kB / 0.9827 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001508/0.8558, allocations: 0.7733 MB / 0.9835 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.8558, allocations: 8 kB / 0.9835 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.8558, allocations: 4 kB / 0.9835 GB, free: 13.51 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.8558, allocations: 4.125 kB / 0.9835 GB, free: 13.51 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002352/0.8582, allocations: 1.501 MB / 0.985 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.8582, allocations: 4 kB / 0.985 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003939/0.8586, allocations: 63.89 kB / 0.985 GB, free: 11.85 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006608/0.8593, allocations: 202.6 kB / 0.9852 GB, free: 11.64 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.564e-05/0.8593, allocations: 19.98 kB / 0.9852 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00475/0.8641, allocations: 5.261 MB / 0.9904 GB, free: 5.941 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.8641, allocations: 4 kB / 0.9904 GB, free: 5.938 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001712/0.8658, allocations: 1.135 MB / 0.9915 GB, free: 4.754 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002464/0.8661, allocations: 172.4 kB / 0.9917 GB, free: 4.566 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.545e-05/0.8661, allocations: 15.94 kB / 0.9917 GB, free: 4.551 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003301/0.8665, allocations: 23.97 kB / 0.9917 GB, free: 4.527 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.544e-05/0.8666, allocations: 39.95 kB / 0.9917 GB, free: 4.488 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.934e-05/0.8666, allocations: 16 kB / 0.9917 GB, free: 4.473 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000331/0.867, allocations: 306.9 kB / 0.992 GB, free: 4.176 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.867, allocations: 0 / 0.992 GB, free: 4.176 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006852/0.8676, allocations: 168 kB / 0.9922 GB, free: 4.012 MB / 0.7481 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.0001711/0.8678, allocations: 119.2 kB / 0.9923 GB, free: 3.887 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001632/0.8695, allocations: 1.051 MB / 0.9933 GB, free: 2.797 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.8695, allocations: 3.938 kB / 0.9933 GB, free: 2.793 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000914/0.8704, allocations: 0.6889 MB / 0.994 GB, free: 2.066 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008896/0.8713, allocations: 191.4 kB / 0.9942 GB, free: 1.887 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.8734, allocations: 1.498 MB / 0.9957 GB, free: 348 kB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005496/0.874, allocations: 0.9494 MB / 0.9966 GB, free: 15.36 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003723/0.8744, allocations: 117 kB / 0.9967 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.8745, allocations: 35.44 kB / 0.9967 GB, free: 15.21 MB / 0.7637 GB Notification: Performance of SimCode: time 4.71e-07/0.8745, allocations: 0 / 0.9967 GB, free: 15.21 MB / 0.7637 GB Notification: Performance of Templates: time 0.01506/0.8896, allocations: 8.903 MB / 1.005 GB, free: 6.426 MB / 0.7637 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","/var/lib/jenkins/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