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.ForceStrokeBehaviour.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.ForceStrokeBehaviour,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001609/0.001609, allocations: 118.8 kB / 17.79 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.001594/0.001594, allocations: 198 kB / 18.73 MB, free: 4.312 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.496/1.496, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.001954/0.001954, allocations: 63.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3539, allocations: 50.55 MB / 409.1 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour): time 0.007227/0.3612, allocations: 4.668 MB / 413.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003833/0.365, allocations: 1.983 MB / 415.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003854/0.3655, allocations: 8 kB / 415.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008483/0.3663, allocations: 422.2 kB / 416.1 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009803/0.3673, allocations: 473.5 kB / 416.6 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007445/0.3681, allocations: 323.4 kB / 416.9 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001123/0.3692, allocations: 1.036 MB / 418 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005009/0.3697, allocations: 302.5 kB / 418.2 MB, free: 8.168 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006245/0.3704, allocations: 426.6 kB / 418.7 MB, free: 7.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006277/0.371, allocations: 0.5137 MB / 419.2 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001372/0.3712, allocations: 104 kB / 419.3 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002692/0.3714, allocations: 124 kB / 419.4 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002436/0.3717, allocations: 239.2 kB / 419.6 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004982/0.3722, allocations: 465.6 kB / 420.1 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001548/0.3737, allocations: 1.295 MB / 421.4 MB, free: 5.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.3738, allocations: 0 / 421.4 MB, free: 5.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3738, allocations: 0 / 421.4 MB, free: 5.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.3738, allocations: 0 / 421.4 MB, free: 5.023 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.002327/0.3761, allocations: 1.245 MB / 422.6 MB, free: 3.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.3762, allocations: 8.031 kB / 422.6 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001359/0.3763, allocations: 102.7 kB / 422.7 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004915/0.3768, allocations: 132.2 kB / 422.9 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.3779, allocations: 0.5872 MB / 423.5 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.012e-05/0.3779, allocations: 49.3 kB / 423.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.378, allocations: 60 kB / 423.6 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.3792, allocations: 0.6285 MB / 424.2 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.394e-05/0.3792, allocations: 4 kB / 424.2 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.142e-05/0.3793, allocations: 24 kB / 424.2 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.3793, allocations: 16 kB / 424.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.3805, allocations: 0.5204 MB / 424.8 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003842/0.3843, allocations: 2.556 MB / 427.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009841/0.3853, allocations: 460.4 kB / 427.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006817/0.386, allocations: 290 kB / 428 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.413e-05/0.3861, allocations: 4.438 kB / 428 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/0.3862, allocations: 42.94 kB / 428.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.274e-06/0.3862, allocations: 0 / 428.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=63): time 0.004538/0.3907, allocations: 1.463 MB / 429.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.3908, allocations: 59.97 kB / 429.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.392, allocations: 0.9693 MB / 430.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.387e-05/0.3921, allocations: 37.7 kB / 430.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003325/0.3924, allocations: 408.7 kB / 431 MB, free: 11.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002042/0.3926, allocations: 234 kB / 431.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002127/0.3929, allocations: 118.6 kB / 431.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.3931, allocations: 333.9 kB / 431.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005471/0.3936, allocations: 225.9 kB / 431.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000636/0.3943, allocations: 327.1 kB / 432.2 MB, free: 9.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/0.3954, allocations: 0.544 MB / 432.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3954, allocations: 7.875 kB / 432.8 MB, free: 9.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001503/0.3969, allocations: 0.7075 MB / 433.5 MB, free: 8.527 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.397, allocations: 8 kB / 433.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.397, allocations: 4 kB / 433.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.397, allocations: 4 kB / 433.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007563/0.3978, allocations: 168 kB / 433.7 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.847e-05/0.3978, allocations: 12 kB / 433.7 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004781/0.3983, allocations: 31.91 kB / 433.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.492e-05/0.3984, allocations: 31.98 kB / 433.7 MB, free: 8.273 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMin.contact,actuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 85 * 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.0003905/0.3987, allocations: 278.1 kB / 434 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.3989, allocations: 87.44 kB / 434.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001396/0.4003, allocations: 0.6049 MB / 434.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.4003, allocations: 4 kB / 434.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4003, allocations: 0 / 434.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.789e-06/0.4003, allocations: 3.984 kB / 434.7 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00304/0.4034, allocations: 1.788 MB / 436.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.4034, allocations: 0 / 436.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000544/0.4039, allocations: 127.8 kB / 436.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.515e-06/0.404, allocations: 4 kB / 436.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.763e-05/0.404, allocations: 16.31 kB / 436.6 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-05/0.404, allocations: 19.86 kB / 436.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.404, allocations: 4 kB / 436.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.4053, allocations: 0.7242 MB / 437.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002725/0.4056, allocations: 212.5 kB / 437.6 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.576e-05/0.4057, allocations: 19.98 kB / 437.6 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000396/0.4061, allocations: 23.98 kB / 437.6 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.88e-05/0.4062, allocations: 44.31 kB / 437.7 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.407e-05/0.4063, allocations: 20 kB / 437.7 MB, free: 4.094 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008695/0.4071, allocations: 0.7099 MB / 438.4 MB, free: 3.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.226e-06/0.4071, allocations: 0 / 438.4 MB, free: 3.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000541/0.4077, allocations: 163.8 kB / 438.6 MB, free: 3.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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.002797/0.4105, allocations: 1.53 MB / 440.1 MB, free: 1.777 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001245/0.4117, allocations: 0.5535 MB / 440.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4118, allocations: 0 / 440.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000575/0.4123, allocations: 275.5 kB / 440.9 MB, free: 0.957 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007853/0.4131, allocations: 138.6 kB / 441.1 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.4232, allocations: 6.547 MB / 447.6 MB, free: 10.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006659/0.4239, allocations: 0.9708 MB / 448.6 MB, free: 9.031 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004065/0.4244, allocations: 101.2 kB / 448.7 MB, free: 8.934 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004716/0.4248, allocations: 299.3 kB / 449 MB, free: 8.641 MB / 366.1 MB Notification: Performance of SimCode: time 3.066e-06/0.4249, allocations: 0 / 449 MB, free: 8.641 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.046/0.4709, allocations: 16.01 MB / 465 MB, free: 8.906 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.7, allocations: 18.14 kB / 465 MB, free: 8.895 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.csv --start-time -4 --stop-time 4 --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_ForceStrokeBehaviour.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1)