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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001889/0.001889, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003184/0.003184, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.511/1.511, allocations: 230.6 MB / 258.3 MB, free: 8.059 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.002031/0.002031, allocations: 72.77 kB / 378.6 MB, free: 3.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3066, allocations: 53.37 MB / 431.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.009664/0.3163, allocations: 6.594 MB / 438.5 MB, free: 296 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005387/0.3217, allocations: 2.416 MB / 440.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00122/0.3229, allocations: 19.94 kB / 441 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.3241, allocations: 365.7 kB / 441.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00198/0.326, allocations: 0.5433 MB / 441.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001473/0.3275, allocations: 454 kB / 442.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002679/0.3302, allocations: 1.565 MB / 443.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007579/0.331, allocations: 354 kB / 444.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001206/0.3322, allocations: 0.6113 MB / 444.8 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00111/0.3333, allocations: 0.6848 MB / 445.5 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003138/0.3336, allocations: 163.9 kB / 445.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004347/0.334, allocations: 195.9 kB / 445.9 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000335/0.3344, allocations: 323 kB / 446.2 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008917/0.3352, allocations: 0.6882 MB / 446.9 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002684/0.3379, allocations: 1.985 MB / 448.8 MB, free: 5.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3379, allocations: 0 / 448.8 MB, free: 5.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.3379, allocations: 0 / 448.8 MB, free: 5.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.469e-05/0.338, allocations: 0 / 448.8 MB, free: 5.91 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.003686/0.3417, allocations: 1.505 MB / 450.3 MB, free: 4.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.3417, allocations: 8.031 kB / 450.4 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002225/0.342, allocations: 152.3 kB / 450.5 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006345/0.3426, allocations: 164.1 kB / 450.7 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/0.3443, allocations: 0.6811 MB / 451.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.843e-05/0.3444, allocations: 74 kB / 451.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002108/0.3446, allocations: 96 kB / 451.5 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/0.3467, allocations: 0.9779 MB / 452.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.502e-05/0.3467, allocations: 8 kB / 452.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.636e-05/0.3468, allocations: 43.98 kB / 452.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.23e-05/0.3468, allocations: 24 kB / 452.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001883/0.3487, allocations: 0.8094 MB / 453.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006828/0.3555, allocations: 3.577 MB / 456.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002059/0.3576, allocations: 0.5845 MB / 457.5 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006754/0.3583, allocations: 293.6 kB / 457.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.058e-05/0.3583, allocations: 12.36 kB / 457.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.3584, allocations: 43.09 kB / 457.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.815e-06/0.3584, allocations: 4 kB / 457.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.004791/0.3632, allocations: 1.685 MB / 459.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.046e-05/0.3632, allocations: 81.11 kB / 459.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001631/0.3649, allocations: 1.042 MB / 460.7 MB, free: 9.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001106/0.365, allocations: 41.7 kB / 460.7 MB, free: 9.684 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004791/0.3655, allocations: 0.5584 MB / 461.3 MB, free: 9.117 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002529/0.3657, allocations: 245.9 kB / 461.5 MB, free: 8.875 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002996/0.366, allocations: 166.5 kB / 461.7 MB, free: 8.707 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.3662, allocations: 341.9 kB / 462 MB, free: 8.367 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008216/0.367, allocations: 309.8 kB / 462.3 MB, free: 8.062 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009749/0.368, allocations: 499.9 kB / 462.8 MB, free: 7.504 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001851/0.3698, allocations: 0.7786 MB / 463.6 MB, free: 6.652 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.335e-05/0.3698, allocations: 4 kB / 463.6 MB, free: 6.648 MB / 366.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002469/0.3723, allocations: 0.9712 MB / 464.6 MB, free: 5.672 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.3723, allocations: 8 kB / 464.6 MB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.3724, allocations: 4 kB / 464.6 MB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.075e-05/0.3724, allocations: 15.94 kB / 464.6 MB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/0.3736, allocations: 271.6 kB / 464.9 MB, free: 5.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.523e-05/0.3736, allocations: 15.94 kB / 464.9 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009273/0.3746, allocations: 55.89 kB / 464.9 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-05/0.3746, allocations: 43.91 kB / 465 MB, free: 5.266 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.0005793/0.3752, allocations: 285.6 kB / 465.2 MB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000246/0.3755, allocations: 111.3 kB / 465.4 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009305/0.3764, allocations: 358.4 kB / 465.7 MB, free: 4.512 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.3764, allocations: 8 kB / 465.7 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.3764, allocations: 0 / 465.7 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.3764, allocations: 7.922 kB / 465.7 MB, free: 4.496 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004839/0.3813, allocations: 2.254 MB / 468 MB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.449e-05/0.3813, allocations: 8 kB / 468 MB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009058/0.3822, allocations: 203.7 kB / 468.2 MB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.849e-05/0.3822, allocations: 12 kB / 468.2 MB, free: 1.891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-05/0.3823, allocations: 28.14 kB / 468.2 MB, free: 1.863 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-05/0.3823, allocations: 11.94 kB / 468.2 MB, free: 1.852 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.498e-05/0.3823, allocations: 11.94 kB / 468.2 MB, free: 1.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002085/0.3844, allocations: 1.037 MB / 469.3 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003982/0.3848, allocations: 119.3 kB / 469.4 MB, free: 0.582 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.3849, allocations: 20 kB / 469.4 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006792/0.3856, allocations: 47.95 kB / 469.5 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.3858, allocations: 75.66 kB / 469.5 MB, free: 452 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.137e-05/0.3858, allocations: 27.98 kB / 469.6 MB, free: 424 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001213/0.387, allocations: 0.7151 MB / 470.3 MB, free: 15.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.387, allocations: 4 kB / 470.3 MB, free: 15.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001044/0.3881, allocations: 216 kB / 470.5 MB, free: 15.47 MB / 382.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.003594/0.3917, allocations: 1.852 MB / 472.3 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001999/0.3937, allocations: 0.6943 MB / 473 MB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.335e-06/0.3937, allocations: 0 / 473 MB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008876/0.3946, allocations: 349.9 kB / 473.4 MB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001651/0.3962, allocations: 222 kB / 473.6 MB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01495/0.4112, allocations: 8.457 MB / 482.1 MB, free: 3.516 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007788/0.412, allocations: 1.033 MB / 483.1 MB, free: 2.453 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006717/0.4126, allocations: 135.5 kB / 483.2 MB, free: 2.316 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006187/0.4133, allocations: 403.3 kB / 483.6 MB, free: 1.922 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4133, allocations: 0 / 483.6 MB, free: 1.922 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06456/0.4778, allocations: 21.49 MB / 0.4933 GB, free: 12.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/10.77, allocations: 15.98 kB / 0.4933 GB, free: 12.6 MB / 414.1 MB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.419561778660864] Failed to read output from testmodel.py, exit status != 0: ['time', 'cActuator.flange.f', 'pmActuator.flange.f', 'pmActuator.coil.Phi', 'pmActuator.coil.L_stat'] 10.923345195129514 10.945280458 10.602790267 Calling exit ...