Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.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.Magnetic.FluxTubes.Shapes.Force,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|position.s|hollowCylinderAxialFlux.F_m|cuboidParallelFlux.F_m|cuboidOrthogonalFlux.F_m|hollowCylinderRadialFlux.F_m|leakageAroundPoles.F_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force") translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|position.s|hollowCylinderAxialFlux.F_m|cuboidParallelFlux.F_m|cuboidOrthogonalFlux.F_m|hollowCylinderRadialFlux.F_m|leakageAroundPoles.F_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00202/0.00202, allocations: 110.5 kB / 17.86 MB, free: 5.504 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.002839/0.002839, allocations: 201.9 kB / 18.78 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.126/2.126, allocations: 222.9 MB / 242.5 MB, free: 13.76 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.3846/0.3846, allocations: 44.18 MB / 336.8 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002213/0.002213, allocations: 61.45 kB / 408.4 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1953/0.1976, allocations: 60.83 MB / 469.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.007203/0.2048, allocations: 3.026 MB / 472.2 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002273/0.2072, allocations: 0.7167 MB / 472.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003458/0.2076, allocations: 11.94 kB / 472.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002817/0.2079, allocations: 35.7 kB / 473 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004996/0.2084, allocations: 91.3 kB / 473.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004773/0.2089, allocations: 95.84 kB / 473.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007626/0.2097, allocations: 446.5 kB / 473.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003892/0.2101, allocations: 148.7 kB / 473.7 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003893/0.2105, allocations: 167.4 kB / 473.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003958/0.2109, allocations: 199.1 kB / 474.1 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.494e-05/0.211, allocations: 24 kB / 474.1 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.376e-05/0.2111, allocations: 31.94 kB / 474.2 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.2113, allocations: 75.72 kB / 474.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002978/0.2116, allocations: 187 kB / 474.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005087/0.2121, allocations: 351.1 kB / 474.8 MB, free: 9.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.2121, allocations: 0 / 474.8 MB, free: 9.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2121, allocations: 0 / 474.8 MB, free: 9.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.2122, allocations: 4 kB / 474.8 MB, free: 9.203 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.002321/0.2145, allocations: 0.702 MB / 475.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.62e-05/0.2146, allocations: 12.03 kB / 475.5 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.2147, allocations: 40.47 kB / 475.5 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005767/0.2153, allocations: 287.5 kB / 475.8 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.382e-05/0.2154, allocations: 33.38 kB / 475.8 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/0.2155, allocations: 40.36 kB / 475.9 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.2166, allocations: 346.8 kB / 476.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/0.2167, allocations: 3.938 kB / 476.2 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.918e-05/0.2167, allocations: 16 kB / 476.2 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.2168, allocations: 8 kB / 476.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.2179, allocations: 303.8 kB / 476.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00389/0.2218, allocations: 1.341 MB / 477.9 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009483/0.2228, allocations: 284.8 kB / 478.2 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000504/0.2233, allocations: 157.3 kB / 478.3 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.228e-05/0.2234, allocations: 4.281 kB / 478.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.672e-05/0.2235, allocations: 42.83 kB / 478.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 5.249e-06/0.2235, allocations: 0 / 478.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.001561/0.2251, allocations: 375.4 kB / 478.7 MB, free: 5.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/0.2252, allocations: 59.34 kB / 478.8 MB, free: 4.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005/0.2257, allocations: 262.7 kB / 479 MB, free: 4.691 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.338e-05/0.2258, allocations: 29.7 kB / 479.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002306/0.226, allocations: 203.9 kB / 479.3 MB, free: 4.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.2262, allocations: 122.2 kB / 479.4 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002059/0.2264, allocations: 82.02 kB / 479.5 MB, free: 4.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.2266, allocations: 338.8 kB / 479.8 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004053/0.227, allocations: 100.8 kB / 479.9 MB, free: 3.805 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004905/0.2275, allocations: 175.5 kB / 480.1 MB, free: 3.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008935/0.2284, allocations: 292.6 kB / 480.3 MB, free: 3.301 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.2285, allocations: 4 kB / 480.3 MB, free: 3.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00119/0.2297, allocations: 362 kB / 480.7 MB, free: 2.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.2297, allocations: 4 kB / 480.7 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.2297, allocations: 8.156 kB / 480.7 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.2298, allocations: 4 kB / 480.7 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008275/0.2306, allocations: 103.8 kB / 480.8 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.792e-05/0.2306, allocations: 4 kB / 480.8 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004992/0.2312, allocations: 43.52 kB / 480.9 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.518e-05/0.2312, allocations: 19.98 kB / 480.9 MB, free: 2.754 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (47): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002819/0.2315, allocations: 149.7 kB / 481 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.2316, allocations: 31.62 kB / 481.1 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/0.2328, allocations: 324.3 kB / 481.4 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.2328, allocations: 4 kB / 481.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.2328, allocations: 4 kB / 481.4 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.2328, allocations: 3.984 kB / 481.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008546/0.2337, allocations: 405.1 kB / 481.8 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.2337, allocations: 0 / 481.8 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007422/0.2345, allocations: 79.88 kB / 481.9 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.028e-05/0.2345, allocations: 8 kB / 481.9 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.862e-05/0.2346, allocations: 4 kB / 481.9 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.2346, allocations: 0 / 481.9 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.2346, allocations: 4 kB / 481.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001516/0.2361, allocations: 0.5226 MB / 482.4 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.2364, allocations: 124.7 kB / 482.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.271e-05/0.2365, allocations: 19.97 kB / 482.5 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004039/0.2369, allocations: 12 kB / 482.6 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.237, allocations: 19.97 kB / 482.6 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-05/0.2371, allocations: 11.98 kB / 482.6 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003326/0.2374, allocations: 190 kB / 482.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.2375, allocations: 0 / 482.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007204/0.2382, allocations: 87.75 kB / 482.9 MB, free: 0.6836 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (position.s,position.v) * 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 (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001786/0.2384, allocations: 111.7 kB / 483 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009851/0.2394, allocations: 275.9 kB / 483.2 MB, free: 300 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.2394, allocations: 0 / 483.2 MB, free: 300 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004352/0.2399, allocations: 131.8 kB / 483.4 MB, free: 168 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007385/0.2406, allocations: 32.48 kB / 483.4 MB, free: 136 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002535/0.2432, allocations: 0.9295 MB / 484.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005247/0.2437, allocations: 0.7835 MB / 485.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002247/0.244, allocations: 31.42 kB / 485.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of SimCode: time 1.372e-06/0.244, allocations: 3.938 kB / 485.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of Templates: time 0.01023/0.2542, allocations: 3.872 MB / 489 MB, free: 10.47 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches