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.001454/0.001454, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000995/0.000995, allocations: 103.3 kB / 286.7 MB, free: 5.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.098e-05/2.096e-05, allocations: 4 kB / 343.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 51.47 MB / 395.3 MB, free: 4.672 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3501/0.4601, allocations: 89.28 MB / 484.5 MB, free: 3.762 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.4604, allocations: 88.06 kB / 484.6 MB, free: 3.715 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09957/0.56, allocations: 36.47 MB / 0.5089 GB, free: 4.508 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.56, allocations: 0 / 0.5089 GB, free: 4.508 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000101/0.5601, allocations: 24 kB / 0.5089 GB, free: 4.484 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.00366/0.5638, allocations: 1.142 MB / 0.51 GB, free: 3.297 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.008e-05/0.5639, allocations: 8.031 kB / 0.51 GB, free: 3.289 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009284/0.5648, allocations: 150.5 kB / 0.5102 GB, free: 3.141 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001437/0.5663, allocations: 0.5992 MB / 0.5108 GB, free: 2.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001658/0.5664, allocations: 46 kB / 0.5108 GB, free: 2.457 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002486/0.5667, allocations: 67.91 kB / 0.5109 GB, free: 2.391 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001817/0.5685, allocations: 0.7225 MB / 0.5116 GB, free: 1.668 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001936/0.5705, allocations: 0.8096 MB / 0.5124 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.463e-05/0.5705, allocations: 4 kB / 0.5124 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.012e-05/0.5706, allocations: 0 / 0.5124 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.076e-05/0.5707, allocations: 20 kB / 0.5124 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006077/0.5767, allocations: 3.393 MB / 0.5157 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.5779, allocations: 0.7523 MB / 0.5164 GB, free: 12.53 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007143/0.5786, allocations: 431.7 kB / 0.5169 GB, free: 12.11 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.337e-05/0.5787, allocations: 16.53 kB / 0.5169 GB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/0.5788, allocations: 51.12 kB / 0.5169 GB, free: 12.03 MB / 394.7 MB Notification: Performance of pre-optimization done (n=95): time 4.359e-06/0.5788, allocations: 0 / 0.5169 GB, free: 12.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=131): time 0.007398/0.5862, allocations: 3.659 MB / 0.5205 GB, free: 8.191 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/0.5863, allocations: 90.33 kB / 0.5206 GB, free: 8.082 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007086/0.587, allocations: 462.1 kB / 0.521 GB, free: 7.621 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.281e-05/0.5871, allocations: 25.7 kB / 0.521 GB, free: 7.59 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002872/0.5874, allocations: 436.3 kB / 0.5215 GB, free: 7.156 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003505/0.5878, allocations: 429.5 kB / 0.5219 GB, free: 6.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.578e-05/0.5878, allocations: 4 kB / 0.5219 GB, free: 6.727 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.588, allocations: 386.8 kB / 0.5222 GB, free: 6.34 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005982/0.5886, allocations: 346.6 kB / 0.5226 GB, free: 6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006676/0.5893, allocations: 478 kB / 0.523 GB, free: 5.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006563/0.59, allocations: 409.4 kB / 0.5234 GB, free: 5.102 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.792e-06/0.59, allocations: 0 / 0.5234 GB, free: 5.102 MB / 394.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.001901/0.5919, allocations: 1.113 MB / 0.5245 GB, free: 3.973 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.5919, allocations: 4.312 kB / 0.5245 GB, free: 3.969 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.592, allocations: 15.97 kB / 0.5245 GB, free: 3.953 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004162/0.5924, allocations: 137.4 kB / 0.5247 GB, free: 3.812 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.5936, allocations: 295.6 kB / 0.5249 GB, free: 3.523 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00379/0.5974, allocations: 4.603 MB / 0.5294 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009183/0.5983, allocations: 52.02 kB / 0.5295 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001499/0.5985, allocations: 43.98 kB / 0.5295 GB, free: 14.48 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 {(2,100.0%) 5,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002342/0.5987, allocations: 132 kB / 0.5297 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001748/0.6005, allocations: 0.965 MB / 0.5306 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002061/0.6007, allocations: 90.92 kB / 0.5307 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001288/0.602, allocations: 0.7284 MB / 0.5314 GB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.602, allocations: 12 kB / 0.5314 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.602, allocations: 4 kB / 0.5314 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.624e-05/0.6021, allocations: 7.969 kB / 0.5314 GB, free: 12.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004167/0.6062, allocations: 2.74 MB / 0.5341 GB, free: 9.656 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.6063, allocations: 0 / 0.5341 GB, free: 9.656 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.6074, allocations: 255.9 kB / 0.5343 GB, free: 9.406 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003789/0.6077, allocations: 122.5 kB / 0.5344 GB, free: 9.277 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.808e-05/0.6078, allocations: 23.94 kB / 0.5345 GB, free: 9.254 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003182/0.611, allocations: 4.217 MB / 0.5386 GB, free: 4.699 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.213e-06/0.6111, allocations: 4.031 kB / 0.5386 GB, free: 4.695 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002848/0.6139, allocations: 1.845 MB / 0.5404 GB, free: 2.727 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003533/0.6143, allocations: 172 kB / 0.5406 GB, free: 2.539 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000211/0.6145, allocations: 8 kB / 0.5406 GB, free: 2.531 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008082/0.6153, allocations: 56.2 kB / 0.5406 GB, free: 2.477 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.6155, allocations: 92.61 kB / 0.5407 GB, free: 2.387 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-05/0.6156, allocations: 43.98 kB / 0.5408 GB, free: 2.344 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005255/0.6161, allocations: 358.9 kB / 0.5411 GB, free: 1.992 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6161, allocations: 0 / 0.5411 GB, free: 1.992 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001148/0.6173, allocations: 224 kB / 0.5413 GB, free: 1.773 MB / 410.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.003121/0.6204, allocations: 3.187 MB / 0.5444 GB, free: 14.48 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002098/0.6225, allocations: 1.289 MB / 0.5457 GB, free: 13.17 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.6225, allocations: 0 / 0.5457 GB, free: 13.17 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.6237, allocations: 0.8728 MB / 0.5465 GB, free: 12.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009057/0.6246, allocations: 138.4 kB / 0.5467 GB, free: 12.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00368/0.6283, allocations: 1.85 MB / 0.5485 GB, free: 10.21 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006578/0.629, allocations: 1.06 MB / 0.5495 GB, free: 9.121 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006116/0.6296, allocations: 115.6 kB / 0.5496 GB, free: 9.004 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005502/0.6302, allocations: 391.3 kB / 0.55 GB, free: 8.621 MB / 426.7 MB Notification: Performance of SimCode: time 4.41e-07/0.6302, allocations: 0 / 0.55 GB, free: 8.621 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04691/0.6771, allocations: 18.59 MB / 0.5681 GB, free: 6.145 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001821/0.6773, allocations: 168.9 kB / 0.5683 GB, free: 5.949 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.405/3.082, allocations: 0 / 0.5683 GB, free: 5.949 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)