Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 113.3 kB / 17.28 MB, free: 6.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 189.3 kB / 18.19 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.1 MB / 224 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 44.16 kB / 280.3 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1408, allocations: 46.62 MB / 326.9 MB, free: 4.695 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.008658/0.1495, allocations: 6.236 MB / 333.1 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003137/0.1526, allocations: 1.847 MB / 335 MB, free: 12.56 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003746/0.153, allocations: 19.94 kB / 335 MB, free: 12.54 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000654/0.1537, allocations: 158.9 kB / 335.1 MB, free: 12.39 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007799/0.1545, allocations: 353.5 kB / 335.5 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006194/0.1551, allocations: 339.7 kB / 335.8 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001329/0.1564, allocations: 1.468 MB / 337.3 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006253/0.1571, allocations: 0.5091 MB / 337.8 MB, free: 9.703 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005472/0.1576, allocations: 0.5411 MB / 338.3 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00063/0.1583, allocations: 0.599 MB / 338.9 MB, free: 8.559 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001799/0.1585, allocations: 160 kB / 339.1 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/0.1587, allocations: 156 kB / 339.2 MB, free: 8.25 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002285/0.1589, allocations: 303.1 kB / 339.5 MB, free: 7.953 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006327/0.1595, allocations: 0.6495 MB / 340.2 MB, free: 7.301 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001579/0.1611, allocations: 1.834 MB / 342 MB, free: 5.461 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1611, allocations: 0 / 342 MB, free: 5.461 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1611, allocations: 0 / 342 MB, free: 5.461 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.328e-05/0.1612, allocations: 0 / 342 MB, free: 5.461 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.002823/0.164, allocations: 1.446 MB / 343.5 MB, free: 3.961 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.273e-05/0.1641, allocations: 12.03 kB / 343.5 MB, free: 3.949 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000189/0.1643, allocations: 152.3 kB / 343.6 MB, free: 3.793 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.1645, allocations: 119.5 kB / 343.7 MB, free: 3.676 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.1656, allocations: 0.665 MB / 344.4 MB, free: 2.973 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.1657, allocations: 74.56 kB / 344.5 MB, free: 2.898 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.1659, allocations: 104.3 kB / 344.6 MB, free: 2.797 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001835/0.1677, allocations: 1.001 MB / 345.6 MB, free: 1.785 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.173e-05/0.1678, allocations: 11.89 kB / 345.6 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.306e-05/0.1679, allocations: 40 kB / 345.6 MB, free: 1.734 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.056e-05/0.1679, allocations: 24 kB / 345.7 MB, free: 1.711 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001776/0.1697, allocations: 0.8679 MB / 346.5 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004929/0.1746, allocations: 3.336 MB / 349.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001365/0.176, allocations: 0.8152 MB / 350.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008818/0.1769, allocations: 479.1 kB / 351.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.107e-05/0.177, allocations: 17.14 kB / 351.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.23e-05/0.1771, allocations: 47.12 kB / 351.2 MB, free: 12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.093e-06/0.1771, allocations: 0 / 351.2 MB, free: 12 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.009333/0.1864, allocations: 4.301 MB / 355.5 MB, free: 7.496 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.325e-05/0.1865, allocations: 89.77 kB / 355.6 MB, free: 7.391 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008224/0.1873, allocations: 0.6007 MB / 356.2 MB, free: 6.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.684e-05/0.1874, allocations: 41.7 kB / 356.2 MB, free: 6.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003375/0.1877, allocations: 428.1 kB / 356.7 MB, free: 6.305 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003498/0.1881, allocations: 390.2 kB / 357 MB, free: 5.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002971/0.1884, allocations: 190.8 kB / 357.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002128/0.1886, allocations: 390.7 kB / 357.6 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008039/0.1894, allocations: 386.4 kB / 358 MB, free: 4.957 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009377/0.1904, allocations: 0.5081 MB / 358.5 MB, free: 4.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001704/0.1921, allocations: 0.8887 MB / 359.4 MB, free: 3.492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.1921, allocations: 7.938 kB / 359.4 MB, free: 3.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002173/0.1943, allocations: 1.192 MB / 360.6 MB, free: 2.273 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.1943, allocations: 4 kB / 360.6 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.1943, allocations: 7.984 kB / 360.6 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003919/0.1947, allocations: 134.4 kB / 360.7 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009953/0.1957, allocations: 247.7 kB / 361 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004227/0.2, allocations: 4.969 MB / 365.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006087/0.2006, allocations: 55.89 kB / 366 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.048e-05/0.2007, allocations: 35.98 kB / 366 MB, free: 12.41 MB / 318.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 (128): * Single equations (assignments): 125 * 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.0004401/0.2011, allocations: 281.7 kB / 366.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.2013, allocations: 86.97 kB / 366.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001485/0.2028, allocations: 0.776 MB / 367.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.839e-06/0.2028, allocations: 12.05 kB / 367.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.651e-05/0.2028, allocations: 7.984 kB / 367.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.2029, allocations: 11.91 kB / 367.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003976/0.2068, allocations: 2.655 MB / 369.8 MB, free: 8.453 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.2069, allocations: 4 kB / 369.8 MB, free: 8.449 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008548/0.2077, allocations: 199.7 kB / 370 MB, free: 8.254 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004043/0.2081, allocations: 159.3 kB / 370.2 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.333e-05/0.2082, allocations: 27.98 kB / 370.2 MB, free: 8.059 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004554/0.2128, allocations: 5.994 MB / 376.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.2128, allocations: 7.969 kB / 376.2 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2396/0.4524, allocations: 1.738 MB / 378 MB, free: 51.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006974/0.4532, allocations: 159.2 kB / 378.1 MB, free: 51.42 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002828/0.4534, allocations: 22.81 kB / 378.1 MB, free: 51.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007765/0.4542, allocations: 47.81 kB / 378.2 MB, free: 51.42 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002832/0.4545, allocations: 79.66 kB / 378.3 MB, free: 51.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.078e-05/0.4546, allocations: 31.64 kB / 378.3 MB, free: 51.42 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008313/0.4555, allocations: 443.4 kB / 378.7 MB, free: 51.33 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4555, allocations: 0 / 378.7 MB, free: 51.33 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001201/0.4567, allocations: 258.6 kB / 379 MB, free: 51.33 MB / 318.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 (104): * Single equations (assignments): 100 * 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.004566/0.4612, allocations: 2.322 MB / 381.3 MB, free: 50.53 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003775/0.465, allocations: 1.391 MB / 382.7 MB, free: 50.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.4651, allocations: 0 / 382.7 MB, free: 50.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001733/0.4668, allocations: 0.9958 MB / 383.7 MB, free: 49.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.4681, allocations: 185.9 kB / 383.9 MB, free: 49.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01784/0.4859, allocations: 9.067 MB / 392.9 MB, free: 44.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001032/0.487, allocations: 1.025 MB / 394 MB, free: 43.54 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008884/0.4879, allocations: 119.2 kB / 394.1 MB, free: 43.51 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005975/0.4885, allocations: 393.2 kB / 394.5 MB, free: 43.22 MB / 318.1 MB Notification: Performance of SimCode: time 3.577e-06/0.4885, allocations: 0 / 394.5 MB, free: 43.22 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2731/0.7617, allocations: 20.12 MB / 414.6 MB, free: 27.31 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002255/0.7619, allocations: 246.2 kB / 414.8 MB, free: 27.06 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.831/3.593, allocations: 0 / 414.8 MB, free: 27.06 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)