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.001437/0.001437, allocations: 122.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.001426/0.001426, 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 4.1.0-beta.om/package.mo): time 1.498/1.498, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.001968/0.001968, allocations: 63.89 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3381, allocations: 50.54 MB / 409.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.009099/0.3473, allocations: 6.544 MB / 415.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004999/0.3523, allocations: 2.373 MB / 418 MB, free: 8.434 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009502/0.3533, allocations: 19.94 kB / 418 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009541/0.3543, allocations: 361.7 kB / 418.4 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00148/0.3558, allocations: 0.5199 MB / 418.9 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.3568, allocations: 458.8 kB / 419.3 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001811/0.3586, allocations: 1.565 MB / 420.9 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007249/0.3594, allocations: 0.5171 MB / 421.4 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008601/0.3602, allocations: 0.584 MB / 422 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008548/0.3611, allocations: 0.677 MB / 422.7 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002158/0.3613, allocations: 160 kB / 422.8 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00035/0.3617, allocations: 192 kB / 423 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003254/0.362, allocations: 331 kB / 423.3 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008202/0.3628, allocations: 0.6843 MB / 424 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002344/0.3652, allocations: 1.988 MB / 426 MB, free: 372 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3652, allocations: 0 / 426 MB, free: 372 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3652, allocations: 3.938 kB / 426 MB, free: 368 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.769e-05/0.3653, allocations: 0 / 426 MB, free: 368 kB / 334.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.003261/0.3685, allocations: 1.568 MB / 427.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.3686, allocations: 8.031 kB / 427.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001951/0.3688, allocations: 156.2 kB / 427.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000544/0.3693, allocations: 168.1 kB / 427.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001302/0.3707, allocations: 0.7428 MB / 428.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.264e-05/0.3708, allocations: 74 kB / 428.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001667/0.3709, allocations: 96 kB / 428.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001905/0.3728, allocations: 0.9857 MB / 429.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.053e-05/0.3729, allocations: 0 / 429.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001092/0.373, allocations: 40 kB / 429.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.402e-05/0.373, allocations: 24 kB / 429.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001777/0.3748, allocations: 0.8249 MB / 430.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006102/0.3809, allocations: 3.652 MB / 434.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002079/0.383, allocations: 0.618 MB / 435 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006859/0.3837, allocations: 325.9 kB / 435.3 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.318e-05/0.3838, allocations: 20.34 kB / 435.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/0.3838, allocations: 55.03 kB / 435.3 MB, free: 6.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.965e-06/0.3839, allocations: 0 / 435.3 MB, free: 6.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.004452/0.3883, allocations: 1.68 MB / 437 MB, free: 5.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.356e-05/0.3884, allocations: 89.11 kB / 437.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001435/0.3898, allocations: 1.038 MB / 438.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.944e-05/0.3899, allocations: 37.7 kB / 438.2 MB, free: 3.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004847/0.3904, allocations: 0.5584 MB / 438.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.3906, allocations: 242 kB / 439 MB, free: 2.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002691/0.3909, allocations: 158.6 kB / 439.1 MB, free: 2.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.3911, allocations: 345.9 kB / 439.5 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007795/0.3918, allocations: 309.8 kB / 439.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009468/0.3928, allocations: 0.4921 MB / 440.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001616/0.3944, allocations: 0.7757 MB / 441 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.3944, allocations: 4 kB / 441 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002195/0.3966, allocations: 0.9685 MB / 442 MB, free: 15.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.3967, allocations: 8 kB / 442 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.3967, allocations: 7.984 kB / 442 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.884e-05/0.3967, allocations: 12 kB / 442 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.3979, allocations: 287.9 kB / 442.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.929e-05/0.398, allocations: 11.98 kB / 442.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007915/0.3988, allocations: 55.83 kB / 442.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.759e-05/0.3989, allocations: 39.98 kB / 442.4 MB, free: 15.38 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.0004895/0.3994, allocations: 289.6 kB / 442.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001826/0.3996, allocations: 111.3 kB / 442.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008578/0.4004, allocations: 350.4 kB / 443.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.4004, allocations: 8 kB / 443.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.4005, allocations: 4 kB / 443.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.398e-05/0.4005, allocations: 7.922 kB / 443.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004068/0.4045, allocations: 2.293 MB / 445.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/0.4046, allocations: 4 kB / 445.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008678/0.4054, allocations: 208.4 kB / 445.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.173e-05/0.4055, allocations: 8 kB / 445.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.608e-05/0.4055, allocations: 23.98 kB / 445.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.399e-05/0.4055, allocations: 15.94 kB / 445.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/0.4056, allocations: 7.938 kB / 445.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001794/0.4074, allocations: 1.035 MB / 446.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003194/0.4077, allocations: 200.4 kB / 447 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.4078, allocations: 16 kB / 447 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006171/0.4084, allocations: 51.95 kB / 447 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.4086, allocations: 67.75 kB / 447.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.963e-05/0.4086, allocations: 31.98 kB / 447.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001048/0.4097, allocations: 0.7112 MB / 447.8 MB, free: 9.668 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4097, allocations: 0 / 447.8 MB, free: 9.668 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008676/0.4106, allocations: 219.9 kB / 448.1 MB, free: 9.453 MB / 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.003501/0.4141, allocations: 1.85 MB / 449.9 MB, free: 7.625 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001813/0.4159, allocations: 0.7338 MB / 450.6 MB, free: 6.895 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.4159, allocations: 384 / 450.6 MB, free: 6.895 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008111/0.4168, allocations: 365.2 kB / 451 MB, free: 6.539 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.4181, allocations: 223.2 kB / 451.2 MB, free: 6.324 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/0.4327, allocations: 8.46 MB / 459.7 MB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008316/0.4336, allocations: 1.03 MB / 460.7 MB, free: 12.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007123/0.4343, allocations: 131.5 kB / 460.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006143/0.435, allocations: 403.3 kB / 461.2 MB, free: 11.85 MB / 382.1 MB Notification: Performance of SimCode: time 7.92e-07/0.435, allocations: 0 / 461.2 MB, free: 11.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05579/0.4908, allocations: 20.78 MB / 482 MB, free: 7.391 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/11, allocations: 8.125 kB / 482 MB, free: 7.383 MB / 398.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)