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.00102/0.001021, allocations: 97.44 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001119/0.001119, allocations: 203.1 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 227.7 MB / 246.8 MB, free: 11.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002009/0.0002009, allocations: 11.94 kB / 307.8 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08286/0.08307, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.005914/0.08902, allocations: 5.958 MB / 365.3 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003328/0.09238, allocations: 1.874 MB / 367.2 MB, free: 5.332 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007272/0.09313, allocations: 16 kB / 367.2 MB, free: 5.316 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005867/0.09373, allocations: 170.7 kB / 367.4 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001109/0.09486, allocations: 361.5 kB / 367.7 MB, free: 4.793 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007224/0.09559, allocations: 331.8 kB / 368.1 MB, free: 4.469 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001476/0.09708, allocations: 1.401 MB / 369.5 MB, free: 3.062 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005908/0.09768, allocations: 447.3 kB / 369.9 MB, free: 2.605 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006295/0.09832, allocations: 450 kB / 370.3 MB, free: 2.164 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006182/0.09894, allocations: 0.5131 MB / 370.8 MB, free: 1.648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.741e-05/0.09905, allocations: 60 kB / 370.9 MB, free: 1.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001468/0.0992, allocations: 72 kB / 371 MB, free: 1.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.09935, allocations: 199.1 kB / 371.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004495/0.0998, allocations: 0.5808 MB / 371.7 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1583/0.2581, allocations: 1.75 MB / 373.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.892e-06/0.2581, allocations: 0.6562 kB / 373.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.2581, allocations: 3.844 kB / 373.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.948e-05/0.2582, allocations: 0 / 373.5 MB, free: 11.88 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.00239/0.2606, allocations: 1.248 MB / 374.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.2607, allocations: 9.656 kB / 374.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001855/0.2608, allocations: 155.8 kB / 374.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005051/0.2614, allocations: 155.9 kB / 375.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009295/0.2623, allocations: 0.6749 MB / 375.7 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.2624, allocations: 83.22 kB / 375.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001759/0.2626, allocations: 105.7 kB / 375.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002105/0.2647, allocations: 0.9834 MB / 376.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.471e-05/0.2648, allocations: 3.203 kB / 376.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/0.2649, allocations: 39.88 kB / 377 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.13e-05/0.2649, allocations: 24.41 kB / 377 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001558/0.2665, allocations: 0.8188 MB / 377.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004732/0.2713, allocations: 3.351 MB / 381.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.2724, allocations: 0.8036 MB / 381.9 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006687/0.2731, allocations: 447.7 kB / 382.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.632e-05/0.2732, allocations: 20.98 kB / 382.4 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.2732, allocations: 42.8 kB / 382.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of pre-optimization done (n=95): time 2.866e-06/0.2732, allocations: 0 / 382.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=119): time 0.007715/0.2809, allocations: 4.23 MB / 386.7 MB, free: 6.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.199e-05/0.281, allocations: 89.27 kB / 386.8 MB, free: 6.832 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007288/0.2817, allocations: 0.6456 MB / 387.4 MB, free: 6.527 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.406e-05/0.2818, allocations: 45.7 kB / 387.5 MB, free: 6.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.282, allocations: 442.8 kB / 387.9 MB, free: 6.137 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.2822, allocations: 402.3 kB / 388.3 MB, free: 5.828 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.2823, allocations: 96.25 kB / 388.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.273e-05/0.2824, allocations: 396.6 kB / 388.8 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005966/0.283, allocations: 350.5 kB / 389.1 MB, free: 5.293 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006665/0.2837, allocations: 495.5 kB / 389.6 MB, free: 5.027 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001283/0.285, allocations: 0.8627 MB / 390.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.285, allocations: 1.062 kB / 390.5 MB, free: 4.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001833/0.2868, allocations: 1.168 MB / 391.6 MB, free: 4.055 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.2869, allocations: 5.781 kB / 391.6 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.926e-06/0.2869, allocations: 4.406 kB / 391.6 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003368/0.2872, allocations: 125.9 kB / 391.8 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009008/0.2881, allocations: 246.1 kB / 392 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002549/0.2907, allocations: 4.533 MB / 396.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006047/0.2913, allocations: 41.11 kB / 396.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.847e-05/0.2914, allocations: 42.25 kB / 396.6 MB, free: 15.62 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.0004364/0.2918, allocations: 287.9 kB / 396.9 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.292, allocations: 97.16 kB / 397 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001378/0.2934, allocations: 0.7498 MB / 397.7 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.2934, allocations: 15.2 kB / 397.7 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.2934, allocations: 3.906 kB / 397.8 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.2934, allocations: 7.922 kB / 397.8 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00366/0.2971, allocations: 2.636 MB / 400.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.2971, allocations: 0 / 400.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007445/0.2979, allocations: 201.3 kB / 400.6 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003779/0.2982, allocations: 159 kB / 400.7 MB, free: 12.92 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.689e-05/0.2983, allocations: 29.58 kB / 400.8 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003477/0.3018, allocations: 5.564 MB / 406.3 MB, free: 7.289 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.3018, allocations: 1.75 kB / 406.3 MB, free: 7.289 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002438/0.3043, allocations: 1.681 MB / 408 MB, free: 6.305 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003522/0.3046, allocations: 250 kB / 408.3 MB, free: 6.074 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001407/0.3048, allocations: 28.25 kB / 408.3 MB, free: 6.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000547/0.3053, allocations: 43.97 kB / 408.3 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.3055, allocations: 72.55 kB / 408.4 MB, free: 5.934 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.617e-05/0.3055, allocations: 35.98 kB / 408.4 MB, free: 5.898 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005879/0.3061, allocations: 459.1 kB / 408.9 MB, free: 5.457 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3061, allocations: 0 / 408.9 MB, free: 5.457 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009045/0.3071, allocations: 268 kB / 409.2 MB, free: 5.195 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.002743/0.3098, allocations: 2.255 MB / 411.4 MB, free: 2.926 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001967/0.3118, allocations: 1.29 MB / 412.7 MB, free: 1.605 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.3118, allocations: 0 / 412.7 MB, free: 1.605 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001222/0.313, allocations: 0.987 MB / 413.7 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.3141, allocations: 196.1 kB / 413.9 MB, free: 420 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01317/0.3273, allocations: 9.289 MB / 423.2 MB, free: 6.887 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005382/0.3279, allocations: 1.044 MB / 424.2 MB, free: 5.812 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005231/0.3284, allocations: 128 kB / 424.3 MB, free: 5.684 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005078/0.3289, allocations: 395.3 kB / 424.7 MB, free: 5.297 MB / 334.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3289, allocations: 0 / 424.7 MB, free: 5.297 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03632/0.3653, allocations: 20.07 MB / 444.8 MB, free: 1.562 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001784/0.3655, allocations: 252.5 kB / 445 MB, free: 1.309 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.18/2.546, allocations: 0 / 445 MB, free: 1.309 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)