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.000981/0.0009811, allocations: 94.28 kB / 16.3 MB, free: 5.996 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.00101/0.00101, allocations: 184.6 kB / 17.2 MB, free: 5.914 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.392/1.392, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002401/0.0002401, allocations: 8.719 kB / 300.8 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09974/0.1, allocations: 50.42 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.005813/0.1058, allocations: 5.083 MB / 356.3 MB, free: 6.543 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00315/0.109, allocations: 1.816 MB / 358.1 MB, free: 4.719 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005339/0.1096, allocations: 19.94 kB / 358.1 MB, free: 4.699 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003777/0.11, allocations: 158.9 kB / 358.3 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008386/0.1108, allocations: 426.7 kB / 358.7 MB, free: 4.125 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005551/0.1114, allocations: 203.7 kB / 358.9 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001155/0.1126, allocations: 0.9164 MB / 359.8 MB, free: 3.008 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00052/0.1131, allocations: 366 kB / 360.2 MB, free: 2.633 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005603/0.1137, allocations: 430.4 kB / 360.6 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005982/0.1143, allocations: 497.8 kB / 361.1 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.1144, allocations: 60 kB / 361.2 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001254/0.1145, allocations: 68 kB / 361.2 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001544/0.1147, allocations: 187.2 kB / 361.4 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.1149, allocations: 245.1 kB / 361.6 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00113/0.116, allocations: 1.453 MB / 363.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.116, allocations: 0 / 363.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.116, allocations: 0 / 363.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.116, allocations: 0 / 363.1 MB, free: 15.7 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.002472/0.1185, allocations: 1.294 MB / 364.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.1186, allocations: 12.03 kB / 364.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000169/0.1187, allocations: 140.1 kB / 364.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.1189, allocations: 118.6 kB / 364.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.12, allocations: 0.6562 MB / 365.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000123/0.1201, allocations: 78 kB / 365.4 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001444/0.1203, allocations: 103.9 kB / 365.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00187/0.1222, allocations: 1.013 MB / 366.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.25e-05/0.1222, allocations: 4 kB / 366.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.64e-05/0.1223, allocations: 39.94 kB / 366.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.1223, allocations: 28 kB / 366.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001879/0.1242, allocations: 0.9108 MB / 367.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005113/0.1293, allocations: 3.348 MB / 370.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.1309, allocations: 0.8359 MB / 371.7 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.064e-05/0.131, allocations: 16.55 kB / 371.7 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.131, allocations: 39.12 kB / 371.7 MB, free: 6.812 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 5.751e-06/0.131, allocations: 0 / 371.7 MB, free: 6.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.009542/0.1406, allocations: 4.44 MB / 376.2 MB, free: 2.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.11e-05/0.1407, allocations: 85.77 kB / 376.2 MB, free: 2.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008349/0.1415, allocations: 0.6007 MB / 376.8 MB, free: 1.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.287e-05/0.1416, allocations: 45.7 kB / 376.9 MB, free: 1.418 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003183/0.1419, allocations: 424.2 kB / 377.3 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002887/0.1422, allocations: 386.2 kB / 377.7 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.409e-05/0.1423, allocations: 28 kB / 377.7 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.1425, allocations: 398.7 kB / 378.1 MB, free: 192 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008559/0.1433, allocations: 398.4 kB / 378.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008899/0.1442, allocations: 0.5276 MB / 379 MB, free: 15.24 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008742/0.1451, allocations: 444 kB / 379.5 MB, free: 14.81 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1451, allocations: 4 kB / 379.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002346/0.1475, allocations: 1.219 MB / 380.7 MB, free: 13.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.1475, allocations: 12.16 kB / 380.7 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.1475, allocations: 4 kB / 380.7 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003687/0.1479, allocations: 130.5 kB / 380.8 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/0.149, allocations: 263.6 kB / 381.1 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003574/0.1526, allocations: 4.548 MB / 385.6 MB, free: 8.199 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000734/0.1533, allocations: 83.95 kB / 385.7 MB, free: 8.117 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.404e-05/0.1534, allocations: 32 kB / 385.7 MB, free: 8.086 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.0004421/0.1539, allocations: 291.4 kB / 386 MB, free: 7.793 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.154, allocations: 86.97 kB / 386.1 MB, free: 7.707 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001543/0.1556, allocations: 0.784 MB / 386.9 MB, free: 6.902 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.1556, allocations: 8 kB / 386.9 MB, free: 6.895 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.457e-06/0.1556, allocations: 7.938 kB / 386.9 MB, free: 6.887 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.1556, allocations: 3.984 kB / 386.9 MB, free: 6.883 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003989/0.1596, allocations: 2.706 MB / 389.6 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.1596, allocations: 0 / 389.6 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008875/0.1605, allocations: 215.8 kB / 389.8 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000419/0.161, allocations: 155.2 kB / 390 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.072e-05/0.161, allocations: 24 kB / 390 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004053/0.1651, allocations: 5.608 MB / 395.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.1651, allocations: 7.984 kB / 395.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003149/0.1683, allocations: 1.827 MB / 397.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000262/0.1686, allocations: 168 kB / 397.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.1687, allocations: 20 kB / 397.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005715/0.1693, allocations: 67.95 kB / 397.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.1694, allocations: 76.41 kB / 397.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.679e-05/0.1695, allocations: 31.98 kB / 397.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005516/0.17, allocations: 439.1 kB / 398.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.17, allocations: 0 / 398.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008997/0.171, allocations: 252 kB / 398.5 MB, free: 10.6 MB / 334.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.005417/0.1764, allocations: 2.612 MB / 401.1 MB, free: 7.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003796/0.1802, allocations: 1.381 MB / 402.5 MB, free: 6.516 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.1802, allocations: 0 / 402.5 MB, free: 6.516 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002357/0.1826, allocations: 1.014 MB / 403.5 MB, free: 5.449 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00142/0.184, allocations: 155.3 kB / 403.6 MB, free: 5.305 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01756/0.2016, allocations: 7.746 MB / 411.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001175/0.2029, allocations: 1.044 MB / 412.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001001/0.2039, allocations: 115.6 kB / 412.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007867/0.2047, allocations: 387.3 kB / 412.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of SimCode: time 1.754e-06/0.2047, allocations: 0 / 412.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2489/0.4536, allocations: 18.96 MB / 431.9 MB, free: 63.25 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/0.4539, allocations: 224.5 kB / 432.1 MB, free: 63.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.38/2.834, allocations: 2.719 kB / 432.1 MB, free: 63.02 MB / 350.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/linux/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)