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.0008833/0.0008833, allocations: 94.28 kB / 17.3 MB, free: 6.391 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.001005/0.001005, allocations: 173.1 kB / 18.2 MB, free: 5.551 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.285/1.285, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0005998/0.0005999, allocations: 12 kB / 281.5 MB, free: 3.301 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07539/0.076, allocations: 47.57 MB / 329.1 MB, free: 3.656 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.005337/0.08138, allocations: 5.769 MB / 334.8 MB, free: 13.86 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002729/0.08413, allocations: 1.832 MB / 336.7 MB, free: 12.01 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003799/0.08453, allocations: 19.94 kB / 336.7 MB, free: 11.99 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004153/0.08496, allocations: 166.8 kB / 336.8 MB, free: 11.83 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006584/0.08562, allocations: 345.5 kB / 337.2 MB, free: 11.49 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005066/0.08614, allocations: 327.8 kB / 337.5 MB, free: 11.17 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001095/0.08724, allocations: 1.382 MB / 338.9 MB, free: 9.781 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005299/0.08778, allocations: 443 kB / 339.3 MB, free: 9.328 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00038/0.08817, allocations: 438.1 kB / 339.7 MB, free: 8.898 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004609/0.08864, allocations: 0.4976 MB / 340.2 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.669e-05/0.08875, allocations: 64 kB / 340.3 MB, free: 8.336 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.08887, allocations: 60 kB / 340.4 MB, free: 8.277 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.08902, allocations: 203.1 kB / 340.6 MB, free: 8.078 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004082/0.08944, allocations: 0.5614 MB / 341.1 MB, free: 7.508 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001156/0.0906, allocations: 1.72 MB / 342.8 MB, free: 5.781 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.09061, allocations: 0 / 342.8 MB, free: 5.781 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.09062, allocations: 3.938 kB / 342.8 MB, free: 5.777 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.574e-05/0.09064, allocations: 4 kB / 342.8 MB, free: 5.773 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.002321/0.09297, allocations: 1.282 MB / 344.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.09302, allocations: 8.031 kB / 344.1 MB, free: 4.43 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001571/0.09318, allocations: 152.3 kB / 344.3 MB, free: 4.273 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001596/0.09335, allocations: 119.5 kB / 344.4 MB, free: 4.156 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009047/0.09426, allocations: 0.665 MB / 345.1 MB, free: 3.449 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.09438, allocations: 82.5 kB / 345.1 MB, free: 3.367 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.09453, allocations: 100.3 kB / 345.2 MB, free: 3.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/0.09627, allocations: 1.033 MB / 346.3 MB, free: 2.227 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.063e-05/0.09631, allocations: 7.984 kB / 346.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.959e-05/0.09639, allocations: 40 kB / 346.3 MB, free: 2.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.09642, allocations: 24 kB / 346.3 MB, free: 2.156 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001781/0.0982, allocations: 0.9108 MB / 347.3 MB, free: 1.25 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004316/0.1025, allocations: 3.364 MB / 350.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.1039, allocations: 0.8271 MB / 351.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008442/0.1047, allocations: 0.4952 MB / 351.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.467e-05/0.1048, allocations: 13.14 kB / 352 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/0.1048, allocations: 43.12 kB / 352 MB, free: 12.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 1.924e-06/0.1048, allocations: 0 / 352 MB, free: 12.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.008729/0.1136, allocations: 4.46 MB / 356.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.1136, allocations: 93.77 kB / 356.6 MB, free: 7.574 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006995/0.1143, allocations: 0.6007 MB / 357.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.985e-05/0.1144, allocations: 45.7 kB / 357.2 MB, free: 6.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002528/0.1147, allocations: 428.1 kB / 357.6 MB, free: 6.484 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000243/0.1149, allocations: 386.2 kB / 358 MB, free: 6.102 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.115, allocations: 93.66 kB / 358.1 MB, free: 6.004 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.1152, allocations: 398.7 kB / 358.5 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008179/0.116, allocations: 406.4 kB / 358.9 MB, free: 5.211 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008829/0.1169, allocations: 0.5354 MB / 359.4 MB, free: 4.637 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00162/0.1185, allocations: 0.9356 MB / 360.3 MB, free: 3.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1185, allocations: 0 / 360.3 MB, free: 3.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002184/0.1207, allocations: 1.239 MB / 361.6 MB, free: 2.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.1208, allocations: 7.938 kB / 361.6 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.1208, allocations: 4 kB / 361.6 MB, free: 2.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003405/0.1211, allocations: 130.5 kB / 361.7 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009552/0.1221, allocations: 255.7 kB / 362 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003086/0.1252, allocations: 4.54 MB / 366.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006142/0.1258, allocations: 60.03 kB / 366.6 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-05/0.1259, allocations: 43.98 kB / 366.6 MB, free: 12.97 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.0003716/0.1263, allocations: 269.7 kB / 366.9 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.1264, allocations: 94.95 kB / 367 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/0.1279, allocations: 0.7878 MB / 367.8 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/0.1279, allocations: 12 kB / 367.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.188e-06/0.128, allocations: 8 kB / 367.8 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.128, allocations: 3.984 kB / 367.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00392/0.1319, allocations: 2.698 MB / 370.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.1319, allocations: 0 / 370.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008474/0.1328, allocations: 219.8 kB / 370.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003851/0.1332, allocations: 155.3 kB / 370.8 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.569e-05/0.1332, allocations: 27.98 kB / 370.9 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003529/0.1368, allocations: 5.58 MB / 376.4 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.1368, allocations: 4.031 kB / 376.5 MB, free: 2.453 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00297/0.1398, allocations: 1.802 MB / 378.3 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000166/0.14, allocations: 164.1 kB / 378.4 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.1401, allocations: 24 kB / 378.4 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005644/0.1406, allocations: 63.95 kB / 378.5 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/0.1408, allocations: 76.39 kB / 378.6 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-05/0.1408, allocations: 39.92 kB / 378.6 MB, free: 240 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.1371/0.2779, allocations: 435.2 kB / 379 MB, free: 50.69 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.61e-07/0.2779, allocations: 0 / 379 MB, free: 50.69 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001387/0.2793, allocations: 259.3 kB / 379.3 MB, free: 50.69 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.003583/0.2829, allocations: 2.371 MB / 381.7 MB, free: 49.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002256/0.2852, allocations: 1.387 MB / 383.1 MB, free: 49.55 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.2852, allocations: 0 / 383.1 MB, free: 49.55 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001267/0.2865, allocations: 1.028 MB / 384.1 MB, free: 49.09 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.2876, allocations: 175.5 kB / 384.3 MB, free: 49.08 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01266/0.3003, allocations: 9.328 MB / 393.6 MB, free: 44.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005731/0.3009, allocations: 1.021 MB / 394.6 MB, free: 43.3 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006039/0.3015, allocations: 122.3 kB / 394.7 MB, free: 43.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004602/0.3019, allocations: 387.5 kB / 395.1 MB, free: 42.98 MB / 318.1 MB Notification: Performance of SimCode: time 8.71e-07/0.302, allocations: 0 / 395.1 MB, free: 42.98 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.965/2.267, allocations: 19.34 MB / 414.4 MB, free: 27.79 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001633/2.267, allocations: 245.2 kB / 414.7 MB, free: 27.54 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.672/5.94, allocations: 4 kB / 414.7 MB, free: 27.53 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)