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.001233/0.001237, allocations: 109.8 kB / 17.16 MB, free: 6.309 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.001251/0.001251, allocations: 198 kB / 18.07 MB, free: 5.41 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.44/1.44, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.0011/0.0011, allocations: 56.52 kB / 280.1 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09205/0.09316, allocations: 46.63 MB / 326.7 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.006779/0.09998, allocations: 6.24 MB / 332.9 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003152/0.1032, allocations: 1.836 MB / 334.8 MB, free: 12.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005187/0.1038, allocations: 19.94 kB / 334.8 MB, free: 12.66 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005668/0.1043, allocations: 170.8 kB / 335 MB, free: 12.49 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009618/0.1053, allocations: 341.5 kB / 335.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006196/0.1059, allocations: 335.7 kB / 335.6 MB, free: 11.83 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001334/0.1073, allocations: 1.37 MB / 337 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005841/0.1079, allocations: 447 kB / 337.4 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005963/0.1085, allocations: 466.1 kB / 337.9 MB, free: 9.539 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007696/0.1093, allocations: 0.5444 MB / 338.4 MB, free: 8.992 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000125/0.1094, allocations: 80 kB / 338.5 MB, free: 8.914 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001605/0.1096, allocations: 76 kB / 338.6 MB, free: 8.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000215/0.1098, allocations: 219.1 kB / 338.8 MB, free: 8.625 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000637/0.1104, allocations: 0.5635 MB / 339.4 MB, free: 8.059 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001458/0.1119, allocations: 1.764 MB / 341.1 MB, free: 6.289 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1119, allocations: 0 / 341.1 MB, free: 6.289 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.607e-06/0.1119, allocations: 0 / 341.1 MB, free: 6.289 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.3e-05/0.112, allocations: 3.938 kB / 341.1 MB, free: 6.285 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.003033/0.115, allocations: 1.449 MB / 342.6 MB, free: 4.781 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.1151, allocations: 12.03 kB / 342.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001975/0.1153, allocations: 148.3 kB / 342.7 MB, free: 4.617 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000183/0.1154, allocations: 119.5 kB / 342.8 MB, free: 4.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.1165, allocations: 0.665 MB / 343.5 MB, free: 3.793 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002266/0.1168, allocations: 82.48 kB / 343.6 MB, free: 3.711 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.1169, allocations: 104.3 kB / 343.7 MB, free: 3.609 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001874/0.1188, allocations: 1.009 MB / 344.7 MB, free: 2.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.569e-05/0.1188, allocations: 7.906 kB / 344.7 MB, free: 2.582 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.263e-05/0.1189, allocations: 39.94 kB / 344.7 MB, free: 2.543 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.119, allocations: 20 kB / 344.8 MB, free: 2.523 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002003/0.121, allocations: 0.8718 MB / 345.6 MB, free: 1.656 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005573/0.1265, allocations: 3.332 MB / 349 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001476/0.128, allocations: 0.8153 MB / 349.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009323/0.129, allocations: 487 kB / 350.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.429e-05/0.1291, allocations: 13.14 kB / 350.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.943e-05/0.1291, allocations: 43.12 kB / 350.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.625e-06/0.1291, allocations: 4 kB / 350.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.009611/0.1387, allocations: 4.293 MB / 354.6 MB, free: 8.312 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.1388, allocations: 89.77 kB / 354.7 MB, free: 8.207 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008188/0.1397, allocations: 0.6046 MB / 355.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.145e-05/0.1397, allocations: 45.7 kB / 355.4 MB, free: 7.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002725/0.14, allocations: 432 kB / 355.8 MB, free: 7.109 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004425/0.1404, allocations: 390.2 kB / 356.2 MB, free: 6.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002791/0.1407, allocations: 182.9 kB / 356.3 MB, free: 6.539 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002246/0.141, allocations: 394.7 kB / 356.7 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000813/0.1418, allocations: 386.4 kB / 357.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008895/0.1427, allocations: 0.5081 MB / 357.6 MB, free: 5.223 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/0.1443, allocations: 0.8887 MB / 358.5 MB, free: 4.301 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.1443, allocations: 4 kB / 358.5 MB, free: 4.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002324/0.1467, allocations: 1.192 MB / 359.7 MB, free: 3.086 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.1467, allocations: 4 kB / 359.7 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.824e-05/0.1467, allocations: 4 kB / 359.7 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000389/0.1471, allocations: 134.4 kB / 359.8 MB, free: 2.938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/0.1481, allocations: 243.7 kB / 360.1 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00356/0.1517, allocations: 4.532 MB / 364.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007994/0.1525, allocations: 51.95 kB / 364.7 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-05/0.1526, allocations: 39.98 kB / 364.7 MB, free: 13.68 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.0004595/0.1531, allocations: 269.7 kB / 365 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.1533, allocations: 86.97 kB / 365 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001475/0.1547, allocations: 0.7838 MB / 365.8 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.659e-06/0.1548, allocations: 12 kB / 365.8 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.1548, allocations: 3.984 kB / 365.8 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.1548, allocations: 7.984 kB / 365.8 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004023/0.1588, allocations: 2.651 MB / 368.5 MB, free: 9.742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.1589, allocations: 0 / 368.5 MB, free: 9.742 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008837/0.1598, allocations: 211.8 kB / 368.7 MB, free: 9.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004555/0.1602, allocations: 155.2 kB / 368.9 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.338e-05/0.1603, allocations: 31.92 kB / 368.9 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00407/0.1644, allocations: 5.568 MB / 374.5 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.1644, allocations: 4.031 kB / 374.5 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003469/0.1679, allocations: 1.747 MB / 376.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003181/0.1682, allocations: 164.1 kB / 376.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.1683, allocations: 27.98 kB / 376.4 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005932/0.1689, allocations: 43.97 kB / 376.4 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.1691, allocations: 80.39 kB / 376.5 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.69e-05/0.1692, allocations: 31.98 kB / 376.5 MB, free: 1.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005597/0.1698, allocations: 447.1 kB / 377 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1698, allocations: 0 / 377 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008956/0.1707, allocations: 256 kB / 377.2 MB, free: 416 kB / 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.1526/0.3233, allocations: 2.312 MB / 379.5 MB, free: 51.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002747/0.3261, allocations: 1.342 MB / 380.9 MB, free: 50.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.3261, allocations: 3.609 kB / 380.9 MB, free: 50.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001457/0.3276, allocations: 0.9992 MB / 381.9 MB, free: 50.38 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.3288, allocations: 165.5 kB / 382.1 MB, free: 50.37 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0147/0.3435, allocations: 9.059 MB / 391.1 MB, free: 45.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006321/0.3442, allocations: 1.022 MB / 392.1 MB, free: 44.48 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006492/0.3448, allocations: 118.7 kB / 392.2 MB, free: 44.46 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004652/0.3453, allocations: 386.9 kB / 392.6 MB, free: 44.18 MB / 318.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3453, allocations: 0 / 392.6 MB, free: 44.18 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06575/0.4111, allocations: 19.62 MB / 412.2 MB, free: 29.46 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001413/0.4113, allocations: 245.9 kB / 412.5 MB, free: 29.21 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.529/2.94, allocations: 4 kB / 412.5 MB, free: 29.2 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)