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.001311/0.001311, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.001435/0.001435, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.364/1.364, allocations: 205.1 MB / 224.4 MB, free: 12.28 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.001426/0.001426, allocations: 51.92 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09488/0.09632, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007565/0.1039, allocations: 6.233 MB / 333.6 MB, free: 14.1 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003534/0.1075, allocations: 1.859 MB / 335.5 MB, free: 12.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007762/0.1083, allocations: 23.88 kB / 335.5 MB, free: 12.21 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007332/0.1091, allocations: 218.1 kB / 335.7 MB, free: 11.99 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001591/0.1107, allocations: 396.8 kB / 336.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.1118, allocations: 375.6 kB / 336.5 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002135/0.114, allocations: 1.476 MB / 337.9 MB, free: 9.754 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008634/0.1149, allocations: 0.5052 MB / 338.4 MB, free: 9.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009345/0.1158, allocations: 0.5373 MB / 339 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001218/0.117, allocations: 0.5991 MB / 339.6 MB, free: 8.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000399/0.1174, allocations: 160 kB / 339.7 MB, free: 7.934 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00039/0.1179, allocations: 164 kB / 339.9 MB, free: 7.773 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002761/0.1181, allocations: 299 kB / 340.2 MB, free: 7.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008844/0.119, allocations: 0.6456 MB / 340.8 MB, free: 6.832 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001841/0.1209, allocations: 1.83 MB / 342.7 MB, free: 4.996 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.1209, allocations: 0 / 342.7 MB, free: 4.996 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1209, allocations: 0 / 342.7 MB, free: 4.996 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.171e-05/0.121, allocations: 0 / 342.7 MB, free: 4.996 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.002888/0.1239, allocations: 1.449 MB / 344.1 MB, free: 3.492 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.1239, allocations: 8.031 kB / 344.1 MB, free: 3.484 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001651/0.1241, allocations: 148.3 kB / 344.3 MB, free: 3.332 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001704/0.1243, allocations: 119.5 kB / 344.4 MB, free: 3.215 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009751/0.1252, allocations: 0.6689 MB / 345.1 MB, free: 2.508 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.1254, allocations: 74.56 kB / 345.1 MB, free: 2.434 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.1255, allocations: 100.3 kB / 345.2 MB, free: 2.336 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.1272, allocations: 1.009 MB / 346.2 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.144e-05/0.1272, allocations: 15.83 kB / 346.3 MB, free: 1.301 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.098e-05/0.1273, allocations: 36 kB / 346.3 MB, free: 1.266 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.926e-05/0.1273, allocations: 27.94 kB / 346.3 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/0.1291, allocations: 0.8679 MB / 347.2 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004607/0.1337, allocations: 3.34 MB / 350.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001409/0.1351, allocations: 0.8114 MB / 351.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008383/0.136, allocations: 491.1 kB / 351.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.009e-05/0.136, allocations: 13.16 kB / 351.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/0.1361, allocations: 39.12 kB / 351.9 MB, free: 11.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.565e-06/0.1361, allocations: 0 / 351.9 MB, free: 11.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.008967/0.1451, allocations: 4.312 MB / 356.2 MB, free: 7.008 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.1451, allocations: 89.77 kB / 356.3 MB, free: 6.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007735/0.1459, allocations: 0.6046 MB / 356.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.644e-05/0.146, allocations: 45.7 kB / 356.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002604/0.1462, allocations: 420.1 kB / 357.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002446/0.1465, allocations: 398.2 kB / 357.7 MB, free: 5.422 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002588/0.1468, allocations: 182.9 kB / 357.9 MB, free: 5.238 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.1469, allocations: 394.7 kB / 358.3 MB, free: 4.844 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007877/0.1477, allocations: 378.4 kB / 358.6 MB, free: 4.473 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000893/0.1486, allocations: 0.5081 MB / 359.2 MB, free: 3.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/0.1502, allocations: 0.8926 MB / 360 MB, free: 3.004 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1503, allocations: 0 / 360 MB, free: 3.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002193/0.1525, allocations: 1.192 MB / 361.2 MB, free: 1.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.887e-05/0.1525, allocations: 4 kB / 361.2 MB, free: 1.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/0.1525, allocations: 4 kB / 361.2 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003651/0.1529, allocations: 138.5 kB / 361.4 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009736/0.1539, allocations: 251.7 kB / 361.6 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003623/0.1575, allocations: 4.969 MB / 366.6 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006806/0.1582, allocations: 59.95 kB / 366.7 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.486e-05/0.1583, allocations: 40.19 kB / 366.7 MB, free: 11.91 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.0004203/0.1587, allocations: 277.6 kB / 367 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.1588, allocations: 90.97 kB / 367.1 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/0.1603, allocations: 0.7721 MB / 367.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.918e-06/0.1604, allocations: 15.94 kB / 367.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.1604, allocations: 8 kB / 367.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.1604, allocations: 3.984 kB / 367.9 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004093/0.1645, allocations: 2.651 MB / 370.5 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.1645, allocations: 4 kB / 370.5 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008714/0.1654, allocations: 207.7 kB / 370.7 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004669/0.1659, allocations: 151.4 kB / 370.9 MB, free: 7.609 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.966e-05/0.166, allocations: 27.94 kB / 370.9 MB, free: 7.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004204/0.1702, allocations: 6.002 MB / 376.9 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.1702, allocations: 8.016 kB / 376.9 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1617/0.3319, allocations: 1.733 MB / 378.6 MB, free: 51.35 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002813/0.3323, allocations: 165.3 kB / 378.8 MB, free: 51.26 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.3324, allocations: 24.19 kB / 378.8 MB, free: 51.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005744/0.333, allocations: 52.45 kB / 378.9 MB, free: 51.26 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001889/0.3332, allocations: 74.34 kB / 378.9 MB, free: 51.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.849e-05/0.3332, allocations: 37.2 kB / 379 MB, free: 51.26 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005729/0.3338, allocations: 442.5 kB / 379.4 MB, free: 51.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3338, allocations: 0 / 379.4 MB, free: 51.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001062/0.3349, allocations: 258.8 kB / 379.7 MB, free: 51.16 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.003104/0.338, allocations: 2.316 MB / 382 MB, free: 50.36 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00299/0.341, allocations: 1.384 MB / 383.4 MB, free: 49.81 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.341, allocations: 1.312 kB / 383.4 MB, free: 49.81 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00147/0.3425, allocations: 1.003 MB / 384.4 MB, free: 49.18 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001054/0.3436, allocations: 188.7 kB / 384.5 MB, free: 49.12 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01245/0.356, allocations: 8.64 MB / 393.2 MB, free: 44.39 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006081/0.3567, allocations: 1.029 MB / 394.2 MB, free: 43.66 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006251/0.3573, allocations: 116 kB / 394.3 MB, free: 43.64 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004792/0.3578, allocations: 392 kB / 394.7 MB, free: 43.35 MB / 318.1 MB Notification: Performance of SimCode: time 1.714e-06/0.3578, allocations: 7.938 kB / 394.7 MB, free: 43.34 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05942/0.4172, allocations: 20.32 MB / 415 MB, free: 26.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.478/9.895, allocations: 12.97 kB / 415.1 MB, free: 26.83 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)