Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_trunk_cpp_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_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001454/0.001454, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 226.6 MB / 243.1 MB, free: 14.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007536/0.0007536, allocations: 102.1 kB / 295.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1806/0.1806, allocations: 44.84 MB / 392 MB, free: 9.293 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000228/0.0002281, allocations: 4 kB / 464.7 MB, free: 49.74 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08944/0.08968, allocations: 62.95 MB / 0.5153 GB, free: 2.746 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.002997/0.09271, allocations: 2.554 MB / 0.5178 GB, free: 176 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.1909/0.2837, allocations: 0.7274 MB / 0.5185 GB, free: 9.84 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.2839, allocations: 5.031 kB / 0.5185 GB, free: 9.84 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.2841, allocations: 46.42 kB / 0.5186 GB, free: 9.82 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001686/0.2842, allocations: 81.19 kB / 0.5187 GB, free: 9.785 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002569/0.2845, allocations: 82.12 kB / 0.5187 GB, free: 9.785 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004375/0.2849, allocations: 425.9 kB / 0.5191 GB, free: 9.684 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002488/0.2852, allocations: 122.7 kB / 0.5193 GB, free: 9.668 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002891/0.2855, allocations: 158.2 kB / 0.5194 GB, free: 9.637 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002329/0.2857, allocations: 168.6 kB / 0.5196 GB, free: 9.602 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.164e-05/0.2858, allocations: 20.59 kB / 0.5196 GB, free: 9.602 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.021e-05/0.2859, allocations: 29.62 kB / 0.5196 GB, free: 9.594 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.193e-05/0.286, allocations: 64.22 kB / 0.5197 GB, free: 9.582 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.357e-05/0.286, allocations: 90.11 kB / 0.5198 GB, free: 9.539 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004585/0.2865, allocations: 347.6 kB / 0.5201 GB, free: 9.504 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2865, allocations: 1.031 kB / 0.5201 GB, free: 9.504 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2865, allocations: 0 / 0.5201 GB, free: 9.504 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.2865, allocations: 0 / 0.5201 GB, free: 9.504 MB / 346.7 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.001232/0.2878, allocations: 0.6425 MB / 0.5207 GB, free: 9.035 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2878, allocations: 14.34 kB / 0.5207 GB, free: 9.031 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002288/0.2881, allocations: 59.91 kB / 0.5208 GB, free: 9.004 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002712/0.2883, allocations: 279.3 kB / 0.5211 GB, free: 8.773 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.746e-05/0.2884, allocations: 28.77 kB / 0.5211 GB, free: 8.773 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.524e-05/0.2884, allocations: 38.56 kB / 0.5211 GB, free: 8.773 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006066/0.2891, allocations: 343 kB / 0.5215 GB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.2891, allocations: 5.078 kB / 0.5215 GB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.319e-05/0.2891, allocations: 15.78 kB / 0.5215 GB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.2891, allocations: 8.688 kB / 0.5215 GB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006308/0.2898, allocations: 313.9 kB / 0.5218 GB, free: 8.715 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002037/0.2918, allocations: 1.353 MB / 0.5231 GB, free: 8.105 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005056/0.2923, allocations: 276.7 kB / 0.5234 GB, free: 8.074 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000272/0.2926, allocations: 163.6 kB / 0.5235 GB, free: 8.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.2927, allocations: 10.39 kB / 0.5235 GB, free: 8.016 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.614e-05/0.2927, allocations: 36.81 kB / 0.5236 GB, free: 7.973 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 1.924e-06/0.2927, allocations: 3.938 kB / 0.5236 GB, free: 7.969 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007827/0.2935, allocations: 390.4 kB / 0.524 GB, free: 7.816 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.188e-05/0.2935, allocations: 60.3 kB / 0.524 GB, free: 7.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002421/0.2938, allocations: 266.6 kB / 0.5243 GB, free: 7.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.2938, allocations: 30.73 kB / 0.5243 GB, free: 7.555 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.683e-05/0.2939, allocations: 206 kB / 0.5245 GB, free: 7.379 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.602e-05/0.2939, allocations: 116.7 kB / 0.5246 GB, free: 7.289 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.637e-05/0.294, allocations: 10.34 kB / 0.5246 GB, free: 7.281 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.337e-05/0.294, allocations: 347.5 kB / 0.5249 GB, free: 6.949 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002333/0.2943, allocations: 105.5 kB / 0.525 GB, free: 6.918 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.2945, allocations: 177.7 kB / 0.5252 GB, free: 6.805 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002534/0.2948, allocations: 122.4 kB / 0.5253 GB, free: 6.758 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2948, allocations: 4 kB / 0.5253 GB, free: 6.754 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006132/0.2954, allocations: 373.2 kB / 0.5257 GB, free: 6.598 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.2955, allocations: 10.97 kB / 0.5257 GB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.2955, allocations: 2.109 kB / 0.5257 GB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.2955, allocations: 3.812 kB / 0.5257 GB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004623/0.296, allocations: 107.6 kB / 0.5258 GB, free: 6.586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.296, allocations: 7.922 kB / 0.5258 GB, free: 6.582 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002621/0.2963, allocations: 37.59 kB / 0.5258 GB, free: 6.562 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.043e-05/0.2963, allocations: 20.73 kB / 0.5259 GB, free: 6.555 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001223/0.2964, allocations: 147.8 kB / 0.526 GB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.407e-05/0.2965, allocations: 30.61 kB / 0.526 GB, free: 6.398 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006059/0.2971, allocations: 334.9 kB / 0.5264 GB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.2971, allocations: 7.938 kB / 0.5264 GB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.2971, allocations: 4 kB / 0.5264 GB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2971, allocations: 2.734 kB / 0.5264 GB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003972/0.2975, allocations: 403.4 kB / 0.5268 GB, free: 5.961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2975, allocations: 3.156 kB / 0.5268 GB, free: 5.961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003997/0.2979, allocations: 85.33 kB / 0.5268 GB, free: 5.957 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.298, allocations: 6.156 kB / 0.5268 GB, free: 5.953 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.298, allocations: 5.906 kB / 0.5269 GB, free: 5.949 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.298, allocations: 3.578 kB / 0.5269 GB, free: 5.949 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.298, allocations: 0 / 0.5269 GB, free: 5.949 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007867/0.2988, allocations: 0.5302 MB / 0.5274 GB, free: 5.656 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.269e-05/0.2989, allocations: 129.8 kB / 0.5275 GB, free: 5.531 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.83e-05/0.2989, allocations: 7.062 kB / 0.5275 GB, free: 5.527 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.2992, allocations: 14.66 kB / 0.5275 GB, free: 5.523 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.678e-05/0.2992, allocations: 21.83 kB / 0.5275 GB, free: 5.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.2992, allocations: 6.188 kB / 0.5275 GB, free: 5.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001573/0.2994, allocations: 192.8 kB / 0.5277 GB, free: 5.402 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2994, allocations: 0 / 0.5277 GB, free: 5.402 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003301/0.2997, allocations: 91 kB / 0.5278 GB, free: 5.383 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.024e-05/0.2998, allocations: 108.2 kB / 0.5279 GB, free: 5.277 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005321/0.3004, allocations: 287.3 kB / 0.5282 GB, free: 5.191 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3004, allocations: 4.125 kB / 0.5282 GB, free: 5.188 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002396/0.3006, allocations: 137.5 kB / 0.5283 GB, free: 5.148 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/0.301, allocations: 33.44 kB / 0.5284 GB, free: 5.129 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.3022, allocations: 0.974 MB / 0.5293 GB, free: 4.512 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001967/0.3024, allocations: 0.7839 MB / 0.5301 GB, free: 3.812 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.3026, allocations: 34.08 kB / 0.5301 GB, free: 3.801 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3026, allocations: 0 / 0.5301 GB, free: 3.801 MB / 346.7 MB Notification: Performance of Templates: time 0.006283/0.3089, allocations: 3.836 MB / 0.5339 GB, free: 3.43 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches