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.001126/0.001126, allocations: 94.92 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001346, allocations: 204.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.3 MB / 245.9 MB, free: 12.01 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003099/0.0003099, allocations: 8 kB / 306.7 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1106, allocations: 51.5 MB / 358.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.006301/0.117, allocations: 5.102 MB / 363.3 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003894/0.1209, allocations: 1.847 MB / 365.1 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001117/0.1221, allocations: 19.94 kB / 365.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008128/0.1229, allocations: 154.9 kB / 365.3 MB, free: 6.809 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001546/0.1245, allocations: 418.8 kB / 365.7 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008206/0.1253, allocations: 215.6 kB / 365.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001845/0.1272, allocations: 0.9044 MB / 366.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006141/0.1278, allocations: 373.6 kB / 367.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005615/0.1284, allocations: 430.4 kB / 367.6 MB, free: 4.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004775/0.1289, allocations: 497.8 kB / 368.1 MB, free: 3.992 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.34e-05/0.129, allocations: 60 kB / 368.2 MB, free: 3.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.1291, allocations: 72 kB / 368.2 MB, free: 3.863 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.1293, allocations: 187.2 kB / 368.4 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001799/0.1295, allocations: 241.1 kB / 368.7 MB, free: 3.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001116/0.1306, allocations: 1.461 MB / 370.1 MB, free: 1.973 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.524e-06/0.1306, allocations: 0 / 370.1 MB, free: 1.973 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1306, allocations: 0 / 370.1 MB, free: 1.973 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.605e-05/0.1306, allocations: 0 / 370.1 MB, free: 1.973 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.002585/0.1332, allocations: 1.301 MB / 371.4 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.1333, allocations: 8.031 kB / 371.4 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001731/0.1335, allocations: 148.1 kB / 371.6 MB, free: 472 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005033/0.134, allocations: 146.6 kB / 371.7 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1956/0.3296, allocations: 0.6429 MB / 372.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002157/0.3299, allocations: 79.16 kB / 372.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002259/0.3301, allocations: 99.56 kB / 372.5 MB, free: 18.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002647/0.3328, allocations: 1.015 MB / 373.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.402e-05/0.3328, allocations: 7.219 kB / 373.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/0.3329, allocations: 38.31 kB / 373.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.415e-05/0.333, allocations: 23.75 kB / 373.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002445/0.3354, allocations: 0.917 MB / 374.5 MB, free: 18.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006278/0.3417, allocations: 3.35 MB / 377.9 MB, free: 16.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001696/0.3435, allocations: 0.8376 MB / 378.7 MB, free: 16.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.559e-05/0.3435, allocations: 13.94 kB / 378.7 MB, free: 16.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.121e-05/0.3436, allocations: 47.22 kB / 378.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 4.118e-06/0.3436, allocations: 2.438 kB / 378.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.01011/0.3537, allocations: 4.438 MB / 383.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/0.3538, allocations: 93 kB / 383.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009202/0.3547, allocations: 0.6044 MB / 383.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.711e-05/0.3548, allocations: 45.3 kB / 384 MB, free: 13.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002703/0.3551, allocations: 422.5 kB / 384.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002842/0.3554, allocations: 395.2 kB / 384.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.032e-05/0.3554, allocations: 21.41 kB / 384.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.3556, allocations: 396.6 kB / 385.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008985/0.3565, allocations: 400.2 kB / 385.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009449/0.3575, allocations: 0.5258 MB / 386.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009345/0.3584, allocations: 450 kB / 386.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.3584, allocations: 0 / 386.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002529/0.361, allocations: 1.223 MB / 387.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.361, allocations: 6.5 kB / 387.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.361, allocations: 3.188 kB / 387.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004448/0.3615, allocations: 129.2 kB / 387.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.3626, allocations: 262.2 kB / 388.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002849/0.3654, allocations: 4.556 MB / 392.7 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008958/0.3663, allocations: 68.34 kB / 392.8 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.672e-05/0.3664, allocations: 38.45 kB / 392.8 MB, free: 6.594 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_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 initialization (128): * Single equations (assignments): 125 * 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.0005307/0.367, allocations: 274.7 kB / 393.1 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001827/0.3671, allocations: 95.92 kB / 393.2 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/0.3688, allocations: 0.7848 MB / 393.9 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-05/0.3688, allocations: 11 kB / 394 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.005e-05/0.3689, allocations: 8.125 kB / 394 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.087e-05/0.3689, allocations: 6.75 kB / 394 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004152/0.3731, allocations: 2.703 MB / 396.7 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.3731, allocations: 1.156 kB / 396.7 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009549/0.3741, allocations: 210.1 kB / 396.9 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004245/0.3745, allocations: 155.7 kB / 397 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.055e-05/0.3746, allocations: 28.55 kB / 397.1 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003475/0.378, allocations: 5.609 MB / 402.7 MB, free: 14.42 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.094e-06/0.3781, allocations: 9.094 kB / 402.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00329/0.3814, allocations: 1.825 MB / 404.5 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002777/0.3817, allocations: 163.5 kB / 404.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.3818, allocations: 23.69 kB / 404.7 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005851/0.3824, allocations: 66.86 kB / 404.8 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001791/0.3826, allocations: 79.12 kB / 404.8 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.435e-05/0.3826, allocations: 27.19 kB / 404.9 MB, free: 13.08 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006253/0.3833, allocations: 451.8 kB / 405.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3833, allocations: 0 / 405.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009931/0.3843, allocations: 252.5 kB / 405.5 MB, free: 12.78 MB / 318.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 (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%) 2,(1,100.0%) 3,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003583/0.3879, allocations: 2.611 MB / 408.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002669/0.3906, allocations: 1.372 MB / 409.5 MB, free: 8.809 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3906, allocations: 0 / 409.5 MB, free: 8.809 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001554/0.3921, allocations: 1.025 MB / 410.6 MB, free: 7.727 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.3932, allocations: 149.3 kB / 410.7 MB, free: 7.586 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01152/0.4047, allocations: 7.74 MB / 418.4 MB, free: 15.63 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006462/0.4054, allocations: 1.042 MB / 419.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006264/0.406, allocations: 127.6 kB / 419.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004961/0.4065, allocations: 379.3 kB / 420 MB, free: 14.06 MB / 334.1 MB Notification: Performance of SimCode: time 2.294e-06/0.4065, allocations: 0 / 420 MB, free: 14.06 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03435/0.4409, allocations: 18.95 MB / 438.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/0.4411, allocations: 237.7 kB / 439.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.418/2.859, allocations: 0 / 439.2 MB, free: 11.17 MB / 350.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/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)