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.001507/0.001508, allocations: 95.94 kB / 16.95 MB, free: 6.891 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.00201/0.00201, allocations: 185.9 kB / 17.84 MB, free: 6.137 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.786/1.786, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004957/0.0004959, allocations: 8 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1264, allocations: 47.57 MB / 328.5 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.006933/0.1334, allocations: 5.432 MB / 333.9 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004333/0.1378, allocations: 1.789 MB / 335.7 MB, free: 12.73 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007402/0.1386, allocations: 15.94 kB / 335.7 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005717/0.1392, allocations: 162.8 kB / 335.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009052/0.1401, allocations: 333.5 kB / 336.2 MB, free: 12.22 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006982/0.1408, allocations: 211.7 kB / 336.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001731/0.1425, allocations: 1.323 MB / 337.7 MB, free: 10.69 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006852/0.1432, allocations: 369.9 kB / 338.1 MB, free: 10.31 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005152/0.1438, allocations: 422.3 kB / 338.5 MB, free: 9.898 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005882/0.1444, allocations: 497.8 kB / 339 MB, free: 9.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000125/0.1445, allocations: 60 kB / 339 MB, free: 9.352 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.1446, allocations: 64 kB / 339.1 MB, free: 9.289 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.1449, allocations: 191.1 kB / 339.3 MB, free: 9.102 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002551/0.1451, allocations: 245.2 kB / 339.5 MB, free: 8.855 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00144/0.1466, allocations: 1.461 MB / 341 MB, free: 7.391 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.1466, allocations: 0 / 341 MB, free: 7.391 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1466, allocations: 0 / 341 MB, free: 7.391 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.1466, allocations: 0 / 341 MB, free: 7.391 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.002741/0.1494, allocations: 1.297 MB / 342.3 MB, free: 6.043 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.931e-05/0.1494, allocations: 8.031 kB / 342.3 MB, free: 6.035 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002162/0.1497, allocations: 144.1 kB / 342.4 MB, free: 5.887 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002067/0.1499, allocations: 122.6 kB / 342.5 MB, free: 5.766 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/0.1511, allocations: 0.6524 MB / 343.2 MB, free: 5.066 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.1513, allocations: 85.98 kB / 343.3 MB, free: 4.984 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001682/0.1514, allocations: 95.91 kB / 343.4 MB, free: 4.891 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002272/0.1537, allocations: 1.017 MB / 344.4 MB, free: 3.863 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.08e-05/0.1538, allocations: 8 kB / 344.4 MB, free: 3.855 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.101e-05/0.1539, allocations: 36 kB / 344.4 MB, free: 3.82 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.783e-05/0.1539, allocations: 24 kB / 344.4 MB, free: 3.797 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002/0.1559, allocations: 0.9147 MB / 345.4 MB, free: 2.883 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005501/0.1614, allocations: 3.348 MB / 348.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001614/0.1631, allocations: 0.843 MB / 349.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009661/0.164, allocations: 0.4913 MB / 350 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.652e-05/0.1641, allocations: 13.16 kB / 350.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.953e-05/0.1642, allocations: 43.06 kB / 350.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 3.075e-06/0.1642, allocations: 0 / 350.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.009785/0.174, allocations: 4.442 MB / 354.5 MB, free: 9.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.604e-05/0.1741, allocations: 89.77 kB / 354.6 MB, free: 9.234 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008465/0.1749, allocations: 0.5968 MB / 355.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.24e-05/0.175, allocations: 45.7 kB / 355.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003448/0.1754, allocations: 424.1 kB / 355.7 MB, free: 8.156 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003358/0.1757, allocations: 398.2 kB / 356.1 MB, free: 7.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.486e-05/0.1758, allocations: 20 kB / 356.1 MB, free: 7.742 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002195/0.176, allocations: 390.8 kB / 356.5 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000839/0.1768, allocations: 402.4 kB / 356.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009375/0.1778, allocations: 0.5276 MB / 357.4 MB, free: 6.395 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009234/0.1787, allocations: 443.9 kB / 357.8 MB, free: 5.961 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1787, allocations: 8 kB / 357.8 MB, free: 5.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002413/0.1812, allocations: 1.22 MB / 359.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/0.1812, allocations: 12 kB / 359.1 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.1812, allocations: 4 kB / 359.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004266/0.1817, allocations: 134.5 kB / 359.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.1827, allocations: 267.5 kB / 359.5 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004042/0.1867, allocations: 4.524 MB / 364 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008468/0.1876, allocations: 68.03 kB / 364.1 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-05/0.1877, allocations: 39.98 kB / 364.1 MB, free: 15.27 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_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 initialization (128): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006111/0.1883, allocations: 278.1 kB / 364.4 MB, free: 14.99 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001922/0.1885, allocations: 90.95 kB / 364.5 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.1902, allocations: 0.784 MB / 365.2 MB, free: 14.1 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.1902, allocations: 16 kB / 365.3 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/0.1902, allocations: 0 / 365.3 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.902e-05/0.1903, allocations: 11.94 kB / 365.3 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004642/0.1949, allocations: 2.702 MB / 368 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.1949, allocations: 0 / 368 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008789/0.1958, allocations: 215.8 kB / 368.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004738/0.1963, allocations: 155.3 kB / 368.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.574e-05/0.1964, allocations: 27.98 kB / 368.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004581/0.201, allocations: 5.556 MB / 373.9 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.201, allocations: 4.125 kB / 373.9 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003367/0.2044, allocations: 1.798 MB / 375.7 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003024/0.2047, allocations: 164.1 kB / 375.9 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.2048, allocations: 20 kB / 375.9 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006007/0.2054, allocations: 71.91 kB / 376 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.2056, allocations: 76.39 kB / 376 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.973e-05/0.2057, allocations: 31.98 kB / 376.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006077/0.2063, allocations: 435.1 kB / 376.5 MB, free: 2.133 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2063, allocations: 3.938 kB / 376.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009435/0.2073, allocations: 256 kB / 376.8 MB, free: 1.879 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2505/0.4577, allocations: 2.378 MB / 379.1 MB, free: 51.49 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003256/0.461, allocations: 1.372 MB / 380.5 MB, free: 51.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.303e-06/0.4611, allocations: 0.6875 kB / 380.5 MB, free: 51.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001676/0.4628, allocations: 1.018 MB / 381.5 MB, free: 50.71 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.4641, allocations: 165 kB / 381.7 MB, free: 50.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/0.4755, allocations: 6.098 MB / 387.8 MB, free: 47.79 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006941/0.4762, allocations: 1.021 MB / 388.8 MB, free: 47.08 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006539/0.4769, allocations: 121.6 kB / 388.9 MB, free: 47.04 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005381/0.4774, allocations: 387.7 kB / 389.3 MB, free: 46.76 MB / 318.1 MB Notification: Performance of SimCode: time 1.543e-06/0.4774, allocations: 0 / 389.3 MB, free: 46.76 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03245/0.5099, allocations: 18.99 MB / 408.3 MB, free: 33.89 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/0.5101, allocations: 232.3 kB / 408.5 MB, free: 33.65 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.587/3.097, allocations: 3.828 kB / 408.5 MB, free: 33.65 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/linux/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) Environment - environmentSimulation: