Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001087/0.001087, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00165/0.001651, allocations: 177.2 kB / 16.58 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.157/2.157, allocations: 205.4 MB / 222.8 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4996/0.4996, allocations: 43.57 MB / 314.6 MB, free: 8.816 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004968/0.0004972, allocations: 12 kB / 384 MB, free: 7.984 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1421, allocations: 58.86 MB / 442.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.006438/0.1486, allocations: 5.955 MB / 448.8 MB, free: 7.035 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004056/0.1527, allocations: 2.024 MB / 450.8 MB, free: 5.004 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005382/0.1533, allocations: 20 kB / 450.8 MB, free: 4.984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005229/0.1538, allocations: 238.6 kB / 451.1 MB, free: 4.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001621/0.1554, allocations: 0.7233 MB / 451.8 MB, free: 4.023 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001069/0.1565, allocations: 478.9 kB / 452.2 MB, free: 3.555 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001222/0.1577, allocations: 1.073 MB / 453.3 MB, free: 2.477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002407/0.1601, allocations: 1.299 MB / 454.6 MB, free: 1.141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006855/0.1608, allocations: 402.3 kB / 455 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005425/0.1614, allocations: 0.5212 MB / 455.5 MB, free: 228 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.812e-05/0.1615, allocations: 48 kB / 455.6 MB, free: 180 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.283/0.4445, allocations: 227.4 kB / 455.8 MB, free: 37.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004841/0.445, allocations: 190.7 kB / 456 MB, free: 37.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005547/0.4456, allocations: 216.5 kB / 456.2 MB, free: 37.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001356/0.447, allocations: 1.104 MB / 457.3 MB, free: 37.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.447, allocations: 2.312 kB / 457.3 MB, free: 37.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.447, allocations: 0 / 457.3 MB, free: 37.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.447, allocations: 0 / 457.3 MB, free: 37.58 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 316 * Number of variables: 316 Notification: Performance of Generate backend data structure: time 0.00313/0.4501, allocations: 1.488 MB / 458.8 MB, free: 36.9 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.4502, allocations: 9.062 kB / 458.8 MB, free: 36.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008933/0.4591, allocations: 1.441 MB / 460.2 MB, free: 36.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007814/0.4599, allocations: 0.5324 MB / 460.8 MB, free: 36.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.902e-05/0.46, allocations: 90.61 kB / 460.9 MB, free: 36.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/0.4602, allocations: 123.8 kB / 461 MB, free: 36.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001837/0.462, allocations: 1.18 MB / 462.2 MB, free: 36.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.493e-05/0.4621, allocations: 9.625 kB / 462.2 MB, free: 36.49 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.4622, allocations: 52.59 kB / 462.2 MB, free: 36.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.315e-05/0.4622, allocations: 30.91 kB / 462.3 MB, free: 36.49 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001982/0.4642, allocations: 1.435 MB / 463.7 MB, free: 36.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005723/0.4699, allocations: 4.868 MB / 468.6 MB, free: 34.65 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.4714, allocations: 1.188 MB / 469.7 MB, free: 34.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000479/0.4719, allocations: 377 kB / 470.1 MB, free: 34.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001039/0.472, allocations: 99.69 kB / 470.2 MB, free: 34.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.472, allocations: 43.06 kB / 470.3 MB, free: 34.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 2.455e-06/0.472, allocations: 0 / 470.3 MB, free: 34.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=91): time 0.001789/0.4738, allocations: 1.209 MB / 471.5 MB, free: 33.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.4739, allocations: 68.94 kB / 471.5 MB, free: 33.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007291/0.4746, allocations: 0.7892 MB / 472.3 MB, free: 33.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.298e-05/0.4746, allocations: 42.94 kB / 472.4 MB, free: 33.54 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.4748, allocations: 484.5 kB / 472.8 MB, free: 33.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001475/0.475, allocations: 316.5 kB / 473.1 MB, free: 33.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.603e-05/0.4751, allocations: 19.38 kB / 473.2 MB, free: 33.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.4752, allocations: 403.2 kB / 473.6 MB, free: 32.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005056/0.4757, allocations: 347.3 kB / 473.9 MB, free: 32.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006144/0.4763, allocations: 0.6076 MB / 474.5 MB, free: 32.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005986/0.4769, allocations: 430.6 kB / 474.9 MB, free: 32.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.4769, allocations: 3.344 kB / 474.9 MB, free: 32.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.001643/0.4786, allocations: 1.174 MB / 476.1 MB, free: 32.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.4786, allocations: 8.75 kB / 476.1 MB, free: 32.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.4786, allocations: 6.312 kB / 476.1 MB, free: 32.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002433/0.4789, allocations: 72.31 kB / 476.2 MB, free: 32.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008649/0.4797, allocations: 260.4 kB / 476.4 MB, free: 32.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00143/0.4812, allocations: 2.632 MB / 479.1 MB, free: 29.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007523/0.4819, allocations: 160.4 kB / 479.2 MB, free: 29.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.68e-05/0.482, allocations: 52.94 kB / 479.3 MB, free: 29.68 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (141): * Single equations (assignments): 139 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003341/0.4824, allocations: 251.6 kB / 479.5 MB, free: 29.56 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.4825, allocations: 88.78 kB / 479.6 MB, free: 29.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001561/0.484, allocations: 1.12 MB / 480.7 MB, free: 29.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.4841, allocations: 14.14 kB / 480.7 MB, free: 29.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.4841, allocations: 3.25 kB / 480.7 MB, free: 29.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.4841, allocations: 6.75 kB / 480.8 MB, free: 29.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002714/0.4868, allocations: 2.722 MB / 483.5 MB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.4868, allocations: 9.375 kB / 483.5 MB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006182/0.4874, allocations: 182.7 kB / 483.7 MB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001738/0.4876, allocations: 66.38 kB / 483.7 MB, free: 27.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.666e-05/0.4877, allocations: 28.06 kB / 483.8 MB, free: 27.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001291/0.489, allocations: 2.62 MB / 486.4 MB, free: 24.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.363e-06/0.489, allocations: 13.06 kB / 486.4 MB, free: 24.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.4908, allocations: 1.485 MB / 487.9 MB, free: 23.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002355/0.491, allocations: 209.4 kB / 488.1 MB, free: 23.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.4912, allocations: 31.23 kB / 488.1 MB, free: 23.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005398/0.4917, allocations: 56.62 kB / 488.2 MB, free: 23.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.4918, allocations: 86.92 kB / 488.3 MB, free: 23.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.958e-05/0.4919, allocations: 38.81 kB / 488.3 MB, free: 23.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006327/0.4925, allocations: 0.5523 MB / 488.8 MB, free: 23.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4925, allocations: 4 kB / 488.8 MB, free: 23.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009513/0.4935, allocations: 293.2 kB / 489.1 MB, free: 23.3 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 (94): * Single equations (assignments): 92 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002209/0.4937, allocations: 162.7 kB / 489.3 MB, free: 23.19 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.4954, allocations: 1.095 MB / 490.4 MB, free: 22.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.4955, allocations: 1.062 kB / 490.4 MB, free: 22.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008814/0.4963, allocations: 0.6225 MB / 491 MB, free: 22.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008301/0.4972, allocations: 119.4 kB / 491.1 MB, free: 22.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003411/0.5006, allocations: 2.169 MB / 493.3 MB, free: 20.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005328/0.5012, allocations: 0.9948 MB / 494.3 MB, free: 20.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006685/0.5018, allocations: 152.5 kB / 494.4 MB, free: 20.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002398/0.5021, allocations: 79.41 kB / 494.5 MB, free: 20.12 MB / 382.1 MB Notification: Performance of SimCode: time 1.051e-06/0.5021, allocations: 0 / 494.5 MB, free: 20.12 MB / 382.1 MB Notification: Performance of Templates: time 0.02966/0.5318, allocations: 9.539 MB / 0.4922 GB, free: 19.53 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/QuasiStatic/SinglePhase/SerialConnection/SerialConnection.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches