Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001055/0.001055, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001102/0.001102, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 227.4 MB / 246.3 MB, free: 9.031 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001085/0.001085, allocations: 55.75 kB / 306.4 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09168/0.09278, allocations: 50.54 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007595/0.1004, allocations: 6.421 MB / 363.3 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003565/0.104, allocations: 1.897 MB / 365.2 MB, free: 5.812 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001027/0.1051, allocations: 19.94 kB / 365.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008358/0.1059, allocations: 170.8 kB / 365.4 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001359/0.1073, allocations: 353.5 kB / 365.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008272/0.1082, allocations: 335.8 kB / 366.1 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001258/0.1094, allocations: 1.401 MB / 367.5 MB, free: 3.543 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005541/0.11, allocations: 447.4 kB / 367.9 MB, free: 3.086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004773/0.1105, allocations: 478 kB / 368.4 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004942/0.111, allocations: 0.5521 MB / 368.9 MB, free: 2.062 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001185/0.1111, allocations: 76 kB / 369 MB, free: 1.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001985/0.1113, allocations: 88 kB / 369.1 MB, free: 1.902 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001882/0.1115, allocations: 227 kB / 369.3 MB, free: 1.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004922/0.112, allocations: 0.5791 MB / 369.9 MB, free: 1.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1683/0.2803, allocations: 1.796 MB / 371.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.2803, allocations: 0.875 kB / 371.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2803, allocations: 0 / 371.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.357e-05/0.2804, allocations: 0 / 371.7 MB, free: 12.18 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002857/0.2833, allocations: 1.444 MB / 373.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.2833, allocations: 9.984 kB / 373.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002012/0.2835, allocations: 151.6 kB / 373.3 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005401/0.2841, allocations: 149.6 kB / 373.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009922/0.2851, allocations: 0.6804 MB / 374.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.2852, allocations: 83.42 kB / 374.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.2854, allocations: 98.11 kB / 374.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001666/0.2871, allocations: 0.9724 MB / 375.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.329e-05/0.2871, allocations: 8.688 kB / 375.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.926e-05/0.2872, allocations: 44.09 kB / 375.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.738e-05/0.2872, allocations: 24.42 kB / 375.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.2887, allocations: 0.8055 MB / 376.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004617/0.2934, allocations: 3.339 MB / 379.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.2946, allocations: 0.8055 MB / 380.3 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006519/0.2952, allocations: 438.3 kB / 380.7 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.949e-05/0.2953, allocations: 18.84 kB / 380.7 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.2953, allocations: 49.98 kB / 380.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=95): time 2.896e-06/0.2953, allocations: 0 / 380.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=119): time 0.007688/0.303, allocations: 4.172 MB / 385 MB, free: 6.648 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.3031, allocations: 92.98 kB / 385 MB, free: 6.551 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007979/0.3039, allocations: 0.6373 MB / 385.7 MB, free: 6.254 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.392e-05/0.3039, allocations: 45.14 kB / 385.7 MB, free: 6.207 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/0.3042, allocations: 433.2 kB / 386.1 MB, free: 5.867 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002162/0.3044, allocations: 413.8 kB / 386.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002843/0.3047, allocations: 188.3 kB / 386.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.3048, allocations: 394.2 kB / 387.1 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006414/0.3054, allocations: 348.1 kB / 387.5 MB, free: 4.973 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007031/0.3061, allocations: 491.4 kB / 387.9 MB, free: 4.711 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.3074, allocations: 0.8511 MB / 388.8 MB, free: 4.246 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3074, allocations: 1.219 kB / 388.8 MB, free: 4.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001834/0.3092, allocations: 1.155 MB / 390 MB, free: 3.746 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.3093, allocations: 6.5 kB / 390 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.3093, allocations: 4.406 kB / 390 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003502/0.3096, allocations: 131.4 kB / 390.1 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009275/0.3106, allocations: 241.4 kB / 390.3 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002592/0.3132, allocations: 4.528 MB / 394.9 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000606/0.3138, allocations: 37.08 kB / 394.9 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.55e-05/0.3139, allocations: 42.45 kB / 394.9 MB, free: 15.3 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 (132): * Single equations (assignments): 129 * 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.0004138/0.3143, allocations: 283.7 kB / 395.2 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001881/0.3145, allocations: 97.28 kB / 395.3 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.3159, allocations: 0.7446 MB / 396 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/0.3159, allocations: 15.47 kB / 396.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.67e-05/0.316, allocations: 2.75 kB / 396.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/0.316, allocations: 12.67 kB / 396.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003988/0.32, allocations: 2.618 MB / 398.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.32, allocations: 1.562 kB / 398.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008202/0.3208, allocations: 201.9 kB / 398.9 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004292/0.3213, allocations: 155.4 kB / 399 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-05/0.3213, allocations: 31.61 kB / 399.1 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003742/0.3251, allocations: 5.564 MB / 404.6 MB, free: 7.336 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3251, allocations: 2.375 kB / 404.6 MB, free: 7.336 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002508/0.3276, allocations: 1.67 MB / 406.3 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004327/0.3281, allocations: 251.9 kB / 406.6 MB, free: 6.117 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001496/0.3282, allocations: 26.44 kB / 406.6 MB, free: 6.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005583/0.3288, allocations: 32.64 kB / 406.6 MB, free: 6.078 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.329, allocations: 80.52 kB / 406.7 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.682e-05/0.329, allocations: 33.14 kB / 406.7 MB, free: 6.027 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006123/0.3296, allocations: 464.7 kB / 407.2 MB, free: 5.762 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3296, allocations: 0 / 407.2 MB, free: 5.762 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009914/0.3306, allocations: 258.8 kB / 407.4 MB, free: 5.727 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 (108): * Single equations (assignments): 104 * 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.003081/0.3337, allocations: 2.24 MB / 409.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002128/0.3359, allocations: 1.279 MB / 411 MB, free: 2.207 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3359, allocations: 0 / 411 MB, free: 2.207 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001253/0.3371, allocations: 0.9716 MB / 411.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.3383, allocations: 195.7 kB / 412.1 MB, free: 1.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01393/0.3523, allocations: 9.124 MB / 421.2 MB, free: 7.676 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006498/0.3529, allocations: 1.039 MB / 422.3 MB, free: 6.609 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006197/0.3536, allocations: 124 kB / 422.4 MB, free: 6.484 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005254/0.3541, allocations: 407.3 kB / 422.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3541, allocations: 2.625 kB / 422.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03686/0.391, allocations: 20.35 MB / 443.1 MB, free: 2.043 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/0.3912, allocations: 254.2 kB / 443.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.259/2.65, allocations: 3.188 kB / 443.4 MB, free: 1.785 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)