Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.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: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001211/0.001211, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2083/0.2083, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 79.86 kB / 480.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.2882, allocations: 62.42 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004174/0.2924, allocations: 3.014 MB / 0.5334 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.2939, allocations: 0.7918 MB / 0.5342 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001763/0.2941, allocations: 5.5 kB / 0.5342 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.2943, allocations: 52.89 kB / 0.5343 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002122/0.2945, allocations: 102 kB / 0.5344 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003306/0.2948, allocations: 118.8 kB / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005146/0.2954, allocations: 478 kB / 0.5349 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002945/0.2957, allocations: 148.1 kB / 0.5351 GB, free: 9.766 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003648/0.296, allocations: 187.9 kB / 0.5353 GB, free: 9.656 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002886/0.2963, allocations: 204.5 kB / 0.5355 GB, free: 9.512 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.69e-05/0.2964, allocations: 39.69 kB / 0.5355 GB, free: 9.512 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.2965, allocations: 45.38 kB / 0.5355 GB, free: 9.508 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.218e-05/0.2966, allocations: 94.02 kB / 0.5356 GB, free: 9.426 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002025/0.2968, allocations: 205.4 kB / 0.5358 GB, free: 9.281 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005095/0.2973, allocations: 473.6 kB / 0.5363 GB, free: 8.926 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2973, allocations: 1.031 kB / 0.5363 GB, free: 8.926 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2973, allocations: 0 / 0.5363 GB, free: 8.926 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.2974, allocations: 0 / 0.5363 GB, free: 8.926 MB / 398.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.001415/0.2988, allocations: 0.7051 MB / 0.537 GB, free: 8.328 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.2988, allocations: 9.406 kB / 0.537 GB, free: 8.328 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.369e-05/0.2989, allocations: 74.59 kB / 0.537 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002636/0.2992, allocations: 54.23 kB / 0.5371 GB, free: 8.234 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004544/0.2997, allocations: 294.7 kB / 0.5374 GB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.805e-05/0.2997, allocations: 32.72 kB / 0.5374 GB, free: 7.926 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.187e-05/0.2998, allocations: 41 kB / 0.5374 GB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006378/0.3004, allocations: 347.3 kB / 0.5378 GB, free: 7.703 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.3004, allocations: 1.375 kB / 0.5378 GB, free: 7.703 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.3005, allocations: 15.12 kB / 0.5378 GB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.3005, allocations: 9.406 kB / 0.5378 GB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000636/0.3011, allocations: 303.4 kB / 0.5381 GB, free: 7.551 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002213/0.3034, allocations: 1.336 MB / 0.5394 GB, free: 6.445 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005043/0.3039, allocations: 280.3 kB / 0.5397 GB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002889/0.3042, allocations: 159.2 kB / 0.5398 GB, free: 6.223 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.972e-05/0.3042, allocations: 3.656 kB / 0.5398 GB, free: 6.223 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.3043, allocations: 36.88 kB / 0.5398 GB, free: 6.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 1.814e-06/0.3043, allocations: 4 kB / 0.5399 GB, free: 6.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008204/0.3051, allocations: 380.7 kB / 0.5402 GB, free: 5.984 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.3051, allocations: 59.66 kB / 0.5403 GB, free: 5.918 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.3054, allocations: 259.7 kB / 0.5405 GB, free: 5.742 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.98e-05/0.3054, allocations: 31.42 kB / 0.5406 GB, free: 5.707 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.3056, allocations: 206 kB / 0.5407 GB, free: 5.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.131e-05/0.3056, allocations: 116.9 kB / 0.5409 GB, free: 5.418 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/0.3058, allocations: 78 kB / 0.5409 GB, free: 5.359 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.3059, allocations: 341.7 kB / 0.5413 GB, free: 5.023 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000248/0.3061, allocations: 102.9 kB / 0.5414 GB, free: 4.977 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002848/0.3064, allocations: 174.5 kB / 0.5415 GB, free: 4.848 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005249/0.307, allocations: 289.4 kB / 0.5418 GB, free: 4.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.307, allocations: 4.906 kB / 0.5418 GB, free: 4.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007011/0.3077, allocations: 362.5 kB / 0.5421 GB, free: 4.477 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.3077, allocations: 5.719 kB / 0.5422 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.3077, allocations: 6.5 kB / 0.5422 GB, free: 4.473 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.3078, allocations: 7.25 kB / 0.5422 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005122/0.3083, allocations: 107.2 kB / 0.5423 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.3083, allocations: 7.812 kB / 0.5423 GB, free: 4.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002833/0.3086, allocations: 40.27 kB / 0.5423 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.061e-05/0.3086, allocations: 14.78 kB / 0.5423 GB, free: 4.402 MB / 398.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.0001467/0.3088, allocations: 159 kB / 0.5425 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.93e-05/0.3088, allocations: 29.75 kB / 0.5425 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006545/0.3095, allocations: 326.9 kB / 0.5428 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.341e-06/0.3095, allocations: 4.562 kB / 0.5428 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3095, allocations: 0 / 0.5428 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.3095, allocations: 3.984 kB / 0.5428 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004479/0.31, allocations: 405.8 kB / 0.5432 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.31, allocations: 1.156 kB / 0.5432 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000434/0.3104, allocations: 76.56 kB / 0.5433 GB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.3105, allocations: 6.594 kB / 0.5433 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.227e-05/0.3105, allocations: 5.469 kB / 0.5433 GB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.3105, allocations: 5.219 kB / 0.5433 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3105, allocations: 3.984 kB / 0.5433 GB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008999/0.3114, allocations: 0.512 MB / 0.5438 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.3115, allocations: 120.4 kB / 0.5439 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.269e-05/0.3116, allocations: 13.12 kB / 0.5439 GB, free: 3.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.3118, allocations: 13.83 kB / 0.544 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.022e-05/0.3119, allocations: 21.41 kB / 0.544 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.87e-05/0.3119, allocations: 13.97 kB / 0.544 GB, free: 3.156 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001795/0.3121, allocations: 191.6 kB / 0.5442 GB, free: 3.023 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3121, allocations: 0 / 0.5442 GB, free: 3.023 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003693/0.3125, allocations: 90.84 kB / 0.5443 GB, free: 3.004 MB / 398.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.001098/0.3136, allocations: 1.065 MB / 0.5453 GB, free: 2.133 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005851/0.3142, allocations: 280.3 kB / 0.5456 GB, free: 1.891 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3142, allocations: 4.062 kB / 0.5456 GB, free: 1.887 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000257/0.3145, allocations: 139.8 kB / 0.5457 GB, free: 1.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.3148, allocations: 38 kB / 0.5457 GB, free: 1.715 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004034/0.3189, allocations: 3.129 MB / 0.5488 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/0.3192, allocations: 0.7874 MB / 0.5496 GB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001862/0.3194, allocations: 42.94 kB / 0.5496 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.3196, allocations: 103.4 kB / 0.5497 GB, free: 13.5 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3196, allocations: 0 / 0.5497 GB, free: 13.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02195/0.3416, allocations: 5.81 MB / 0.5554 GB, free: 7.801 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.213/8.555, allocations: 5.969 kB / 0.5554 GB, free: 7.797 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches