Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_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.001073/0.001073, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.001029/0.001029, allocations: 175.4 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002923/0.0002925, allocations: 8 kB / 301.5 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1183, allocations: 50.41 MB / 351.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007665/0.1261, allocations: 5.834 MB / 357.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004453/0.1306, allocations: 1.799 MB / 359.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001264/0.1319, allocations: 19.94 kB / 359.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009725/0.1329, allocations: 174.8 kB / 359.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001776/0.1347, allocations: 345.5 kB / 360.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009913/0.1357, allocations: 327.8 kB / 360.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002143/0.1378, allocations: 1.382 MB / 361.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008993/0.1387, allocations: 447.2 kB / 362.2 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008642/0.1396, allocations: 426.2 kB / 362.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009495/0.1406, allocations: 0.5132 MB / 363.2 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000292/0.1409, allocations: 60 kB / 363.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003441/0.1412, allocations: 64 kB / 363.3 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002501/0.1415, allocations: 199 kB / 363.5 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008951/0.1424, allocations: 0.5575 MB / 364 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001727/0.1441, allocations: 1.712 MB / 365.8 MB, free: 5.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.1442, allocations: 4 kB / 365.8 MB, free: 5.668 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1442, allocations: 0 / 365.8 MB, free: 5.668 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.749e-05/0.1442, allocations: 0 / 365.8 MB, free: 5.668 MB / 302.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.003326/0.1476, allocations: 1.29 MB / 367.1 MB, free: 4.324 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.1476, allocations: 12.03 kB / 367.1 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002476/0.1479, allocations: 156.3 kB / 367.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001879/0.1481, allocations: 119.5 kB / 367.3 MB, free: 4.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001081/0.1492, allocations: 0.6611 MB / 368 MB, free: 3.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001254/0.1493, allocations: 78.55 kB / 368.1 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.1495, allocations: 96.38 kB / 368.2 MB, free: 3.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001997/0.1515, allocations: 1.036 MB / 369.2 MB, free: 2.109 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.213e-05/0.1515, allocations: 7.906 kB / 369.2 MB, free: 2.102 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.607e-05/0.1516, allocations: 36 kB / 369.2 MB, free: 2.066 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.491e-05/0.1516, allocations: 24 kB / 369.3 MB, free: 2.043 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001992/0.1536, allocations: 0.9187 MB / 370.2 MB, free: 1.129 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2135/0.3671, allocations: 3.349 MB / 373.5 MB, free: 22.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/0.369, allocations: 0.8289 MB / 374.4 MB, free: 22.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.3701, allocations: 491.6 kB / 374.8 MB, free: 22.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.461e-05/0.3701, allocations: 13.98 kB / 374.9 MB, free: 22.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/0.3702, allocations: 52.69 kB / 374.9 MB, free: 22.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 3.386e-06/0.3702, allocations: 0 / 374.9 MB, free: 22.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.01024/0.3804, allocations: 4.468 MB / 379.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.3805, allocations: 89.33 kB / 379.5 MB, free: 20.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000823/0.3813, allocations: 0.5998 MB / 380.1 MB, free: 19.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.906e-05/0.3814, allocations: 45.61 kB / 380.1 MB, free: 19.72 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002776/0.3817, allocations: 427.9 kB / 380.5 MB, free: 19.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002772/0.382, allocations: 392.1 kB / 380.9 MB, free: 19.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/0.3821, allocations: 90.75 kB / 381 MB, free: 19.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.3822, allocations: 394.3 kB / 381.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009145/0.3832, allocations: 402.7 kB / 381.8 MB, free: 18.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/0.3842, allocations: 0.5327 MB / 382.3 MB, free: 18.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001842/0.386, allocations: 0.9266 MB / 383.2 MB, free: 17.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.3861, allocations: 1.031 kB / 383.2 MB, free: 17.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002706/0.3888, allocations: 1.239 MB / 384.5 MB, free: 17.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/0.3888, allocations: 10.73 kB / 384.5 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.3888, allocations: 2.812 kB / 384.5 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004481/0.3893, allocations: 130.8 kB / 384.6 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/0.3904, allocations: 260.7 kB / 384.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003071/0.3935, allocations: 4.53 MB / 389.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008179/0.3943, allocations: 65.64 kB / 389.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.716e-05/0.3944, allocations: 38.38 kB / 389.5 MB, free: 12.82 MB / 302.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.0005134/0.3949, allocations: 283.5 kB / 389.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.3951, allocations: 86.59 kB / 389.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001731/0.3969, allocations: 0.7888 MB / 390.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-05/0.3969, allocations: 11.16 kB / 390.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.323e-05/0.3969, allocations: 4.062 kB / 390.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-05/0.397, allocations: 6.5 kB / 390.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004547/0.4015, allocations: 2.706 MB / 393.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.4015, allocations: 0 / 393.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000882/0.4024, allocations: 214.9 kB / 393.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004736/0.4029, allocations: 157.1 kB / 393.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.942e-05/0.403, allocations: 25.97 kB / 393.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003216/0.4062, allocations: 5.572 MB / 399.3 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.4062, allocations: 1.922 kB / 399.3 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003133/0.4094, allocations: 1.813 MB / 401.2 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001872/0.4096, allocations: 157.6 kB / 401.3 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.901e-05/0.4097, allocations: 27.38 kB / 401.3 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005784/0.4103, allocations: 59.39 kB / 401.4 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.4104, allocations: 87.97 kB / 401.5 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.319e-05/0.4105, allocations: 30.27 kB / 401.5 MB, free: 3.863 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005317/0.411, allocations: 443.5 kB / 401.9 MB, free: 3.605 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.411, allocations: 1.125 kB / 401.9 MB, free: 3.605 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000959/0.412, allocations: 256.5 kB / 402.2 MB, free: 3.57 MB / 302.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.003003/0.415, allocations: 2.387 MB / 404.6 MB, free: 1.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002394/0.4174, allocations: 1.38 MB / 406 MB, free: 340 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.4174, allocations: 8.562 kB / 406 MB, free: 332 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001474/0.4189, allocations: 1.023 MB / 407 MB, free: 15.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/0.42, allocations: 178.7 kB / 407.2 MB, free: 15.08 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01478/0.4348, allocations: 9.34 MB / 416.5 MB, free: 5.469 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006394/0.4355, allocations: 1.027 MB / 417.5 MB, free: 4.418 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000627/0.4361, allocations: 119.6 kB / 417.7 MB, free: 4.297 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000543/0.4367, allocations: 388.5 kB / 418 MB, free: 3.918 MB / 318.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4367, allocations: 0 / 418 MB, free: 3.918 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04348/0.4801, allocations: 19.33 MB / 437.4 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002187/0.4804, allocations: 250.5 kB / 437.6 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.521/3.002, allocations: 0 / 437.6 MB, free: 0.6406 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)