Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001363/0.001363, allocations: 117.9 kB / 17.84 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001837/0.001837, allocations: 199.5 kB / 18.79 MB, free: 4.156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.485/1.485, allocations: 230.4 MB / 250 MB, free: 9.059 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex 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. Warning: Requested package ModelicaServices 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.001867/0.001867, allocations: 67.84 kB / 366.9 MB, free: 7.539 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.319, allocations: 53.31 MB / 420.2 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.009087/0.3281, allocations: 6.576 MB / 426.7 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005357/0.3335, allocations: 2.381 MB / 429.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00128/0.3348, allocations: 19.94 kB / 429.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.3359, allocations: 365.7 kB / 429.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001919/0.3378, allocations: 0.5433 MB / 430 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001211/0.339, allocations: 458.6 kB / 430.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002452/0.3415, allocations: 1.565 MB / 432 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006638/0.3421, allocations: 353.6 kB / 432.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001096/0.3432, allocations: 0.5918 MB / 433 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000992/0.3442, allocations: 0.6848 MB / 433.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000254/0.3445, allocations: 160 kB / 433.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003968/0.3449, allocations: 196 kB / 434 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003328/0.3452, allocations: 334.9 kB / 434.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007634/0.346, allocations: 0.6843 MB / 435 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002498/0.3485, allocations: 1.988 MB / 437 MB, free: 7.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.3485, allocations: 0 / 437 MB, free: 7.316 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3485, allocations: 0 / 437 MB, free: 7.316 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.139e-05/0.3485, allocations: 0 / 437 MB, free: 7.316 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003382/0.3519, allocations: 1.57 MB / 438.6 MB, free: 5.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.3519, allocations: 11.97 kB / 438.6 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001969/0.3521, allocations: 152.3 kB / 438.7 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005779/0.3527, allocations: 168.1 kB / 438.9 MB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001394/0.3541, allocations: 0.7506 MB / 439.7 MB, free: 4.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.966e-05/0.3542, allocations: 74 kB / 439.7 MB, free: 4.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001616/0.3543, allocations: 92 kB / 439.8 MB, free: 4.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001884/0.3562, allocations: 0.9857 MB / 440.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.298e-05/0.3563, allocations: 0 / 440.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.825e-05/0.3564, allocations: 40 kB / 440.8 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.464e-05/0.3564, allocations: 24 kB / 440.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001784/0.3582, allocations: 0.821 MB / 441.7 MB, free: 2.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006061/0.3642, allocations: 3.656 MB / 445.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002014/0.3662, allocations: 0.5906 MB / 445.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006274/0.3669, allocations: 301.2 kB / 446.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.897e-05/0.3669, allocations: 12.38 kB / 446.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.367, allocations: 47.09 kB / 446.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 3.036e-06/0.367, allocations: 0 / 446.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.004512/0.3715, allocations: 1.683 MB / 448 MB, free: 12.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.876e-05/0.3715, allocations: 85.11 kB / 448.1 MB, free: 11.92 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001566/0.3731, allocations: 1.038 MB / 449.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.971e-05/0.3732, allocations: 37.7 kB / 449.1 MB, free: 10.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005159/0.3737, allocations: 0.5584 MB / 449.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002315/0.3739, allocations: 242 kB / 449.9 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002948/0.3742, allocations: 166.5 kB / 450.1 MB, free: 9.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.3744, allocations: 341.9 kB / 450.4 MB, free: 9.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000782/0.3752, allocations: 317.8 kB / 450.7 MB, free: 9.191 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009452/0.3761, allocations: 499.2 kB / 451.2 MB, free: 8.629 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001611/0.3777, allocations: 0.7757 MB / 452 MB, free: 7.785 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.3778, allocations: 4 kB / 452 MB, free: 7.781 MB / 366.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002165/0.3799, allocations: 0.9684 MB / 453 MB, free: 6.809 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.3799, allocations: 8 kB / 453 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.38, allocations: 4 kB / 453 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.521e-05/0.38, allocations: 12 kB / 453 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/0.3812, allocations: 283.9 kB / 453.3 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.726e-05/0.3812, allocations: 8 kB / 453.3 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008014/0.382, allocations: 55.88 kB / 453.3 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.458e-05/0.3821, allocations: 36 kB / 453.4 MB, free: 6.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 112 * 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.0005161/0.3826, allocations: 293.5 kB / 453.7 MB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.3828, allocations: 119.2 kB / 453.8 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008579/0.3837, allocations: 342.8 kB / 454.1 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.3837, allocations: 8 kB / 454.1 MB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.3837, allocations: 7.938 kB / 454.1 MB, free: 5.633 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.3837, allocations: 3.938 kB / 454.1 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004222/0.3879, allocations: 2.286 MB / 456.4 MB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.3879, allocations: 8 kB / 456.4 MB, free: 3.195 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008405/0.3888, allocations: 212.3 kB / 456.6 MB, free: 2.988 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.515e-05/0.3888, allocations: 8 kB / 456.6 MB, free: 2.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.634e-05/0.3888, allocations: 20 kB / 456.7 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.249e-05/0.3888, allocations: 11.98 kB / 456.7 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.468e-06/0.3889, allocations: 11.94 kB / 456.7 MB, free: 2.938 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.3907, allocations: 1.038 MB / 457.7 MB, free: 1.793 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003313/0.391, allocations: 192.4 kB / 457.9 MB, free: 1.586 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.3912, allocations: 23.98 kB / 457.9 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006168/0.3918, allocations: 51.95 kB / 458 MB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.3919, allocations: 71.69 kB / 458 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.225e-05/0.392, allocations: 28 kB / 458.1 MB, free: 1.414 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001076/0.3931, allocations: 0.7151 MB / 458.8 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3931, allocations: 0 / 458.8 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009051/0.394, allocations: 215.9 kB / 459 MB, free: 488 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 simulation (67): * Single equations (assignments): 67 * 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.003486/0.3975, allocations: 1.853 MB / 460.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.3992, allocations: 0.6948 MB / 461.5 MB, free: 13.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.216e-06/0.3992, allocations: 4.375 kB / 461.6 MB, free: 13.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000793/0.4, allocations: 345 kB / 461.9 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/0.4014, allocations: 224.4 kB / 462.1 MB, free: 13.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01492/0.4163, allocations: 8.463 MB / 470.6 MB, free: 4.508 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000947/0.4173, allocations: 1.03 MB / 471.6 MB, free: 3.453 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006324/0.4179, allocations: 131.5 kB / 471.7 MB, free: 3.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006872/0.4186, allocations: 407.3 kB / 472.1 MB, free: 2.922 MB / 382.1 MB Notification: Performance of SimCode: time 1.493e-06/0.4186, allocations: 0 / 472.1 MB, free: 2.922 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05726/0.4758, allocations: 20.97 MB / 493.1 MB, free: 14.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.927/10.4, allocations: 14.84 kB / 493.1 MB, free: 14.22 MB / 414.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1)