Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reluctance.abs_V_m|reluctance.abs_Phi|permeance.abs_V_m|permeance.abs_Phi|magFluxSource.gamma",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents") translateModel(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reluctance.abs_V_m|reluctance.abs_Phi|permeance.abs_V_m|permeance.abs_Phi|magFluxSource.gamma",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009862/0.0009863, allocations: 93 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001408/0.001409, allocations: 202.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.7 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2132/0.2132, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002665/0.0002666, allocations: 4 kB / 419.5 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1286, allocations: 63.56 MB / 483.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.00256/0.1312, allocations: 2.155 MB / 485.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001695/0.1329, allocations: 1.055 MB / 486.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.602e-05/0.133, allocations: 4 kB / 486.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003314/0.1334, allocations: 119.6 kB / 486.4 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002626/0.1337, allocations: 83.52 kB / 486.5 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008673/0.1345, allocations: 470.3 kB / 487 MB, free: 272 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002919/0.1348, allocations: 211.1 kB / 487.2 MB, free: 60 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009501/0.1358, allocations: 0.5032 MB / 487.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.136, allocations: 87.64 kB / 487.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.1361, allocations: 115.5 kB / 487.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.1362, allocations: 12 kB / 487.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002638/0.1364, allocations: 135.9 kB / 488 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.203e-05/0.1365, allocations: 35.84 kB / 488 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.1366, allocations: 129.1 kB / 488.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004316/0.137, allocations: 383 kB / 488.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.137, allocations: 0 / 488.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.137, allocations: 0 / 488.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.748e-06/0.1371, allocations: 0 / 488.5 MB, free: 14.65 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001179/0.1382, allocations: 0.5852 MB / 489.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.1383, allocations: 8.875 kB / 489.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003345/0.1386, allocations: 56.66 kB / 489.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.1388, allocations: 188 kB / 489.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.1388, allocations: 16.94 kB / 489.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.978e-05/0.1389, allocations: 28.31 kB / 489.4 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005943/0.1395, allocations: 303.7 kB / 489.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.1395, allocations: 3.906 kB / 489.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.1395, allocations: 8 kB / 489.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.1395, allocations: 8 kB / 489.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006039/0.1401, allocations: 253.6 kB / 490 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001465/0.1416, allocations: 0.9975 MB / 491 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005277/0.1422, allocations: 403.1 kB / 491.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003519/0.1425, allocations: 141.7 kB / 491.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001687/0.1427, allocations: 170.2 kB / 491.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.1427, allocations: 30.56 kB / 491.7 MB, free: 11.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.653e-06/0.1427, allocations: 0 / 491.7 MB, free: 11.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001249/0.144, allocations: 0.5327 MB / 492.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.327e-05/0.144, allocations: 81.11 kB / 492.3 MB, free: 10.53 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.1442, allocations: 139.9 kB / 492.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.1442, allocations: 29.7 kB / 492.5 MB, free: 10.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.196e-05/0.1443, allocations: 144 kB / 492.6 MB, free: 10.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.279e-05/0.1443, allocations: 71.08 kB / 492.7 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.459e-05/0.1444, allocations: 17.72 kB / 492.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.1445, allocations: 322.9 kB / 493 MB, free: 9.785 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002298/0.1447, allocations: 91.91 kB / 493.1 MB, free: 9.695 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002516/0.145, allocations: 137.8 kB / 493.3 MB, free: 9.539 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004735/0.1455, allocations: 228.6 kB / 493.5 MB, free: 9.297 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.1455, allocations: 4 kB / 493.5 MB, free: 9.293 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006375/0.1461, allocations: 298.8 kB / 493.8 MB, free: 8.988 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.1462, allocations: 4 kB / 493.8 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1462, allocations: 192 / 493.8 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000196/0.1464, allocations: 57.67 kB / 493.8 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001918/0.1466, allocations: 51.91 kB / 493.9 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001879/0.1485, allocations: 2.643 MB / 496.5 MB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001574/0.1487, allocations: 35.86 kB / 496.6 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.1487, allocations: 8 kB / 496.6 MB, free: 5.918 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 17 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001387/0.1488, allocations: 137.8 kB / 496.7 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.346e-05/0.1489, allocations: 15.84 kB / 496.7 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006563/0.1496, allocations: 290.7 kB / 497 MB, free: 5.465 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1496, allocations: 0 / 497 MB, free: 5.465 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1496, allocations: 4 kB / 497 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1496, allocations: 3.938 kB / 497 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/0.1507, allocations: 0.6693 MB / 497.7 MB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.1507, allocations: 0 / 497.7 MB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001913/0.1509, allocations: 39.97 kB / 497.7 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001194/0.1511, allocations: 45.7 kB / 497.8 MB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.672e-05/0.1511, allocations: 3.984 kB / 497.8 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001779/0.1529, allocations: 2.654 MB / 0.4887 GB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1529, allocations: 0 / 0.4887 GB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009387/0.1538, allocations: 0.5518 MB / 0.4892 GB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.887e-05/0.1539, allocations: 96.88 kB / 0.4893 GB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.1539, allocations: 11.94 kB / 0.4893 GB, free: 1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001905/0.1541, allocations: 27.97 kB / 0.4894 GB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.239e-05/0.1542, allocations: 19.92 kB / 0.4894 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.1542, allocations: 4 kB / 0.4894 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.798e-05/0.1543, allocations: 111.2 kB / 0.4895 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1543, allocations: 0 / 0.4895 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004543/0.1548, allocations: 71.78 kB / 0.4896 GB, free: 0.7695 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (magFluxSource.port_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 (15): * Single equations (assignments): 13 * 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,2,100.0%), (1,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.0002145/0.155, allocations: 131.2 kB / 0.4897 GB, free: 0.6328 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008679/0.1559, allocations: 437.1 kB / 0.4901 GB, free: 184 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1559, allocations: 384 / 0.4901 GB, free: 184 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004473/0.1563, allocations: 329.3 kB / 0.4904 GB, free: 15.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004129/0.1567, allocations: 19.98 kB / 0.4904 GB, free: 15.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.1578, allocations: 0.5852 MB / 0.491 GB, free: 15.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.1581, allocations: 0.7399 MB / 0.4917 GB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.666e-05/0.1582, allocations: 17.42 kB / 0.4917 GB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.999e-05/0.1582, allocations: 15.44 kB / 0.4918 GB, free: 14.39 MB / 382.1 MB Notification: Performance of SimCode: time 2.034e-06/0.1583, allocations: 0 / 0.4918 GB, free: 14.39 MB / 382.1 MB Notification: Performance of Templates: time 0.005114/0.1634, allocations: 2.165 MB / 0.4939 GB, free: 12.22 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & ./ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/QuasiStatic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches