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.0008878/0.0008879, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001117/0.001117, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 223.2 MB / 240 MB, free: 5.309 MB / 190.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.529/2.529, allocations: 390.9 MB / 0.666 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000433/0.0004331, allocations: 8.219 kB / 0.8154 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8288/0.8293, allocations: 142.4 MB / 0.9544 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.005008/0.8343, allocations: 4.837 MB / 0.9592 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003399/0.8378, allocations: 2.471 MB / 0.9616 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004248/0.8382, allocations: 18.09 kB / 0.9616 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002975/0.8385, allocations: 107.2 kB / 0.9617 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000755/0.8393, allocations: 334.4 kB / 0.962 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008403/0.8402, allocations: 280.5 kB / 0.9623 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0009408/0.8411, allocations: 1.052 MB / 0.9633 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001121/0.8422, allocations: 0.7451 MB / 0.964 GB, free: 496 kB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004935/0.8427, allocations: 313.3 kB / 0.9643 GB, free: 332 kB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004406/0.8432, allocations: 370.3 kB / 0.9647 GB, free: 124 kB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.942e-05/0.8433, allocations: 29.16 kB / 0.9647 GB, free: 120 kB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004567/0.8437, allocations: 191.7 kB / 0.9649 GB, free: 32 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0002371/0.844, allocations: 223.2 kB / 0.9651 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001483/0.8441, allocations: 140 kB / 0.9653 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0007129/0.8449, allocations: 0.7197 MB / 0.966 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.8449, allocations: 0 / 0.966 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8449, allocations: 4.906 kB / 0.966 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.977e-06/0.8449, allocations: 0 / 0.966 GB, free: 15.32 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.001344/0.8462, allocations: 0.8506 MB / 0.9668 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.8463, allocations: 9.75 kB / 0.9668 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001364/0.8477, allocations: 191.7 kB / 0.967 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008153/0.8485, allocations: 475.2 kB / 0.9674 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.757e-05/0.8485, allocations: 41.67 kB / 0.9675 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.8487, allocations: 53.67 kB / 0.9675 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.85, allocations: 0.8239 MB / 0.9683 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.8501, allocations: 2.969 kB / 0.9683 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.663e-05/0.8501, allocations: 26.8 kB / 0.9684 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001938/0.8503, allocations: 66.22 kB / 0.9684 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009331/0.8513, allocations: 0.5756 MB / 0.969 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004512/0.8558, allocations: 4.581 MB / 0.9735 GB, free: 8.898 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000507/0.8563, allocations: 295.1 kB / 0.9737 GB, free: 8.738 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003451/0.8567, allocations: 225 kB / 0.974 GB, free: 8.621 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.758e-05/0.8568, allocations: 4.25 kB / 0.974 GB, free: 8.621 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.103e-05/0.8568, allocations: 36.81 kB / 0.974 GB, free: 8.578 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 5.53e-06/0.8568, allocations: 4 kB / 0.974 GB, free: 8.574 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.005904/0.8627, allocations: 2.633 MB / 0.9766 GB, free: 6.863 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.8628, allocations: 58.94 kB / 0.9766 GB, free: 6.797 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006087/0.8634, allocations: 453.8 kB / 0.9771 GB, free: 6.512 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.8635, allocations: 31.36 kB / 0.9771 GB, free: 6.477 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002338/0.8637, allocations: 339.7 kB / 0.9774 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001283/0.8639, allocations: 140.2 kB / 0.9775 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.947e-05/0.8639, allocations: 14.59 kB / 0.9776 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001642/0.8641, allocations: 363.5 kB / 0.9779 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003616/0.8644, allocations: 234 kB / 0.9781 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004615/0.8649, allocations: 403.5 kB / 0.9785 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004315/0.8653, allocations: 295.9 kB / 0.9788 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.8654, allocations: 1.906 kB / 0.9788 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001654/0.867, allocations: 0.92 MB / 0.9797 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.867, allocations: 8.875 kB / 0.9797 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.8671, allocations: 5.375 kB / 0.9797 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007581/0.8678, allocations: 222.2 kB / 0.9799 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005358/0.8684, allocations: 121.5 kB / 0.98 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004823/0.8732, allocations: 4.929 MB / 0.9849 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005324/0.8738, allocations: 31.97 kB / 0.9849 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.112e-05/0.8738, allocations: 32 kB / 0.9849 GB, free: 15.17 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 (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.000351/0.8742, allocations: 229.6 kB / 0.9851 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.368e-05/0.8743, allocations: 59.34 kB / 0.9852 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.8758, allocations: 0.7697 MB / 0.9859 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.8758, allocations: 4 kB / 0.9859 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.8758, allocations: 4 kB / 0.9859 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.8758, allocations: 3.953 kB / 0.986 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002347/0.8781, allocations: 1.49 MB / 0.9874 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.8782, allocations: 0 / 0.9874 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003649/0.8785, allocations: 71.88 kB / 0.9875 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006326/0.8792, allocations: 210.6 kB / 0.9877 GB, free: 12.21 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.084e-05/0.8792, allocations: 8 kB / 0.9877 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004816/0.884, allocations: 4.877 MB / 0.9924 GB, free: 6.926 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.8841, allocations: 0 / 0.9924 GB, free: 6.926 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/0.8859, allocations: 1.135 MB / 0.9936 GB, free: 5.742 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003925/0.8863, allocations: 164.4 kB / 0.9937 GB, free: 5.562 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.184e-05/0.8864, allocations: 15.98 kB / 0.9937 GB, free: 5.547 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003234/0.8867, allocations: 28.03 kB / 0.9938 GB, free: 5.52 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.174e-05/0.8868, allocations: 39.84 kB / 0.9938 GB, free: 5.48 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.129e-05/0.8869, allocations: 19.94 kB / 0.9938 GB, free: 5.461 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003853/0.8873, allocations: 302.9 kB / 0.9941 GB, free: 5.168 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8873, allocations: 0 / 0.9941 GB, free: 5.168 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0008248/0.8881, allocations: 168 kB / 0.9943 GB, free: 5.004 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 (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.0002069/0.8883, allocations: 115.2 kB / 0.9944 GB, free: 4.879 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001566/0.8899, allocations: 1 MB / 0.9953 GB, free: 3.84 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.8899, allocations: 4.125 kB / 0.9954 GB, free: 3.836 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000962/0.8909, allocations: 0.6773 MB / 0.996 GB, free: 3.121 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000928/0.8918, allocations: 167.6 kB / 0.9962 GB, free: 2.961 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/0.8942, allocations: 1.498 MB / 0.9976 GB, free: 1.414 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006347/0.8948, allocations: 0.9455 MB / 0.9986 GB, free: 452 kB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003741/0.8952, allocations: 109 kB / 0.9987 GB, free: 340 kB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.602e-05/0.8953, allocations: 39.44 kB / 0.9987 GB, free: 304 kB / 0.7481 GB Notification: Performance of SimCode: time 5.41e-07/0.8953, allocations: 4 kB / 0.9987 GB, free: 300 kB / 0.7481 GB Notification: Performance of Templates: time 0.01546/0.9108, allocations: 8.141 MB / 1.007 GB, free: 8.262 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