Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 110.5 kB / 17.73 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.48/1.48, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 51.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1087, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.2278/0.3365, allocations: 6.22 MB / 380.9 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003494/0.3401, allocations: 1.873 MB / 382.7 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007645/0.3409, allocations: 22.19 kB / 382.8 MB, free: 9 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006973/0.3416, allocations: 217.6 kB / 383 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001137/0.3428, allocations: 393.2 kB / 383.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007855/0.3436, allocations: 380.2 kB / 383.7 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001834/0.3454, allocations: 1.489 MB / 385.2 MB, free: 7.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006921/0.3461, allocations: 0.507 MB / 385.7 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007692/0.3469, allocations: 0.5397 MB / 386.3 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006315/0.3475, allocations: 0.5944 MB / 386.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002005/0.3477, allocations: 159.2 kB / 387 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002668/0.348, allocations: 158.8 kB / 387.2 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002146/0.3482, allocations: 307.3 kB / 387.5 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005626/0.3488, allocations: 0.6447 MB / 388.1 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002093/0.3509, allocations: 1.852 MB / 390 MB, free: 5.871 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3509, allocations: 1.219 kB / 390 MB, free: 5.871 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3509, allocations: 0 / 390 MB, free: 5.871 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.965e-05/0.351, allocations: 0 / 390 MB, free: 5.871 MB / 318.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.002953/0.3539, allocations: 1.477 MB / 391.4 MB, free: 4.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.354, allocations: 13.31 kB / 391.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001737/0.3542, allocations: 151.7 kB / 391.6 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002108/0.3544, allocations: 127.7 kB / 391.7 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.3555, allocations: 0.6828 MB / 392.4 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.476e-05/0.3556, allocations: 70.69 kB / 392.5 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001485/0.3558, allocations: 104.5 kB / 392.6 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001879/0.3576, allocations: 1.004 MB / 393.6 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.772e-05/0.3577, allocations: 7.609 kB / 393.6 MB, free: 3.777 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.249e-05/0.3578, allocations: 39.84 kB / 393.6 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.402e-05/0.3578, allocations: 24.84 kB / 393.7 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001918/0.3597, allocations: 0.8635 MB / 394.5 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005532/0.3653, allocations: 3.307 MB / 397.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.3666, allocations: 0.8091 MB / 398.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008213/0.3675, allocations: 481.5 kB / 399.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.544e-05/0.3675, allocations: 20.73 kB / 399.1 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.3676, allocations: 43.91 kB / 399.2 MB, free: 0.918 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 3.537e-06/0.3676, allocations: 3.938 kB / 399.2 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of matching and sorting (n=115): time 0.01022/0.3778, allocations: 4.333 MB / 403.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.378e-05/0.3779, allocations: 89.55 kB / 403.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000969/0.3789, allocations: 0.6036 MB / 404.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.106e-05/0.379, allocations: 46.05 kB / 404.2 MB, free: 13.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003852/0.3794, allocations: 438.4 kB / 404.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003674/0.3798, allocations: 412.1 kB / 405.1 MB, free: 12.99 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003329/0.3801, allocations: 180.3 kB / 405.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002537/0.3804, allocations: 393.1 kB / 405.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009058/0.3813, allocations: 386.3 kB / 406 MB, free: 12.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/0.3823, allocations: 0.5052 MB / 406.5 MB, free: 12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001811/0.3841, allocations: 0.8859 MB / 407.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.3841, allocations: 5.469 kB / 407.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002658/0.3868, allocations: 1.188 MB / 408.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.3868, allocations: 5.5 kB / 408.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.3869, allocations: 4.594 kB / 408.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004832/0.3873, allocations: 138.2 kB / 408.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.3884, allocations: 250.9 kB / 409 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004837/0.3933, allocations: 4.98 MB / 414 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009679/0.3943, allocations: 47.22 kB / 414 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.803e-05/0.3944, allocations: 47.3 kB / 414.1 MB, free: 5.715 MB / 334.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 (128): * Single equations (assignments): 125 * 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.000593/0.395, allocations: 282 kB / 414.3 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.3952, allocations: 104.5 kB / 414.4 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001782/0.3969, allocations: 0.7643 MB / 415.2 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.397, allocations: 10.69 kB / 415.2 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.656e-05/0.397, allocations: 3.594 kB / 415.2 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.921e-05/0.397, allocations: 5.766 kB / 415.2 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004783/0.4018, allocations: 2.65 MB / 417.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.4018, allocations: 0 / 417.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009043/0.4028, allocations: 205.5 kB / 418.1 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004702/0.4032, allocations: 153.5 kB / 418.2 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.359e-05/0.4033, allocations: 26.86 kB / 418.2 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005166/0.4085, allocations: 5.991 MB / 424.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.4085, allocations: 4.125 kB / 424.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003369/0.4119, allocations: 1.746 MB / 426 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003442/0.4123, allocations: 172.6 kB / 426.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/0.4124, allocations: 16 kB / 426.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005889/0.413, allocations: 51.95 kB / 426.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.4132, allocations: 80.45 kB / 426.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.128e-05/0.4133, allocations: 31.98 kB / 426.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006302/0.4139, allocations: 439.1 kB / 426.8 MB, free: 9.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4139, allocations: 3.938 kB / 426.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001002/0.4149, allocations: 259.9 kB / 427 MB, free: 9.727 MB / 350.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 (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.003657/0.4186, allocations: 2.329 MB / 429.3 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002652/0.4213, allocations: 1.33 MB / 430.7 MB, free: 5.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/0.4213, allocations: 4 kB / 430.7 MB, free: 5.977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001647/0.4229, allocations: 1.014 MB / 431.7 MB, free: 4.914 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.4241, allocations: 187.3 kB / 431.9 MB, free: 4.738 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01487/0.4389, allocations: 8.214 MB / 440.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/0.44, allocations: 1.028 MB / 441.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006764/0.4407, allocations: 119.6 kB / 441.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007448/0.4415, allocations: 387.3 kB / 441.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of SimCode: time 1.282e-06/0.4415, allocations: 0 / 441.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08806/0.5296, allocations: 20.75 MB / 462.4 MB, free: 5.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.38, allocations: 12.27 kB / 462.4 MB, free: 5.898 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)