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.001307/0.001307, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001511/0.001512, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.234/1.234, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001089/0.001089, allocations: 46.67 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09365/0.09476, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007334/0.1021, allocations: 6.303 MB / 356.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003321/0.1055, allocations: 1.842 MB / 358.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008505/0.1063, allocations: 19.94 kB / 358.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000804/0.1072, allocations: 210.1 kB / 358.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001295/0.1085, allocations: 400.8 kB / 358.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009048/0.1094, allocations: 375.5 kB / 359.3 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001749/0.1112, allocations: 1.475 MB / 360.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007697/0.112, allocations: 0.5093 MB / 361.3 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006633/0.1126, allocations: 0.5372 MB / 361.8 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006292/0.1133, allocations: 0.5991 MB / 362.4 MB, free: 8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001949/0.1135, allocations: 160 kB / 362.6 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002281/0.1137, allocations: 156 kB / 362.7 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002072/0.1139, allocations: 307 kB / 363 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005024/0.1144, allocations: 0.6378 MB / 363.7 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001316/0.1158, allocations: 1.834 MB / 365.5 MB, free: 4.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1158, allocations: 4 kB / 365.5 MB, free: 4.906 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1158, allocations: 0 / 365.5 MB, free: 4.906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.1158, allocations: 0 / 365.5 MB, free: 4.906 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.002607/0.1184, allocations: 1.445 MB / 366.9 MB, free: 3.406 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.1185, allocations: 12.03 kB / 367 MB, free: 3.395 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001573/0.1186, allocations: 148.3 kB / 367.1 MB, free: 3.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00017/0.1188, allocations: 119.5 kB / 367.2 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009588/0.1198, allocations: 0.6689 MB / 367.9 MB, free: 2.418 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001141/0.1199, allocations: 78.55 kB / 368 MB, free: 2.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.12, allocations: 100.4 kB / 368.1 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/0.1218, allocations: 1.009 MB / 369.1 MB, free: 1.219 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.266e-05/0.1218, allocations: 7.906 kB / 369.1 MB, free: 1.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.498e-05/0.1219, allocations: 40 kB / 369.1 MB, free: 1.172 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.775e-05/0.1219, allocations: 20 kB / 369.1 MB, free: 1.152 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00175/0.1237, allocations: 0.864 MB / 370 MB, free: 292 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1816/0.3053, allocations: 3.329 MB / 373.3 MB, free: 23.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.3067, allocations: 0.8216 MB / 374.1 MB, free: 23.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008132/0.3075, allocations: 478.4 kB / 374.6 MB, free: 23.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.342e-05/0.3076, allocations: 19.89 kB / 374.6 MB, free: 23.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.3076, allocations: 43.19 kB / 374.7 MB, free: 23.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 3.016e-06/0.3076, allocations: 3.688 kB / 374.7 MB, free: 23.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.008873/0.3165, allocations: 4.292 MB / 379 MB, free: 20.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.3166, allocations: 88.83 kB / 379.1 MB, free: 20.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007405/0.3173, allocations: 0.609 MB / 379.7 MB, free: 20.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.921e-05/0.3174, allocations: 41.86 kB / 379.7 MB, free: 20.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002226/0.3176, allocations: 426.7 kB / 380.1 MB, free: 19.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002395/0.3178, allocations: 386.6 kB / 380.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002591/0.3181, allocations: 185.5 kB / 380.7 MB, free: 19.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3182, allocations: 395.9 kB / 381.1 MB, free: 19.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008121/0.319, allocations: 384.5 kB / 381.4 MB, free: 19.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008574/0.3199, allocations: 0.5078 MB / 382 MB, free: 18.81 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/0.3215, allocations: 0.8903 MB / 382.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.3215, allocations: 1.344 kB / 382.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002184/0.3237, allocations: 1.196 MB / 384 MB, free: 17.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.381e-05/0.3237, allocations: 10.44 kB / 384.1 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3237, allocations: 6.891 kB / 384.1 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003816/0.3241, allocations: 130.1 kB / 384.2 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.3251, allocations: 250.1 kB / 384.4 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002863/0.328, allocations: 4.979 MB / 389.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007337/0.3288, allocations: 49.09 kB / 389.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.47e-05/0.3288, allocations: 38.2 kB / 389.5 MB, free: 12.93 MB / 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_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.0004213/0.3293, allocations: 287.5 kB / 389.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.3294, allocations: 86.97 kB / 389.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/0.3309, allocations: 0.771 MB / 390.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.3309, allocations: 11.44 kB / 390.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-05/0.331, allocations: 7.25 kB / 390.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.331, allocations: 5.578 kB / 390.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003682/0.3347, allocations: 2.665 MB / 393.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.3347, allocations: 0 / 393.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007744/0.3355, allocations: 201.7 kB / 393.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003701/0.3359, allocations: 160.4 kB / 393.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.41e-05/0.3359, allocations: 27.83 kB / 393.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002813/0.3387, allocations: 5.998 MB / 399.7 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3388, allocations: 0 / 399.7 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002775/0.3415, allocations: 1.74 MB / 401.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000189/0.3417, allocations: 162.1 kB / 401.6 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.3419, allocations: 26.81 kB / 401.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005629/0.3424, allocations: 51.33 kB / 401.7 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.3426, allocations: 84.16 kB / 401.8 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.72e-05/0.3426, allocations: 33.23 kB / 401.8 MB, free: 3.289 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004586/0.3431, allocations: 445.2 kB / 402.2 MB, free: 3.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3431, allocations: 0 / 402.2 MB, free: 3.031 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009733/0.3441, allocations: 254.5 kB / 402.5 MB, free: 2.996 MB / 302.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.002704/0.3468, allocations: 2.324 MB / 404.8 MB, free: 1.387 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002439/0.3493, allocations: 1.378 MB / 406.2 MB, free: 15.98 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3493, allocations: 0 / 406.2 MB, free: 15.98 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001348/0.3506, allocations: 1.005 MB / 407.2 MB, free: 14.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009773/0.3516, allocations: 189.6 kB / 407.4 MB, free: 14.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01332/0.3649, allocations: 8.648 MB / 416 MB, free: 5.828 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007012/0.3657, allocations: 1.024 MB / 417 MB, free: 4.781 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007564/0.3665, allocations: 127.5 kB / 417.2 MB, free: 4.652 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006811/0.3672, allocations: 383.3 kB / 417.5 MB, free: 4.277 MB / 318.1 MB Notification: Performance of SimCode: time 1.883e-06/0.3672, allocations: 4 kB / 417.5 MB, free: 4.273 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5133/0.8805, allocations: 20.32 MB / 437.9 MB, free: 240 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.42/16.3, allocations: 7.812 kB / 437.9 MB, free: 232 kB / 334.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/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)