Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|v.re|v.im",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection") translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|v.re|v.im",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 104.3 kB / 17.63 MB, free: 5.344 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.001016/0.001016, allocations: 192 kB / 18.56 MB, free: 4.434 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.357/1.357, allocations: 222.9 MB / 242.2 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.228/0.228, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 62.56 kB / 408.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1238, allocations: 60.82 MB / 469.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.008335/0.1321, allocations: 6.927 MB / 476.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004122/0.1363, allocations: 2.19 MB / 478.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005276/0.1368, allocations: 27.94 kB / 478.4 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002961/0.1398, allocations: 1.524 MB / 479.9 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002001/0.1418, allocations: 0.8425 MB / 480.8 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.1432, allocations: 0.5785 MB / 481.3 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00144/0.1447, allocations: 1.148 MB / 482.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001128/0.1458, allocations: 0.8161 MB / 483.3 MB, free: 252 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004949/0.1463, allocations: 478.1 kB / 483.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005247/0.1468, allocations: 0.599 MB / 484.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001219/0.147, allocations: 96 kB / 484.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005758/0.1476, allocations: 283.8 kB / 484.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001601/0.1477, allocations: 243 kB / 485 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004151/0.1481, allocations: 0.5558 MB / 485.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.1494, allocations: 1.44 MB / 487 MB, free: 12.56 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1494, allocations: 0 / 487 MB, free: 12.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1494, allocations: 0 / 487 MB, free: 12.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.1494, allocations: 0 / 487 MB, free: 12.56 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.003482/0.1529, allocations: 1.678 MB / 488.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.153, allocations: 8.031 kB / 488.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008891/0.1619, allocations: 1.326 MB / 490 MB, free: 9.496 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006965/0.1626, allocations: 0.5218 MB / 490.5 MB, free: 8.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.051e-05/0.1626, allocations: 94.34 kB / 490.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001575/0.1628, allocations: 123.9 kB / 490.7 MB, free: 8.715 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/0.1645, allocations: 1.145 MB / 491.9 MB, free: 7.543 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.066e-05/0.1646, allocations: 4 kB / 491.9 MB, free: 7.539 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001005/0.1647, allocations: 48 kB / 491.9 MB, free: 7.492 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.076e-05/0.1647, allocations: 32 kB / 492 MB, free: 7.461 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002023/0.1667, allocations: 1.364 MB / 493.3 MB, free: 6.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00631/0.1731, allocations: 4.681 MB / 498 MB, free: 1.121 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001589/0.1747, allocations: 0.9302 MB / 498.9 MB, free: 168 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005292/0.1752, allocations: 363.7 kB / 499.3 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.669e-05/0.1753, allocations: 102.1 kB / 499.4 MB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.1754, allocations: 47.56 kB / 499.4 MB, free: 15.63 MB / 382.1 MB Notification: Performance of pre-optimization done (n=89): time 2.955e-06/0.1754, allocations: 0 / 499.4 MB, free: 15.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=89): time 0.002069/0.1774, allocations: 1.187 MB / 0.4889 GB, free: 14.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.1775, allocations: 64.41 kB / 0.4889 GB, free: 14.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008212/0.1783, allocations: 0.7854 MB / 0.4897 GB, free: 13.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.876e-05/0.1784, allocations: 41.7 kB / 0.4897 GB, free: 13.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002819/0.1787, allocations: 459 kB / 0.4902 GB, free: 13.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.1789, allocations: 303.5 kB / 0.4905 GB, free: 12.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002673/0.1791, allocations: 182.9 kB / 0.4907 GB, free: 12.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.1793, allocations: 398.7 kB / 0.491 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005411/0.1799, allocations: 342.5 kB / 0.4914 GB, free: 11.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007016/0.1806, allocations: 0.5544 MB / 0.4919 GB, free: 11.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.1818, allocations: 0.9231 MB / 0.4928 GB, free: 10.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.705e-06/0.1819, allocations: 11.92 kB / 0.4928 GB, free: 10.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.001822/0.1837, allocations: 1.123 MB / 0.4939 GB, free: 8.996 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.1837, allocations: 8 kB / 0.4939 GB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.181e-05/0.1837, allocations: 4 kB / 0.4939 GB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002815/0.184, allocations: 73.61 kB / 0.494 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008895/0.1849, allocations: 235.8 kB / 0.4942 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002027/0.187, allocations: 2.84 MB / 0.497 GB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007603/0.1877, allocations: 146.3 kB / 0.4971 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-05/0.1878, allocations: 40 kB / 0.4972 GB, free: 5.375 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (133): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003576/0.1882, allocations: 253.6 kB / 0.4974 GB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/0.1883, allocations: 86.97 kB / 0.4975 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001831/0.1902, allocations: 1.099 MB / 0.4986 GB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.1902, allocations: 12 kB / 0.4986 GB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.1902, allocations: 0 / 0.4986 GB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.1902, allocations: 3.984 kB / 0.4986 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003522/0.1937, allocations: 2.692 MB / 0.5012 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.1938, allocations: 8 kB / 0.5012 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006757/0.1944, allocations: 171.8 kB / 0.5014 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002098/0.1947, allocations: 73.88 kB / 0.5014 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.307e-05/0.1947, allocations: 31.92 kB / 0.5015 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2402/0.4349, allocations: 2.814 MB / 0.5042 GB, free: 45.33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-05/0.435, allocations: 8.969 kB / 0.5042 GB, free: 45.33 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003302/0.4383, allocations: 1.46 MB / 0.5057 GB, free: 44.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004316/0.4388, allocations: 196.2 kB / 0.5058 GB, free: 44.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001466/0.4389, allocations: 28.36 kB / 0.5059 GB, free: 44.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006655/0.4396, allocations: 52.17 kB / 0.5059 GB, free: 44.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.4398, allocations: 78.86 kB / 0.506 GB, free: 44.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.379e-05/0.4399, allocations: 34.86 kB / 0.506 GB, free: 44.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009563/0.4409, allocations: 0.552 MB / 0.5066 GB, free: 44.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4409, allocations: 0 / 0.5066 GB, free: 44.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001384/0.4423, allocations: 287.1 kB / 0.5068 GB, free: 44.74 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (92): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004329/0.4427, allocations: 163.9 kB / 0.507 GB, free: 44.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002763/0.4455, allocations: 1.1 MB / 0.5081 GB, free: 44.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.4455, allocations: 2.594 kB / 0.5081 GB, free: 44.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.4466, allocations: 0.6201 MB / 0.5087 GB, free: 43.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008154/0.4474, allocations: 116.6 kB / 0.5088 GB, free: 43.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003221/0.4506, allocations: 1.784 MB / 0.5105 GB, free: 42.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005464/0.4512, allocations: 0.9884 MB / 0.5115 GB, free: 42 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006458/0.4518, allocations: 147.2 kB / 0.5116 GB, free: 41.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002298/0.4521, allocations: 77.89 kB / 0.5117 GB, free: 41.95 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4521, allocations: 0 / 0.5117 GB, free: 41.95 MB / 382.1 MB Notification: Performance of Templates: time 0.02323/0.4753, allocations: 10.4 MB / 0.5219 GB, free: 39.54 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/SerialConnection/SerialConnection.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches