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.00135/0.001351, allocations: 117.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001329/0.001329, allocations: 203.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001806/0.001806, allocations: 63.89 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2831, allocations: 50.55 MB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.00839/0.2915, allocations: 6.435 MB / 415.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004162/0.2957, allocations: 1.909 MB / 417.2 MB, free: 9.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007257/0.2965, allocations: 19.94 kB / 417.2 MB, free: 9.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006847/0.2972, allocations: 218 kB / 417.4 MB, free: 8.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001085/0.2983, allocations: 416.7 kB / 417.8 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008803/0.2992, allocations: 371.5 kB / 418.2 MB, free: 8.102 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001898/0.3011, allocations: 1.507 MB / 419.7 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007594/0.3019, allocations: 0.4936 MB / 420.2 MB, free: 6.074 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008971/0.3028, allocations: 0.5528 MB / 420.7 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007946/0.3036, allocations: 0.6107 MB / 421.3 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000219/0.3038, allocations: 163.9 kB / 421.5 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002863/0.3041, allocations: 168 kB / 421.7 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002703/0.3044, allocations: 303.1 kB / 422 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006476/0.3051, allocations: 0.6611 MB / 422.6 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002164/0.3072, allocations: 1.891 MB / 424.5 MB, free: 1.727 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.3073, allocations: 0 / 424.5 MB, free: 1.727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3073, allocations: 0 / 424.5 MB, free: 1.727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.126e-05/0.3073, allocations: 0 / 424.5 MB, free: 1.727 MB / 334.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.003266/0.3106, allocations: 1.475 MB / 426 MB, free: 204 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.3107, allocations: 16.02 kB / 426 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001885/0.3108, allocations: 148.4 kB / 426.1 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005439/0.3114, allocations: 158 kB / 426.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/0.3126, allocations: 0.6942 MB / 427 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.684e-05/0.3127, allocations: 74 kB / 427.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/0.3129, allocations: 107.9 kB / 427.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001755/0.3146, allocations: 0.974 MB / 428.1 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.705e-05/0.3147, allocations: 11.95 kB / 428.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.243e-05/0.3148, allocations: 43.94 kB / 428.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.473e-05/0.3148, allocations: 28 kB / 428.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.3164, allocations: 0.7938 MB / 429 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005517/0.322, allocations: 3.31 MB / 432.3 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.3235, allocations: 0.8002 MB / 433.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008031/0.3243, allocations: 449.4 kB / 433.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.744e-05/0.3244, allocations: 20.55 kB / 433.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.095e-05/0.3245, allocations: 39.75 kB / 433.6 MB, free: 8.336 MB / 350.1 MB Notification: Performance of pre-optimization done (n=95): time 2.996e-06/0.3245, allocations: 0 / 433.6 MB, free: 8.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=119): time 0.01007/0.3345, allocations: 4.215 MB / 437.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.3347, allocations: 97.69 kB / 437.9 MB, free: 3.805 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/0.3358, allocations: 0.633 MB / 438.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.057e-05/0.3359, allocations: 45.7 kB / 438.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005032/0.3365, allocations: 441.2 kB / 439 MB, free: 2.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004702/0.3369, allocations: 432.2 kB / 439.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003154/0.3373, allocations: 187 kB / 439.6 MB, free: 2.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002338/0.3375, allocations: 398.7 kB / 440 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007224/0.3382, allocations: 346.4 kB / 440.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008071/0.339, allocations: 488.7 kB / 440.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001526/0.3406, allocations: 0.8549 MB / 441.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.3406, allocations: 0 / 441.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002209/0.3428, allocations: 1.154 MB / 442.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.3429, allocations: 15.98 kB / 442.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.3429, allocations: 0 / 442.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004219/0.3433, allocations: 126.5 kB / 443 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009834/0.3443, allocations: 243.7 kB / 443.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004442/0.3487, allocations: 4.984 MB / 448.2 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007636/0.3495, allocations: 31.98 kB / 448.3 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.925e-05/0.3496, allocations: 43.98 kB / 448.3 MB, free: 8.883 MB / 366.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.0005153/0.3501, allocations: 277.7 kB / 448.6 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002625/0.3504, allocations: 99.42 kB / 448.7 MB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001504/0.3519, allocations: 0.753 MB / 449.4 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.352, allocations: 12 kB / 449.4 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.352, allocations: 4.125 kB / 449.4 MB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.352, allocations: 11.91 kB / 449.4 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00407/0.3561, allocations: 2.611 MB / 452.1 MB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.3561, allocations: 0 / 452.1 MB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000867/0.357, allocations: 195.8 kB / 452.2 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004497/0.3574, allocations: 159.3 kB / 452.4 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.584e-05/0.3575, allocations: 27.98 kB / 452.4 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004965/0.3625, allocations: 5.994 MB / 458.4 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3625, allocations: 3.938 kB / 458.4 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002958/0.3655, allocations: 1.661 MB / 460.1 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004198/0.3659, allocations: 256.5 kB / 460.3 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.366, allocations: 24 kB / 460.4 MB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005413/0.3666, allocations: 40.11 kB / 460.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.3667, allocations: 80.48 kB / 460.5 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.536e-05/0.3668, allocations: 35.98 kB / 460.5 MB, free: 11.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006149/0.3674, allocations: 459.1 kB / 461 MB, free: 11.47 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3674, allocations: 0 / 461 MB, free: 11.47 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009004/0.3683, allocations: 260 kB / 461.2 MB, free: 11.21 MB / 382.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.00319/0.3715, allocations: 2.255 MB / 463.5 MB, free: 8.906 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002246/0.3738, allocations: 1.274 MB / 464.7 MB, free: 7.594 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.3738, allocations: 0 / 464.7 MB, free: 7.594 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00141/0.3752, allocations: 0.9827 MB / 465.7 MB, free: 6.562 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.3764, allocations: 212.9 kB / 465.9 MB, free: 6.355 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01287/0.3893, allocations: 8.209 MB / 474.1 MB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007189/0.39, allocations: 1.033 MB / 475.2 MB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005639/0.3906, allocations: 132 kB / 475.3 MB, free: 12.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005827/0.3912, allocations: 403.3 kB / 475.7 MB, free: 12.34 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3912, allocations: 0 / 475.7 MB, free: 12.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0637/0.4549, allocations: 21.55 MB / 497.2 MB, free: 7.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.24, allocations: 14.92 kB / 497.3 MB, free: 7.062 MB / 414.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)