Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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.FluxTubes.Shapes.FixedShape,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|signalSource.V_m|signalSource.Phi|cuboid.G_m|cuboid.A|hollowCylinderAxialFlux.G_m|hollowCylinderAxialFlux.A|hollowCylinderRadialFlux.G_m|hollowCylinderRadialFlux.A|genericFluxTube.G_m|genericFluxTube.A",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape") translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|signalSource.V_m|signalSource.Phi|cuboid.G_m|cuboid.A|hollowCylinderAxialFlux.G_m|hollowCylinderAxialFlux.A|hollowCylinderRadialFlux.G_m|hollowCylinderRadialFlux.A|genericFluxTube.G_m|genericFluxTube.A",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001399/0.001399, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001361, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2192/0.2192, allocations: 46.1 MB / 344.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001736/0.001736, allocations: 77.84 kB / 418.3 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1289, allocations: 62.43 MB / 480.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004161/0.1331, allocations: 2.494 MB / 483.2 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.1347, allocations: 0.8295 MB / 484 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.1349, allocations: 4 kB / 484 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002497/0.1352, allocations: 59.5 kB / 484.1 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000391/0.1356, allocations: 111.2 kB / 484.2 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003213/0.136, allocations: 99.75 kB / 484.3 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004286/0.1364, allocations: 354.7 kB / 484.6 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.1366, allocations: 96.97 kB / 484.7 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003141/0.1369, allocations: 143.5 kB / 484.9 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.1372, allocations: 159.3 kB / 485 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.636e-05/0.1372, allocations: 28 kB / 485.1 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.372e-05/0.1373, allocations: 32 kB / 485.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.161e-05/0.1374, allocations: 63.77 kB / 485.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.1376, allocations: 167.1 kB / 485.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003962/0.138, allocations: 362.7 kB / 485.7 MB, free: 324 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.138, allocations: 0 / 485.7 MB, free: 324 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.138, allocations: 0 / 485.7 MB, free: 324 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.138, allocations: 4 kB / 485.7 MB, free: 320 kB / 350.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.001233/0.1393, allocations: 0.6313 MB / 486.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.1393, allocations: 8.031 kB / 486.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002044/0.1395, allocations: 44.45 kB / 486.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003423/0.1399, allocations: 270.6 kB / 486.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.1399, allocations: 16.94 kB / 486.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.928e-05/0.14, allocations: 24.38 kB / 486.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005097/0.1405, allocations: 249.2 kB / 486.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.1405, allocations: 4 kB / 486.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.178e-05/0.1405, allocations: 12 kB / 486.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.1406, allocations: 4 kB / 486.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005214/0.1411, allocations: 238.1 kB / 487.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.1426, allocations: 0.8792 MB / 488 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005948/0.1432, allocations: 309.2 kB / 488.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002935/0.1436, allocations: 144.8 kB / 488.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.132e-05/0.1436, allocations: 4 kB / 488.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.1436, allocations: 34.56 kB / 488.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 2.274e-06/0.1436, allocations: 0 / 488.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.004606/0.1483, allocations: 1.262 MB / 489.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.134e-05/0.1483, allocations: 59.39 kB / 489.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/0.1486, allocations: 233 kB / 490.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.1486, allocations: 25.7 kB / 490.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.1488, allocations: 173.1 kB / 490.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.082e-05/0.1489, allocations: 102.5 kB / 490.4 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.796e-05/0.149, allocations: 57.61 kB / 490.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1491, allocations: 342.8 kB / 490.7 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002253/0.1494, allocations: 95.81 kB / 490.8 MB, free: 10.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002581/0.1496, allocations: 125.7 kB / 491 MB, free: 10.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004687/0.1501, allocations: 236.1 kB / 491.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1501, allocations: 0 / 491.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001804/0.1519, allocations: 0.5411 MB / 491.7 MB, free: 9.902 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.152, allocations: 8 kB / 491.7 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.152, allocations: 0 / 491.7 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001699/0.1537, allocations: 319.1 kB / 492 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.1539, allocations: 27.97 kB / 492.1 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008283/0.1622, allocations: 6.851 MB / 498.9 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/0.1624, allocations: 19.84 kB / 498.9 MB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.446e-05/0.1625, allocations: 8 kB / 499 MB, free: 2.094 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,5), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002118/0.1627, allocations: 153.2 kB / 499.1 MB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.54e-05/0.1628, allocations: 31.56 kB / 499.1 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/0.1646, allocations: 0.5479 MB / 499.7 MB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.1646, allocations: 4 kB / 499.7 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.1646, allocations: 3.938 kB / 499.7 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1646, allocations: 3.938 kB / 499.7 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000477/0.1651, allocations: 353.3 kB / 0.4883 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.1651, allocations: 3.938 kB / 0.4883 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.1652, allocations: 24.11 kB / 0.4883 GB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001663/0.1669, allocations: 319.1 kB / 0.4887 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.49e-05/0.167, allocations: 8 kB / 0.4887 GB, free: 0.5781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008782/0.1757, allocations: 6.912 MB / 0.4954 GB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1758, allocations: 0 / 0.4954 GB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001967/0.1778, allocations: 0.6195 MB / 0.496 GB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001444/0.1779, allocations: 112.6 kB / 0.4961 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.508e-05/0.178, allocations: 4 kB / 0.4961 GB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/0.1782, allocations: 11.98 kB / 0.4961 GB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.1784, allocations: 31.95 kB / 0.4962 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/0.1784, allocations: 8 kB / 0.4962 GB, free: 8.273 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002203/0.1786, allocations: 170 kB / 0.4963 GB, free: 8.105 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1787, allocations: 4 kB / 0.4963 GB, free: 8.102 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006997/0.1794, allocations: 123.8 kB / 0.4965 GB, free: 7.98 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (11): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,4), (2,4), (2,4), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001916/0.1796, allocations: 95.25 kB / 0.4965 GB, free: 7.879 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001458/0.181, allocations: 0.7565 MB / 0.4973 GB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.1811, allocations: 0 / 0.4973 GB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001317/0.1824, allocations: 0.7406 MB / 0.498 GB, free: 6.277 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.1827, allocations: 28.73 kB / 0.498 GB, free: 6.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.1841, allocations: 0.5894 MB / 0.4986 GB, free: 5.625 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008164/0.185, allocations: 0.7717 MB / 0.4994 GB, free: 4.828 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.795e-05/0.185, allocations: 23.42 kB / 0.4994 GB, free: 4.805 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.185, allocations: 0 / 0.4994 GB, free: 4.805 MB / 382.1 MB Notification: Performance of Templates: time 0.2118/0.3969, allocations: 8.33 MB / 0.5075 GB, free: 40.58 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & ./ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches