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.001199/0.001199, allocations: 196.4 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 225.4 MB / 240.1 MB, free: 15.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008412/0.000841, allocations: 90.48 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.512e-05/3.514e-05, allocations: 7.984 kB / 350.6 MB, free: 2.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1145, allocations: 51.49 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3643/0.4788, allocations: 89.94 MB / 492.1 MB, free: 15.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.4791, allocations: 88.17 kB / 492.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1049/0.584, allocations: 36.83 MB / 0.5166 GB, free: 12.33 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5841, allocations: 4 kB / 0.5166 GB, free: 12.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.488e-05/0.5842, allocations: 24 kB / 0.5166 GB, free: 12.3 MB / 394.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.003105/0.5873, allocations: 1.138 MB / 0.5177 GB, free: 11.12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.5873, allocations: 12.03 kB / 0.5177 GB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003332/0.5877, allocations: 148 kB / 0.5179 GB, free: 10.96 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006292/0.5883, allocations: 146.6 kB / 0.518 GB, free: 10.81 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001273/0.5896, allocations: 0.607 MB / 0.5186 GB, free: 10.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.5898, allocations: 78 kB / 0.5187 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001721/0.5899, allocations: 99.91 kB / 0.5188 GB, free: 9.988 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001902/0.5918, allocations: 0.9386 MB / 0.5197 GB, free: 9.035 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.629e-05/0.5919, allocations: 4 kB / 0.5197 GB, free: 9.031 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.043e-05/0.592, allocations: 40 kB / 0.5197 GB, free: 8.992 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.046e-05/0.592, allocations: 24 kB / 0.5198 GB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001545/0.5936, allocations: 0.7853 MB / 0.5205 GB, free: 8.184 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005612/0.5992, allocations: 3.564 MB / 0.524 GB, free: 4.477 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.6005, allocations: 0.8062 MB / 0.5248 GB, free: 3.652 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007298/0.6013, allocations: 457.5 kB / 0.5252 GB, free: 3.199 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.653e-05/0.6013, allocations: 16.55 kB / 0.5253 GB, free: 3.184 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.197e-05/0.6014, allocations: 47.06 kB / 0.5253 GB, free: 3.125 MB / 394.7 MB Notification: Performance of pre-optimization done (n=95): time 2.014e-06/0.6014, allocations: 0 / 0.5253 GB, free: 3.125 MB / 394.7 MB Notification: Performance of matching and sorting (n=131): time 0.009811/0.6112, allocations: 4.277 MB / 0.5295 GB, free: 14.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/0.6114, allocations: 90.33 kB / 0.5296 GB, free: 14.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000857/0.6123, allocations: 0.5362 MB / 0.5301 GB, free: 14.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.172e-05/0.6124, allocations: 45.7 kB / 0.5301 GB, free: 13.97 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002998/0.6127, allocations: 416.3 kB / 0.5305 GB, free: 13.56 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003534/0.6131, allocations: 445.6 kB / 0.5309 GB, free: 13.12 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.903e-05/0.6131, allocations: 20 kB / 0.531 GB, free: 13.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.6133, allocations: 398.7 kB / 0.5313 GB, free: 12.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007791/0.6141, allocations: 374.5 kB / 0.5317 GB, free: 12.33 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007232/0.6149, allocations: 0.5045 MB / 0.5322 GB, free: 11.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007179/0.6156, allocations: 427.7 kB / 0.5326 GB, free: 11.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.6156, allocations: 0 / 0.5326 GB, free: 11.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.002187/0.6178, allocations: 1.224 MB / 0.5338 GB, free: 10.13 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.6178, allocations: 4 kB / 0.5338 GB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.6179, allocations: 4 kB / 0.5338 GB, free: 10.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005725/0.6184, allocations: 146.6 kB / 0.5339 GB, free: 9.973 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.6196, allocations: 287.6 kB / 0.5342 GB, free: 9.691 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004158/0.6238, allocations: 4.764 MB / 0.5389 GB, free: 4.523 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.6248, allocations: 80.02 kB / 0.539 GB, free: 4.445 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/0.6249, allocations: 43.98 kB / 0.539 GB, free: 4.402 MB / 410.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 139 * 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%) 6,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002354/0.6252, allocations: 181.7 kB / 0.5392 GB, free: 4.219 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000209/0.6254, allocations: 90.88 kB / 0.5393 GB, free: 4.129 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001527/0.6269, allocations: 0.7949 MB / 0.54 GB, free: 3.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.627, allocations: 16 kB / 0.54 GB, free: 3.305 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.627, allocations: 0 / 0.54 GB, free: 3.305 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/0.627, allocations: 11.97 kB / 0.5401 GB, free: 3.293 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004539/0.6315, allocations: 2.973 MB / 0.543 GB, free: 204 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.6316, allocations: 7.938 kB / 0.543 GB, free: 196 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001125/0.6327, allocations: 251.9 kB / 0.5432 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003697/0.6331, allocations: 126.5 kB / 0.5433 GB, free: 15.81 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.27e-05/0.6332, allocations: 31.98 kB / 0.5434 GB, free: 15.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00325/0.6364, allocations: 4.388 MB / 0.5476 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.6365, allocations: 4 kB / 0.5476 GB, free: 10.99 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002872/0.6393, allocations: 1.964 MB / 0.5496 GB, free: 8.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002548/0.6396, allocations: 172 kB / 0.5497 GB, free: 8.723 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/0.6398, allocations: 27.98 kB / 0.5498 GB, free: 8.695 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007437/0.6405, allocations: 76.2 kB / 0.5498 GB, free: 8.621 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002891/0.6408, allocations: 96.61 kB / 0.5499 GB, free: 8.527 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-05/0.6409, allocations: 43.98 kB / 0.55 GB, free: 8.484 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005724/0.6415, allocations: 431.2 kB / 0.5504 GB, free: 8.059 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.253e-06/0.6415, allocations: 0 / 0.5504 GB, free: 8.059 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001063/0.6425, allocations: 279.9 kB / 0.5506 GB, free: 7.785 MB / 426.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.g_ma.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 119 * 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%) 2,(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003491/0.646, allocations: 3.301 MB / 0.5539 GB, free: 4.379 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002245/0.6483, allocations: 1.362 MB / 0.5552 GB, free: 2.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.6483, allocations: 4 kB / 0.5552 GB, free: 2.977 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.6496, allocations: 0.915 MB / 0.5561 GB, free: 2.023 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009034/0.6506, allocations: 169.6 kB / 0.5563 GB, free: 1.871 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003943/0.6545, allocations: 1.968 MB / 0.5582 GB, free: 15.83 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006407/0.6552, allocations: 1.056 MB / 0.5592 GB, free: 14.75 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007134/0.6559, allocations: 127.9 kB / 0.5593 GB, free: 14.62 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005913/0.6565, allocations: 387.3 kB / 0.5597 GB, free: 14.24 MB / 442.7 MB Notification: Performance of SimCode: time 5.41e-07/0.6565, allocations: 0 / 0.5597 GB, free: 14.24 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2674/0.9239, allocations: 20.36 MB / 0.5796 GB, free: 106.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001866/0.9242, allocations: 196 kB / 0.5798 GB, free: 106.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.678/3.602, allocations: 0 / 0.5798 GB, free: 106.4 MB / 442.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)