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.0009808/0.0009808, allocations: 98.61 kB / 16.93 MB, free: 6.445 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.001053/0.001053, allocations: 185.5 kB / 17.83 MB, free: 6.012 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.471/1.471, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004699/0.0004699, allocations: 19.44 kB / 280.8 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09334/0.09382, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.005524/0.09941, allocations: 5.016 MB / 333.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003462/0.1029, allocations: 1.845 MB / 335.3 MB, free: 13.11 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006722/0.1036, allocations: 19.94 kB / 335.3 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004483/0.1041, allocations: 154.9 kB / 335.5 MB, free: 12.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000889/0.105, allocations: 422.8 kB / 335.9 MB, free: 12.52 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005781/0.1056, allocations: 219.6 kB / 336.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.1067, allocations: 0.901 MB / 337 MB, free: 11.4 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005397/0.1073, allocations: 385.8 kB / 337.4 MB, free: 11.01 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000528/0.1078, allocations: 418.5 kB / 337.8 MB, free: 10.6 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005507/0.1084, allocations: 493.9 kB / 338.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.1085, allocations: 63.94 kB / 338.3 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001293/0.1086, allocations: 64 kB / 338.4 MB, free: 9.992 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001515/0.1088, allocations: 191.2 kB / 338.6 MB, free: 9.805 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001904/0.109, allocations: 245.1 kB / 338.8 MB, free: 9.559 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001094/0.1101, allocations: 1.449 MB / 340.3 MB, free: 8.105 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1101, allocations: 4 kB / 340.3 MB, free: 8.102 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1101, allocations: 0 / 340.3 MB, free: 8.102 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.52e-05/0.1101, allocations: 0 / 340.3 MB, free: 8.102 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.00254/0.1127, allocations: 1.298 MB / 341.6 MB, free: 6.754 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.1127, allocations: 8.031 kB / 341.6 MB, free: 6.746 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001749/0.1129, allocations: 156 kB / 341.7 MB, free: 6.586 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.1131, allocations: 118.6 kB / 341.8 MB, free: 6.469 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.1141, allocations: 0.6446 MB / 342.5 MB, free: 5.777 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.1142, allocations: 77.98 kB / 342.6 MB, free: 5.703 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.1144, allocations: 103.9 kB / 342.7 MB, free: 5.602 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001797/0.1162, allocations: 1.013 MB / 343.7 MB, free: 4.578 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.018e-05/0.1162, allocations: 0 / 343.7 MB, free: 4.578 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-05/0.1163, allocations: 40 kB / 343.7 MB, free: 4.539 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.1164, allocations: 24 kB / 343.7 MB, free: 4.516 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001804/0.1182, allocations: 0.9108 MB / 344.6 MB, free: 3.605 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004547/0.1227, allocations: 3.352 MB / 348 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001492/0.1243, allocations: 0.843 MB / 348.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.885e-05/0.1243, allocations: 8.562 kB / 348.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/0.1244, allocations: 43.12 kB / 348.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.675e-06/0.1244, allocations: 0 / 348.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.008998/0.1334, allocations: 4.436 MB / 353.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.117e-05/0.1335, allocations: 89.77 kB / 353.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007875/0.1343, allocations: 0.6007 MB / 354 MB, free: 9.852 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.275e-05/0.1343, allocations: 49.64 kB / 354.1 MB, free: 9.797 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002782/0.1346, allocations: 428.1 kB / 354.5 MB, free: 9.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000276/0.1349, allocations: 386.2 kB / 354.9 MB, free: 8.988 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.038e-05/0.135, allocations: 24 kB / 354.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.1351, allocations: 390.7 kB / 355.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007922/0.1359, allocations: 406.4 kB / 355.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008807/0.1368, allocations: 0.5159 MB / 356.2 MB, free: 7.625 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008722/0.1377, allocations: 451.9 kB / 356.6 MB, free: 7.184 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.1377, allocations: 0 / 356.6 MB, free: 7.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002285/0.14, allocations: 1.231 MB / 357.8 MB, free: 5.938 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.1401, allocations: 4 kB / 357.8 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.1401, allocations: 7.984 kB / 357.9 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003862/0.1405, allocations: 130.5 kB / 358 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009934/0.1415, allocations: 267.6 kB / 358.2 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00339/0.1449, allocations: 4.556 MB / 362.8 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007698/0.1457, allocations: 63.98 kB / 362.9 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.008e-05/0.1458, allocations: 39.98 kB / 362.9 MB, free: 480 kB / 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_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.0004692/0.1462, allocations: 274.1 kB / 363.2 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001521/0.1464, allocations: 91.11 kB / 363.3 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/0.1479, allocations: 0.7879 MB / 364 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.1479, allocations: 12 kB / 364.1 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.148, allocations: 0 / 364.1 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.148, allocations: 11.97 kB / 364.1 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003942/0.1519, allocations: 2.706 MB / 366.8 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.1519, allocations: 0 / 366.8 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008743/0.1528, allocations: 215.7 kB / 367 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004009/0.1532, allocations: 159.3 kB / 367.1 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.794e-05/0.1533, allocations: 27.98 kB / 367.2 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00386/0.1572, allocations: 5.6 MB / 372.8 MB, free: 5.926 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1572, allocations: 4.031 kB / 372.8 MB, free: 5.922 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003173/0.1604, allocations: 1.827 MB / 374.6 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003006/0.1607, allocations: 168.1 kB / 374.8 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.1608, allocations: 24 kB / 374.8 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005894/0.1614, allocations: 55.95 kB / 374.8 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/0.1616, allocations: 80.58 kB / 374.9 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.896e-05/0.1617, allocations: 35.98 kB / 375 MB, free: 3.664 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006164/0.1623, allocations: 435.1 kB / 375.4 MB, free: 3.238 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1623, allocations: 0 / 375.4 MB, free: 3.238 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009973/0.1633, allocations: 256 kB / 375.6 MB, free: 2.988 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.003385/0.1667, allocations: 2.62 MB / 378.3 MB, free: 316 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.1647/0.3315, allocations: 1.38 MB / 379.6 MB, free: 51.33 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.3315, allocations: 0 / 379.6 MB, free: 51.33 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00167/0.3332, allocations: 1.022 MB / 380.7 MB, free: 50.88 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001078/0.3343, allocations: 145.8 kB / 380.8 MB, free: 50.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01206/0.3464, allocations: 7.729 MB / 388.5 MB, free: 46.9 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007921/0.3472, allocations: 1.043 MB / 389.6 MB, free: 46.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007016/0.3479, allocations: 120.8 kB / 389.7 MB, free: 46.15 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004959/0.3484, allocations: 383.7 kB / 390.1 MB, free: 45.87 MB / 318.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3484, allocations: 0 / 390.1 MB, free: 45.87 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03197/0.3804, allocations: 18.98 MB / 409 MB, free: 33.36 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/0.3806, allocations: 218.5 kB / 409.3 MB, free: 33.12 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.13/2.51, allocations: 0 / 409.3 MB, free: 33.12 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: