Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001922/0.001922, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002121/0.002122, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 247 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2356/0.2356, allocations: 46.12 MB / 344.4 MB, free: 11.47 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002457/0.002458, allocations: 79.88 kB / 480.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3119, allocations: 62.45 MB / 0.5306 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004995/0.317, allocations: 3.006 MB / 0.5335 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002383/0.3194, allocations: 0.7792 MB / 0.5343 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003907/0.3199, allocations: 9.469 kB / 0.5343 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002655/0.3201, allocations: 64.66 kB / 0.5344 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003677/0.3206, allocations: 97.33 kB / 0.5345 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004771/0.321, allocations: 119.7 kB / 0.5346 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007175/0.3218, allocations: 470.1 kB / 0.535 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003461/0.3221, allocations: 151.3 kB / 0.5352 GB, free: 9.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004734/0.3226, allocations: 184.4 kB / 0.5353 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000353/0.323, allocations: 216.7 kB / 0.5356 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.376e-05/0.3231, allocations: 38.5 kB / 0.5356 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001219/0.3232, allocations: 41.34 kB / 0.5356 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.66e-05/0.3233, allocations: 86.39 kB / 0.5357 GB, free: 9.617 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002141/0.3235, allocations: 201.8 kB / 0.5359 GB, free: 9.477 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00062/0.3242, allocations: 477.2 kB / 0.5364 GB, free: 9.121 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3242, allocations: 5.062 kB / 0.5364 GB, free: 9.117 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3242, allocations: 0 / 0.5364 GB, free: 9.117 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.3242, allocations: 0 / 0.5364 GB, free: 9.117 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.001661/0.3259, allocations: 0.7122 MB / 0.5371 GB, free: 8.512 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/0.3259, allocations: 10.28 kB / 0.5371 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001361/0.3261, allocations: 78.78 kB / 0.5371 GB, free: 8.438 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003315/0.3264, allocations: 61.83 kB / 0.5372 GB, free: 8.406 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006275/0.3271, allocations: 295 kB / 0.5375 GB, free: 8.113 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.866e-05/0.3271, allocations: 28 kB / 0.5375 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.076e-05/0.3272, allocations: 38.03 kB / 0.5375 GB, free: 8.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007543/0.328, allocations: 346.5 kB / 0.5379 GB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.328, allocations: 5.25 kB / 0.5379 GB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.773e-05/0.328, allocations: 14.91 kB / 0.5379 GB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.3281, allocations: 9 kB / 0.5379 GB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006979/0.3288, allocations: 305.1 kB / 0.5382 GB, free: 7.727 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002607/0.3314, allocations: 1.335 MB / 0.5395 GB, free: 6.621 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005449/0.332, allocations: 293 kB / 0.5398 GB, free: 6.465 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003156/0.3323, allocations: 158.8 kB / 0.5399 GB, free: 6.387 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.3323, allocations: 3.75 kB / 0.5399 GB, free: 6.387 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.549e-05/0.3324, allocations: 40.48 kB / 0.54 GB, free: 6.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 7.674e-06/0.3324, allocations: 3.984 kB / 0.54 GB, free: 6.336 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009969/0.3334, allocations: 377.3 kB / 0.5403 GB, free: 6.148 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.3335, allocations: 58.72 kB / 0.5404 GB, free: 6.082 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003549/0.3338, allocations: 268.6 kB / 0.5406 GB, free: 5.898 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.624e-05/0.3339, allocations: 31.17 kB / 0.5407 GB, free: 5.863 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.3341, allocations: 214.5 kB / 0.5409 GB, free: 5.668 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.3342, allocations: 116.1 kB / 0.541 GB, free: 5.566 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.3343, allocations: 75.59 kB / 0.5411 GB, free: 5.512 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.3345, allocations: 337.3 kB / 0.5414 GB, free: 5.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/0.3348, allocations: 112.1 kB / 0.5415 GB, free: 5.125 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003195/0.3351, allocations: 169.8 kB / 0.5417 GB, free: 5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005549/0.3357, allocations: 290.1 kB / 0.5419 GB, free: 4.816 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.3357, allocations: 3.938 kB / 0.5419 GB, free: 4.812 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007453/0.3364, allocations: 366.6 kB / 0.5423 GB, free: 4.625 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3365, allocations: 5.719 kB / 0.5423 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.3365, allocations: 2.562 kB / 0.5423 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.3365, allocations: 7.5 kB / 0.5423 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004806/0.337, allocations: 103.3 kB / 0.5424 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.337, allocations: 7 kB / 0.5424 GB, free: 4.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003324/0.3374, allocations: 45.12 kB / 0.5424 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.63e-05/0.3374, allocations: 18.11 kB / 0.5425 GB, free: 4.551 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.0001909/0.3376, allocations: 147.9 kB / 0.5426 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.686e-05/0.3377, allocations: 29.81 kB / 0.5426 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007302/0.3384, allocations: 334.7 kB / 0.543 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3384, allocations: 3.688 kB / 0.543 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3384, allocations: 1.062 kB / 0.543 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.3384, allocations: 3.984 kB / 0.543 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005627/0.339, allocations: 402.4 kB / 0.5433 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.339, allocations: 0 / 0.5433 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004245/0.3395, allocations: 84.84 kB / 0.5434 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.3395, allocations: 2.25 kB / 0.5434 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.471e-05/0.3395, allocations: 5.188 kB / 0.5434 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.3395, allocations: 2.281 kB / 0.5434 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3395, allocations: 4 kB / 0.5434 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009289/0.3405, allocations: 0.5122 MB / 0.5439 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001745/0.3406, allocations: 131.2 kB / 0.5441 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.533e-05/0.3407, allocations: 6.188 kB / 0.5441 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.3409, allocations: 9.469 kB / 0.5441 GB, free: 3.332 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.727e-05/0.341, allocations: 25.56 kB / 0.5441 GB, free: 3.316 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.367e-05/0.341, allocations: 14.61 kB / 0.5441 GB, free: 3.309 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002278/0.3413, allocations: 191.3 kB / 0.5443 GB, free: 3.176 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3413, allocations: 0 / 0.5443 GB, free: 3.176 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004088/0.3417, allocations: 90.88 kB / 0.5444 GB, free: 3.156 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.001295/0.343, allocations: 1.063 MB / 0.5454 GB, free: 2.223 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006835/0.3437, allocations: 275.9 kB / 0.5457 GB, free: 1.953 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.3437, allocations: 3.938 kB / 0.5457 GB, free: 1.949 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002835/0.344, allocations: 140.3 kB / 0.5458 GB, free: 1.812 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004031/0.3444, allocations: 32.55 kB / 0.5459 GB, free: 1.781 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004918/0.3494, allocations: 3.144 MB / 0.5489 GB, free: 14.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004513/0.3499, allocations: 0.7874 MB / 0.5497 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002154/0.3501, allocations: 38.95 kB / 0.5497 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000199/0.3503, allocations: 111.4 kB / 0.5498 GB, free: 13.55 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3503, allocations: 0 / 0.5498 GB, free: 13.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03241/0.3827, allocations: 5.74 MB / 0.5554 GB, free: 7.934 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.715/9.098, allocations: 2.594 kB / 0.5554 GB, free: 7.934 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1)