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.001577/0.001577, allocations: 120.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001949/0.001949, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2184/0.2184, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 79.88 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3377, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004199/0.3419, allocations: 3.003 MB / 0.5334 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.3435, allocations: 0.7832 MB / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002674/0.3438, allocations: 9.875 kB / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002215/0.344, allocations: 64.97 kB / 0.5343 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000307/0.3444, allocations: 96.92 kB / 0.5344 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003758/0.3447, allocations: 115 kB / 0.5345 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006407/0.3454, allocations: 474.7 kB / 0.5349 GB, free: 9.875 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000266/0.3457, allocations: 160.6 kB / 0.5351 GB, free: 9.773 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000347/0.346, allocations: 180.4 kB / 0.5353 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002968/0.3463, allocations: 211.4 kB / 0.5355 GB, free: 9.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.42e-05/0.3464, allocations: 39.88 kB / 0.5355 GB, free: 9.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.849e-05/0.3465, allocations: 40.84 kB / 0.5355 GB, free: 9.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.939e-05/0.3466, allocations: 90.45 kB / 0.5356 GB, free: 9.441 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001909/0.3468, allocations: 197.4 kB / 0.5358 GB, free: 9.305 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005326/0.3473, allocations: 481.6 kB / 0.5363 GB, free: 8.945 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3473, allocations: 0 / 0.5363 GB, free: 8.945 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3474, allocations: 0 / 0.5363 GB, free: 8.945 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.3474, allocations: 1.094 kB / 0.5363 GB, free: 8.945 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.001417/0.3488, allocations: 0.7119 MB / 0.537 GB, free: 8.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.3488, allocations: 10.09 kB / 0.537 GB, free: 8.34 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.791e-05/0.3489, allocations: 82.64 kB / 0.537 GB, free: 8.262 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002623/0.3492, allocations: 58.17 kB / 0.5371 GB, free: 8.234 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004886/0.3497, allocations: 294.5 kB / 0.5374 GB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.207e-05/0.3498, allocations: 32.62 kB / 0.5374 GB, free: 7.926 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.045e-05/0.3498, allocations: 37.5 kB / 0.5375 GB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006556/0.3505, allocations: 342.7 kB / 0.5378 GB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.3505, allocations: 1.375 kB / 0.5378 GB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.521e-05/0.3506, allocations: 18.64 kB / 0.5378 GB, free: 7.695 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.3506, allocations: 9.25 kB / 0.5378 GB, free: 7.695 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006288/0.3512, allocations: 300.9 kB / 0.5381 GB, free: 7.559 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002238/0.3535, allocations: 1.34 MB / 0.5394 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006313/0.3541, allocations: 284 kB / 0.5397 GB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003388/0.3545, allocations: 159.1 kB / 0.5398 GB, free: 6.223 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.367e-05/0.3545, allocations: 3.281 kB / 0.5398 GB, free: 6.223 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.3546, allocations: 41.5 kB / 0.5399 GB, free: 6.176 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 3.306e-06/0.3546, allocations: 0 / 0.5399 GB, free: 6.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.001021/0.3556, allocations: 380.3 kB / 0.5402 GB, free: 5.984 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.154e-05/0.3557, allocations: 59.56 kB / 0.5403 GB, free: 5.918 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003643/0.356, allocations: 264.2 kB / 0.5405 GB, free: 5.738 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.102e-05/0.3561, allocations: 34.86 kB / 0.5406 GB, free: 5.699 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.3563, allocations: 202.5 kB / 0.5408 GB, free: 5.516 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.3564, allocations: 124.7 kB / 0.5409 GB, free: 5.406 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.3565, allocations: 75.61 kB / 0.541 GB, free: 5.352 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3567, allocations: 345.3 kB / 0.5413 GB, free: 5.012 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002651/0.357, allocations: 99.05 kB / 0.5414 GB, free: 4.969 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003261/0.3573, allocations: 178.2 kB / 0.5416 GB, free: 4.836 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005697/0.3579, allocations: 290.5 kB / 0.5418 GB, free: 4.652 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.3579, allocations: 3.938 kB / 0.5418 GB, free: 4.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00071/0.3586, allocations: 367.3 kB / 0.5422 GB, free: 4.461 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.3587, allocations: 11.53 kB / 0.5422 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.3587, allocations: 1.438 kB / 0.5422 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.3587, allocations: 4.625 kB / 0.5422 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004994/0.3592, allocations: 114.3 kB / 0.5423 GB, free: 4.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.3592, allocations: 4.781 kB / 0.5423 GB, free: 4.418 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002953/0.3595, allocations: 40.03 kB / 0.5424 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.52e-05/0.3596, allocations: 14.12 kB / 0.5424 GB, free: 4.387 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.0001912/0.3598, allocations: 155.6 kB / 0.5425 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.38e-05/0.3598, allocations: 30.44 kB / 0.5425 GB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007683/0.3606, allocations: 334.2 kB / 0.5429 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.3606, allocations: 3.594 kB / 0.5429 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3606, allocations: 1.062 kB / 0.5429 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3606, allocations: 0 / 0.5429 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005936/0.3612, allocations: 409.8 kB / 0.5433 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.3613, allocations: 1.188 kB / 0.5433 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000423/0.3617, allocations: 76.55 kB / 0.5433 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.788e-06/0.3617, allocations: 9.938 kB / 0.5433 GB, free: 3.633 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.3617, allocations: 6.156 kB / 0.5433 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.3617, allocations: 5.156 kB / 0.5433 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3618, allocations: 0 / 0.5433 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008819/0.3626, allocations: 0.5124 MB / 0.5439 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001444/0.3628, allocations: 124.3 kB / 0.544 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.356e-05/0.3628, allocations: 5.281 kB / 0.544 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002276/0.3631, allocations: 18.14 kB / 0.544 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.17e-05/0.3632, allocations: 20.75 kB / 0.544 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.3632, allocations: 10.66 kB / 0.544 GB, free: 3.141 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002038/0.3634, allocations: 190.7 kB / 0.5442 GB, free: 3.008 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3634, allocations: 0 / 0.5442 GB, free: 3.008 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003986/0.3638, allocations: 91.59 kB / 0.5443 GB, free: 2.988 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.001146/0.365, allocations: 1.061 MB / 0.5453 GB, free: 2.121 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006014/0.3656, allocations: 277.4 kB / 0.5456 GB, free: 1.891 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3656, allocations: 4.438 kB / 0.5456 GB, free: 1.887 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002497/0.3658, allocations: 143.8 kB / 0.5457 GB, free: 1.746 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003644/0.3662, allocations: 36.44 kB / 0.5458 GB, free: 1.711 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004194/0.3704, allocations: 3.148 MB / 0.5488 GB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.3708, allocations: 0.7874 MB / 0.5496 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001828/0.371, allocations: 42.94 kB / 0.5497 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001864/0.3712, allocations: 107.4 kB / 0.5498 GB, free: 13.48 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3712, allocations: 0 / 0.5498 GB, free: 13.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02729/0.3985, allocations: 5.726 MB / 0.5553 GB, free: 7.871 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.419/8.817, allocations: 18.62 kB / 0.5554 GB, free: 7.855 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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