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.ArmatureStroke.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.ArmatureStroke,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001351/0.001351, allocations: 121.2 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.001369/0.001369, allocations: 204.6 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.457/1.457, 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.001966/0.001966, allocations: 67.88 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.3129, allocations: 50.55 MB / 409.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.01003/0.323, allocations: 6.423 MB / 415.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004593/0.3277, allocations: 1.905 MB / 417.4 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007698/0.3285, allocations: 23.94 kB / 417.4 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007408/0.3293, allocations: 222 kB / 417.6 MB, free: 8.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00106/0.3304, allocations: 412.7 kB / 418 MB, free: 8.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008308/0.3312, allocations: 375.5 kB / 418.4 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001752/0.333, allocations: 1.503 MB / 419.9 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007349/0.3337, allocations: 0.5091 MB / 420.4 MB, free: 5.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008903/0.3346, allocations: 0.5489 MB / 421 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000787/0.3354, allocations: 0.6068 MB / 421.6 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002159/0.3356, allocations: 163.9 kB / 421.7 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002809/0.3359, allocations: 172 kB / 421.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000282/0.3362, allocations: 303.1 kB / 422.2 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006668/0.3369, allocations: 0.6611 MB / 422.9 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002049/0.3389, allocations: 1.887 MB / 424.7 MB, free: 1.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.339, allocations: 4 kB / 424.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.339, allocations: 0 / 424.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.769e-05/0.339, allocations: 4 kB / 424.8 MB, free: 1.562 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002882/0.3419, allocations: 1.468 MB / 426.2 MB, free: 44 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.3419, allocations: 8.031 kB / 426.2 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001914/0.3421, allocations: 152.4 kB / 426.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005358/0.3427, allocations: 160.1 kB / 426.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001195/0.3439, allocations: 0.696 MB / 427.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.261e-05/0.344, allocations: 74 kB / 427.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001745/0.3441, allocations: 100 kB / 427.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001735/0.3459, allocations: 0.9818 MB / 428.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.418e-05/0.3459, allocations: 3.953 kB / 428.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.801e-05/0.346, allocations: 44 kB / 428.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.281e-05/0.3461, allocations: 20 kB / 428.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001558/0.3476, allocations: 0.7977 MB / 429.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005202/0.3528, allocations: 3.318 MB / 432.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/0.3543, allocations: 0.797 MB / 433.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007835/0.3551, allocations: 447.2 kB / 433.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.262e-05/0.3551, allocations: 12.55 kB / 433.8 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.3552, allocations: 43.75 kB / 433.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=95): time 2.925e-06/0.3552, allocations: 0 / 433.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=119): time 0.008952/0.3642, allocations: 4.21 MB / 438.1 MB, free: 3.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.411e-05/0.3643, allocations: 93.75 kB / 438.2 MB, free: 3.672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000886/0.3652, allocations: 0.6369 MB / 438.8 MB, free: 3.023 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.408e-05/0.3652, allocations: 45.7 kB / 438.8 MB, free: 2.973 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003452/0.3656, allocations: 449.1 kB / 439.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003475/0.3659, allocations: 432.2 kB / 439.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000311/0.3663, allocations: 186.9 kB / 439.9 MB, free: 1.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002216/0.3665, allocations: 398.7 kB / 440.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006833/0.3672, allocations: 346.4 kB / 440.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007872/0.368, allocations: 492.7 kB / 441.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001495/0.3695, allocations: 0.8587 MB / 441.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.3695, allocations: 4 kB / 441.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00218/0.3717, allocations: 1.15 MB / 443.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.3717, allocations: 7.984 kB / 443.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.3717, allocations: 4 kB / 443.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004411/0.3722, allocations: 130.5 kB / 443.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009657/0.3732, allocations: 239.6 kB / 443.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004476/0.3776, allocations: 4.978 MB / 448.5 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007716/0.3784, allocations: 40.02 kB / 448.5 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.723e-05/0.3785, allocations: 39.98 kB / 448.5 MB, free: 8.742 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005044/0.3791, allocations: 289.1 kB / 448.8 MB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001923/0.3793, allocations: 103.3 kB / 448.9 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001526/0.3808, allocations: 0.7416 MB / 449.7 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.3808, allocations: 12 kB / 449.7 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.3808, allocations: 4 kB / 449.7 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.756e-05/0.3808, allocations: 11.97 kB / 449.7 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004124/0.385, allocations: 2.615 MB / 452.3 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.385, allocations: 0 / 452.3 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008455/0.3859, allocations: 195.8 kB / 452.5 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004553/0.3863, allocations: 155.3 kB / 452.6 MB, free: 4.492 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.917e-05/0.3864, allocations: 27.98 kB / 452.7 MB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005091/0.3915, allocations: 5.993 MB / 458.7 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3915, allocations: 0 / 458.7 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003095/0.3946, allocations: 1.665 MB / 460.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005031/0.3952, allocations: 248.5 kB / 460.6 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001171/0.3953, allocations: 36.08 kB / 460.6 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005299/0.3958, allocations: 39.92 kB / 460.6 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/0.396, allocations: 80.48 kB / 460.7 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-05/0.3961, allocations: 31.98 kB / 460.8 MB, free: 11.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006398/0.3967, allocations: 459.1 kB / 461.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3967, allocations: 0 / 461.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009601/0.3977, allocations: 264 kB / 461.5 MB, free: 11.07 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i,pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi) * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003293/0.401, allocations: 2.25 MB / 463.7 MB, free: 8.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002379/0.4034, allocations: 1.278 MB / 465 MB, free: 7.449 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4034, allocations: 0 / 465 MB, free: 7.449 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001417/0.4049, allocations: 0.9861 MB / 466 MB, free: 6.414 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001142/0.406, allocations: 212.7 kB / 466.2 MB, free: 6.207 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.4194, allocations: 8.216 MB / 474.4 MB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008283/0.4202, allocations: 1.037 MB / 475.4 MB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006569/0.4209, allocations: 124 kB / 475.6 MB, free: 12.58 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006624/0.4216, allocations: 399.3 kB / 475.9 MB, free: 12.19 MB / 398.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4216, allocations: 0 / 475.9 MB, free: 12.19 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.065/0.4866, allocations: 21.55 MB / 497.5 MB, free: 6.945 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.72, allocations: 11.33 kB / 497.5 MB, free: 6.938 MB / 414.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)