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.0008137/0.0008138, allocations: 104.7 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009914/0.0009915, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002236/0.0002237, allocations: 8 kB / 306.8 MB, free: 1.484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1051, allocations: 51.49 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.00578/0.1109, allocations: 5.518 MB / 363.8 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003355/0.1143, allocations: 1.788 MB / 365.6 MB, free: 6.648 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005639/0.1149, allocations: 19.94 kB / 365.6 MB, free: 6.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004595/0.1153, allocations: 162.8 kB / 365.8 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007693/0.1161, allocations: 333.5 kB / 366.1 MB, free: 6.141 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005477/0.1167, allocations: 207.7 kB / 366.3 MB, free: 5.938 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.1179, allocations: 1.316 MB / 367.6 MB, free: 4.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004872/0.1184, allocations: 369.9 kB / 368 MB, free: 4.238 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004844/0.1189, allocations: 438.3 kB / 368.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005004/0.1194, allocations: 493.8 kB / 368.9 MB, free: 3.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.1195, allocations: 64 kB / 369 MB, free: 3.262 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.1196, allocations: 64 kB / 369 MB, free: 3.199 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.1198, allocations: 195.1 kB / 369.2 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.12, allocations: 237.2 kB / 369.5 MB, free: 2.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001132/0.1211, allocations: 1.464 MB / 370.9 MB, free: 1.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1211, allocations: 0 / 370.9 MB, free: 1.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1211, allocations: 4 kB / 370.9 MB, free: 1.297 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.504e-05/0.1212, allocations: 0 / 370.9 MB, free: 1.297 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.2001/0.3212, allocations: 1.3 MB / 372.2 MB, free: 18.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.3213, allocations: 10 kB / 372.2 MB, free: 18.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005816/0.3219, allocations: 145.8 kB / 372.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006651/0.3226, allocations: 145.2 kB / 372.5 MB, free: 18.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.3239, allocations: 0.645 MB / 373.2 MB, free: 18.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.324, allocations: 81.86 kB / 373.2 MB, free: 18.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/0.3242, allocations: 102.3 kB / 373.3 MB, free: 18.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002262/0.3264, allocations: 1.025 MB / 374.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.595e-05/0.3265, allocations: 2.375 kB / 374.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.521e-05/0.3266, allocations: 42.3 kB / 374.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.59e-05/0.3266, allocations: 24.97 kB / 374.4 MB, free: 18.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002078/0.3287, allocations: 0.9085 MB / 375.3 MB, free: 18.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005717/0.3344, allocations: 3.354 MB / 378.7 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.3359, allocations: 0.8407 MB / 379.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008651/0.3368, allocations: 488.9 kB / 380 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.009e-05/0.3368, allocations: 11.42 kB / 380 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.3369, allocations: 43.34 kB / 380.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 3.176e-06/0.3369, allocations: 4 kB / 380.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.009277/0.3462, allocations: 4.443 MB / 384.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/0.3462, allocations: 90.17 kB / 384.6 MB, free: 13.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008784/0.3471, allocations: 0.5929 MB / 385.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.239e-05/0.3472, allocations: 45.98 kB / 385.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002333/0.3474, allocations: 432.8 kB / 385.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002464/0.3477, allocations: 390.6 kB / 386.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.846e-05/0.3477, allocations: 21.38 kB / 386.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3479, allocations: 392.6 kB / 386.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008144/0.3487, allocations: 403.9 kB / 386.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009048/0.3496, allocations: 0.5315 MB / 387.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008472/0.3505, allocations: 445 kB / 387.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.3505, allocations: 1.312 kB / 387.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00243/0.3529, allocations: 1.23 MB / 389 MB, free: 10.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.353, allocations: 6.688 kB / 389.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.353, allocations: 3.953 kB / 389.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004456/0.3534, allocations: 128.3 kB / 389.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.3545, allocations: 257.5 kB / 389.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002794/0.3573, allocations: 4.53 MB / 394 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008619/0.3582, allocations: 64.86 kB / 394 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.718e-05/0.3583, allocations: 38.92 kB / 394.1 MB, free: 6.082 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.0005146/0.3588, allocations: 276 kB / 394.3 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.359, allocations: 87.84 kB / 394.4 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001577/0.3605, allocations: 0.7859 MB / 395.2 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.635e-05/0.3606, allocations: 12.38 kB / 395.2 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.018e-05/0.3606, allocations: 3.406 kB / 395.2 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.847e-05/0.3606, allocations: 8.453 kB / 395.2 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005149/0.3658, allocations: 2.702 MB / 397.9 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-06/0.3658, allocations: 5.141 kB / 397.9 MB, free: 3.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008977/0.3667, allocations: 219.3 kB / 398.2 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004298/0.3672, allocations: 151.6 kB / 398.3 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.887e-05/0.3673, allocations: 27.45 kB / 398.3 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003807/0.3711, allocations: 5.563 MB / 403.9 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.3711, allocations: 11.83 kB / 403.9 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003639/0.3747, allocations: 1.79 MB / 405.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004102/0.3752, allocations: 163.7 kB / 405.9 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002285/0.3754, allocations: 21.38 kB / 405.9 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007416/0.3762, allocations: 58.34 kB / 405.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002126/0.3764, allocations: 83.12 kB / 406 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.412e-05/0.3765, allocations: 28 kB / 406 MB, free: 12.49 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008269/0.3773, allocations: 443 kB / 406.5 MB, free: 12.05 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3773, allocations: 0 / 406.5 MB, free: 12.05 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001445/0.3788, allocations: 256 kB / 406.7 MB, free: 11.8 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.003938/0.3827, allocations: 2.385 MB / 409.1 MB, free: 9.379 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002853/0.3856, allocations: 1.371 MB / 410.5 MB, free: 7.973 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.3856, allocations: 0 / 410.5 MB, free: 7.973 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001653/0.3873, allocations: 1.029 MB / 411.5 MB, free: 6.891 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.3887, allocations: 179.4 kB / 411.7 MB, free: 6.723 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01174/0.4005, allocations: 6.089 MB / 417.8 MB, free: 444 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007502/0.4013, allocations: 1.023 MB / 418.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006335/0.4019, allocations: 123.6 kB / 418.9 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005648/0.4025, allocations: 387.3 kB / 419.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of SimCode: time 1.392e-06/0.4025, allocations: 0 / 419.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03761/0.4401, allocations: 19 MB / 438.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003549/0.4405, allocations: 239.6 kB / 438.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.444/2.885, allocations: 3.938 kB / 438.5 MB, free: 11.95 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)