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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001102/0.001102, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.27/1.27, allocations: 227.2 MB / 245 MB, free: 7.598 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008563/0.0008564, allocations: 100.7 kB / 297.3 MB, free: 6.172 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002305/0.0002306, allocations: 4 kB / 358 MB, free: 9.414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1921/0.1924, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1017/0.2941, allocations: 90.02 MB / 499.5 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001931/0.2944, allocations: 87.94 kB / 499.6 MB, free: 476 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2659/0.5603, allocations: 36.81 MB / 0.5238 GB, free: 86.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5603, allocations: 0 / 0.5238 GB, free: 86.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.747e-05/0.5604, allocations: 18.62 kB / 0.5239 GB, free: 86.84 MB / 378.7 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.003172/0.5636, allocations: 1.242 MB / 0.5251 GB, free: 85.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.5637, allocations: 12.03 kB / 0.5251 GB, free: 85.92 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000394/0.5641, allocations: 152 kB / 0.5252 GB, free: 85.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007629/0.5649, allocations: 150.6 kB / 0.5254 GB, free: 85.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.5659, allocations: 0.6055 MB / 0.526 GB, free: 84.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.5661, allocations: 78 kB / 0.526 GB, free: 84.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/0.5662, allocations: 95.91 kB / 0.5261 GB, free: 84.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001629/0.5678, allocations: 1.025 MB / 0.5271 GB, free: 83.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.353e-05/0.5679, allocations: 8 kB / 0.5271 GB, free: 83.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.748e-05/0.568, allocations: 43.95 kB / 0.5272 GB, free: 83.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.568, allocations: 24 kB / 0.5272 GB, free: 83.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001647/0.5696, allocations: 0.942 MB / 0.5281 GB, free: 82.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004819/0.5745, allocations: 3.572 MB / 0.5316 GB, free: 79.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.5758, allocations: 0.8715 MB / 0.5325 GB, free: 78.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.581e-05/0.5759, allocations: 18.39 kB / 0.5325 GB, free: 78.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.5759, allocations: 47.06 kB / 0.5325 GB, free: 78.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=95): time 3.377e-06/0.5759, allocations: 0 / 0.5325 GB, free: 78.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.009037/0.585, allocations: 4.751 MB / 0.5372 GB, free: 73.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.5851, allocations: 94.19 kB / 0.5373 GB, free: 73.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006728/0.5857, allocations: 0.5374 MB / 0.5378 GB, free: 72.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.477e-05/0.5858, allocations: 53.7 kB / 0.5378 GB, free: 72.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.586, allocations: 420.1 kB / 0.5382 GB, free: 72.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002394/0.5863, allocations: 419.1 kB / 0.5386 GB, free: 71.63 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-05/0.5863, allocations: 24 kB / 0.5387 GB, free: 71.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.5864, allocations: 394.7 kB / 0.539 GB, free: 71.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007674/0.5872, allocations: 434.4 kB / 0.5394 GB, free: 70.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008149/0.588, allocations: 0.5592 MB / 0.54 GB, free: 70.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008379/0.5889, allocations: 483.7 kB / 0.5405 GB, free: 69.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.5889, allocations: 3.938 kB / 0.5405 GB, free: 69.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.002101/0.591, allocations: 1.313 MB / 0.5417 GB, free: 68.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.591, allocations: 8 kB / 0.5417 GB, free: 68.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.591, allocations: 0 / 0.5417 GB, free: 68.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003558/0.5914, allocations: 130.5 kB / 0.5419 GB, free: 68.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.5925, allocations: 279.6 kB / 0.5421 GB, free: 67.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002524/0.595, allocations: 4.554 MB / 0.5466 GB, free: 63.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008907/0.596, allocations: 76.02 kB / 0.5467 GB, free: 62.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.112e-05/0.596, allocations: 43.98 kB / 0.5467 GB, free: 62.89 MB / 378.7 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 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * 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.0005277/0.5966, allocations: 297.5 kB / 0.547 GB, free: 62.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000154/0.5967, allocations: 86.97 kB / 0.5471 GB, free: 62.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001438/0.5982, allocations: 0.8277 MB / 0.5479 GB, free: 61.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.5982, allocations: 16 kB / 0.5479 GB, free: 61.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.5982, allocations: 0 / 0.5479 GB, free: 61.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.5982, allocations: 11.94 kB / 0.5479 GB, free: 61.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003772/0.602, allocations: 3.006 MB / 0.5508 GB, free: 58.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.602, allocations: 4.312 kB / 0.5508 GB, free: 58.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009181/0.603, allocations: 231.7 kB / 0.5511 GB, free: 58.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004017/0.6034, allocations: 159.3 kB / 0.5512 GB, free: 58.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.599e-05/0.6034, allocations: 31.98 kB / 0.5512 GB, free: 58.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00288/0.6063, allocations: 5.616 MB / 0.5567 GB, free: 51.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.6064, allocations: 4 kB / 0.5567 GB, free: 51.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00299/0.6094, allocations: 2.097 MB / 0.5588 GB, free: 49.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002867/0.6097, allocations: 176 kB / 0.559 GB, free: 49.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.6098, allocations: 35.92 kB / 0.559 GB, free: 49.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006714/0.6105, allocations: 71.95 kB / 0.5591 GB, free: 49.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.6106, allocations: 96.47 kB / 0.5591 GB, free: 49.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.689e-05/0.6107, allocations: 32 kB / 0.5592 GB, free: 49.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005011/0.6112, allocations: 451 kB / 0.5596 GB, free: 48.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6112, allocations: 0 / 0.5596 GB, free: 48.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009332/0.6121, allocations: 268 kB / 0.5599 GB, free: 48.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi,cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i) * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * 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%) 3,(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003081/0.6152, allocations: 3.459 MB / 0.5632 GB, free: 45.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002191/0.6174, allocations: 1.453 MB / 0.5647 GB, free: 43.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.6175, allocations: 8 kB / 0.5647 GB, free: 43.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001267/0.6187, allocations: 1.093 MB / 0.5657 GB, free: 42.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009138/0.6197, allocations: 157.1 kB / 0.5659 GB, free: 42.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009069/0.6287, allocations: 7.976 MB / 0.5737 GB, free: 34.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/0.6292, allocations: 1.06 MB / 0.5747 GB, free: 32.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005798/0.6298, allocations: 115.8 kB / 0.5748 GB, free: 32.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004516/0.6303, allocations: 395.3 kB / 0.5752 GB, free: 32.42 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/0.6303, allocations: 0 / 0.5752 GB, free: 32.42 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03357/0.6639, allocations: 20.03 MB / 0.5948 GB, free: 12.69 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001382/0.664, allocations: 231.1 kB / 0.595 GB, free: 12.45 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.497/3.161, allocations: 0 / 0.595 GB, free: 12.45 MB / 378.7 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/linux/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)