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.001291/0.001291, allocations: 122.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00146/0.00146, allocations: 201.2 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.474/1.474, allocations: 227.4 MB / 247 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.2313/0.2313, allocations: 46.12 MB / 344.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0024/0.0024, allocations: 83.84 kB / 480.9 MB, free: 4.484 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3446, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004724/0.3494, allocations: 3.017 MB / 0.5336 GB, free: 11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.3509, allocations: 0.7854 MB / 0.5343 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.3511, allocations: 5.5 kB / 0.5343 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002028/0.3513, allocations: 56.89 kB / 0.5344 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000218/0.3515, allocations: 102 kB / 0.5345 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000344/0.3519, allocations: 118.8 kB / 0.5346 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005235/0.3524, allocations: 471 kB / 0.535 GB, free: 9.816 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002879/0.3527, allocations: 155.2 kB / 0.5352 GB, free: 9.719 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003204/0.3531, allocations: 188.3 kB / 0.5354 GB, free: 9.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002966/0.3534, allocations: 207.6 kB / 0.5356 GB, free: 9.461 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.187e-05/0.3534, allocations: 39.38 kB / 0.5356 GB, free: 9.461 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.3536, allocations: 45.34 kB / 0.5356 GB, free: 9.457 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.3537, allocations: 89.77 kB / 0.5357 GB, free: 9.379 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002061/0.3539, allocations: 205.5 kB / 0.5359 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005675/0.3545, allocations: 474.3 kB / 0.5364 GB, free: 8.883 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3545, allocations: 0 / 0.5364 GB, free: 8.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3545, allocations: 0 / 0.5364 GB, free: 8.883 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.3545, allocations: 1.031 kB / 0.5364 GB, free: 8.883 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.001345/0.3558, allocations: 0.7159 MB / 0.5371 GB, free: 8.273 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.3559, allocations: 9.406 kB / 0.5371 GB, free: 8.273 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.422e-05/0.356, allocations: 75 kB / 0.5372 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002394/0.3562, allocations: 58.11 kB / 0.5372 GB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000443/0.3567, allocations: 294.8 kB / 0.5375 GB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.216e-05/0.3567, allocations: 28.91 kB / 0.5375 GB, free: 7.871 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.219e-05/0.3568, allocations: 37.5 kB / 0.5376 GB, free: 7.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006765/0.3575, allocations: 355 kB / 0.5379 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.3575, allocations: 0 / 0.5379 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.756e-05/0.3575, allocations: 19.19 kB / 0.5379 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.3576, allocations: 9.531 kB / 0.5379 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006652/0.3582, allocations: 304.6 kB / 0.5382 GB, free: 7.488 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002349/0.3606, allocations: 1.34 MB / 0.5395 GB, free: 6.379 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005201/0.3611, allocations: 284.4 kB / 0.5398 GB, free: 6.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000311/0.3614, allocations: 155.1 kB / 0.5399 GB, free: 6.156 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.5e-05/0.3615, allocations: 7.703 kB / 0.5399 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.3615, allocations: 37.06 kB / 0.54 GB, free: 6.109 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 1.923e-06/0.3615, allocations: 4 kB / 0.54 GB, free: 6.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009112/0.3625, allocations: 377.3 kB / 0.5403 GB, free: 5.918 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.3625, allocations: 58.88 kB / 0.5404 GB, free: 5.852 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003058/0.3628, allocations: 263.8 kB / 0.5407 GB, free: 5.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.3629, allocations: 30.89 kB / 0.5407 GB, free: 5.637 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.363, allocations: 210.2 kB / 0.5409 GB, free: 5.445 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.3632, allocations: 125 kB / 0.541 GB, free: 5.336 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.3633, allocations: 76.17 kB / 0.5411 GB, free: 5.281 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.3635, allocations: 337.2 kB / 0.5414 GB, free: 4.949 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002478/0.3637, allocations: 103.2 kB / 0.5415 GB, free: 4.902 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003264/0.3641, allocations: 174.4 kB / 0.5417 GB, free: 4.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005413/0.3646, allocations: 293.8 kB / 0.5419 GB, free: 4.586 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.3646, allocations: 3.938 kB / 0.5419 GB, free: 4.582 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006854/0.3653, allocations: 363.4 kB / 0.5423 GB, free: 4.398 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3653, allocations: 4.781 kB / 0.5423 GB, free: 4.398 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3654, allocations: 2.469 kB / 0.5423 GB, free: 4.398 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.3654, allocations: 7.469 kB / 0.5423 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005104/0.3659, allocations: 103.9 kB / 0.5424 GB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.701e-05/0.3659, allocations: 7.422 kB / 0.5424 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003151/0.3663, allocations: 40.23 kB / 0.5425 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.658e-05/0.3663, allocations: 17.89 kB / 0.5425 GB, free: 4.328 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.0002308/0.3665, allocations: 155.8 kB / 0.5426 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.425e-05/0.3666, allocations: 30.59 kB / 0.5426 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008397/0.3675, allocations: 327.1 kB / 0.543 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.3675, allocations: 3.906 kB / 0.543 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.3675, allocations: 4 kB / 0.543 GB, free: 3.961 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.3675, allocations: 3.984 kB / 0.543 GB, free: 3.957 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007075/0.3682, allocations: 406 kB / 0.5434 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.3683, allocations: 1.219 kB / 0.5434 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005246/0.3688, allocations: 84.34 kB / 0.5434 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.676e-06/0.3688, allocations: 6.656 kB / 0.5434 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.063e-05/0.3689, allocations: 5.312 kB / 0.5435 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.3689, allocations: 1.219 kB / 0.5435 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.3689, allocations: 0 / 0.5435 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.3699, allocations: 0.5159 MB / 0.544 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.3701, allocations: 132.3 kB / 0.5441 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.535e-05/0.3702, allocations: 10.28 kB / 0.5441 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.3704, allocations: 13.7 kB / 0.5441 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.517e-05/0.3705, allocations: 20.91 kB / 0.5441 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.3705, allocations: 6.406 kB / 0.5441 GB, free: 3.078 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002392/0.3708, allocations: 190.4 kB / 0.5443 GB, free: 2.945 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3708, allocations: 0 / 0.5443 GB, free: 2.945 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004314/0.3712, allocations: 95.81 kB / 0.5444 GB, free: 2.922 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.001357/0.3726, allocations: 1.057 MB / 0.5454 GB, free: 2.059 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006649/0.3733, allocations: 286.2 kB / 0.5457 GB, free: 1.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.3733, allocations: 8 kB / 0.5457 GB, free: 1.777 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002826/0.3736, allocations: 135.8 kB / 0.5458 GB, free: 1.645 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/0.3739, allocations: 24.56 kB / 0.5459 GB, free: 1.621 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004725/0.3787, allocations: 3.151 MB / 0.5489 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004958/0.3792, allocations: 0.7874 MB / 0.5497 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000189/0.3794, allocations: 38.95 kB / 0.5498 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002151/0.3796, allocations: 111.4 kB / 0.5499 GB, free: 13.39 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3796, allocations: 0 / 0.5499 GB, free: 13.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03303/0.4126, allocations: 5.728 MB / 0.5555 GB, free: 7.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.656/9.069, allocations: 6.656 kB / 0.5555 GB, free: 7.766 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