Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_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.001459/0.001459, allocations: 111.7 kB / 17.06 MB, free: 6.016 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.001512/0.001512, allocations: 189.4 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 43.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3178, allocations: 49.45 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.008267/0.3261, allocations: 6.293 MB / 406.5 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003856/0.33, allocations: 1.85 MB / 408.4 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006817/0.3307, allocations: 15.94 kB / 408.4 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000684/0.3315, allocations: 218.1 kB / 408.6 MB, free: 400 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001028/0.3326, allocations: 388.8 kB / 409 MB, free: 8 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008851/0.3335, allocations: 379.5 kB / 409.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001938/0.3354, allocations: 1.483 MB / 410.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007918/0.3362, allocations: 0.513 MB / 411.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007124/0.3369, allocations: 0.5333 MB / 411.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007276/0.3377, allocations: 0.5991 MB / 412.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001909/0.3379, allocations: 160 kB / 412.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000243/0.3381, allocations: 160 kB / 412.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002568/0.3384, allocations: 303 kB / 413.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006428/0.339, allocations: 0.6456 MB / 413.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001998/0.341, allocations: 1.852 MB / 415.6 MB, free: 9.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3411, allocations: 4 kB / 415.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.3411, allocations: 0 / 415.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.3411, allocations: 0 / 415.6 MB, free: 9.355 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: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.002983/0.3441, allocations: 1.479 MB / 417.1 MB, free: 7.824 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.3441, allocations: 8.031 kB / 417.1 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001849/0.3443, allocations: 152.3 kB / 417.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002003/0.3445, allocations: 124.2 kB / 417.4 MB, free: 7.539 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.3457, allocations: 0.6733 MB / 418 MB, free: 6.824 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.214e-05/0.3458, allocations: 74.38 kB / 418.1 MB, free: 6.754 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.3459, allocations: 104.3 kB / 418.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001899/0.3478, allocations: 1.005 MB / 419.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.854e-05/0.3479, allocations: 4 kB / 419.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.97e-05/0.348, allocations: 43.94 kB / 419.3 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.205e-05/0.348, allocations: 20 kB / 419.3 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001902/0.3499, allocations: 0.864 MB / 420.1 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00535/0.3553, allocations: 3.314 MB / 423.5 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001512/0.3568, allocations: 0.8201 MB / 424.3 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/0.3579, allocations: 474.4 kB / 424.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.294e-05/0.358, allocations: 20.42 kB / 424.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.897e-05/0.358, allocations: 51.06 kB / 424.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 3.236e-06/0.358, allocations: 0 / 424.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=115): time 0.01014/0.3682, allocations: 4.32 MB / 429.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.237e-05/0.3683, allocations: 89.77 kB / 429.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008843/0.3692, allocations: 0.6046 MB / 429.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.118e-05/0.3693, allocations: 41.7 kB / 429.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000349/0.3696, allocations: 445 kB / 430.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003403/0.37, allocations: 412.4 kB / 430.7 MB, free: 9.746 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003171/0.3703, allocations: 182.9 kB / 430.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002137/0.3705, allocations: 394.7 kB / 431.3 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000858/0.3714, allocations: 378.4 kB / 431.6 MB, free: 8.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009585/0.3723, allocations: 0.5081 MB / 432.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001783/0.3741, allocations: 0.8926 MB / 433 MB, free: 7.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3741, allocations: 0 / 433 MB, free: 7.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002598/0.3768, allocations: 1.185 MB / 434.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.3768, allocations: 8 kB / 434.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.3768, allocations: 0 / 434.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005021/0.3773, allocations: 134.7 kB / 434.4 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.3784, allocations: 251.7 kB / 434.6 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004589/0.383, allocations: 4.977 MB / 439.6 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009525/0.384, allocations: 47.97 kB / 439.6 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.737e-05/0.3841, allocations: 43.92 kB / 439.7 MB, free: 252 kB / 350.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.0005749/0.3847, allocations: 285.7 kB / 440 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001813/0.3849, allocations: 91.48 kB / 440 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001691/0.3866, allocations: 0.7722 MB / 440.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.3866, allocations: 12 kB / 440.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.3866, allocations: 4 kB / 440.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.209e-05/0.3867, allocations: 7.969 kB / 440.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004541/0.3912, allocations: 2.644 MB / 443.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.3912, allocations: 0 / 443.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008979/0.3921, allocations: 203.7 kB / 443.7 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004606/0.3926, allocations: 159.4 kB / 443.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.437e-05/0.3927, allocations: 27.98 kB / 443.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005012/0.3977, allocations: 5.998 MB / 449.9 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3977, allocations: 8.062 kB / 449.9 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003516/0.4013, allocations: 1.746 MB / 451.6 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003549/0.4016, allocations: 168.5 kB / 451.8 MB, free: 3.383 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.4018, allocations: 27.95 kB / 451.8 MB, free: 3.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005909/0.4024, allocations: 47.97 kB / 451.9 MB, free: 3.309 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.4026, allocations: 80.45 kB / 451.9 MB, free: 3.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.998e-05/0.4027, allocations: 27.98 kB / 452 MB, free: 3.203 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006373/0.4033, allocations: 447.1 kB / 452.4 MB, free: 2.766 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4033, allocations: 3.938 kB / 452.4 MB, free: 2.762 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000959/0.4043, allocations: 252 kB / 452.6 MB, free: 2.516 MB / 366.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.004762/0.4091, allocations: 2.326 MB / 455 MB, free: 140 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004115/0.4132, allocations: 1.341 MB / 456.3 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.104e-06/0.4132, allocations: 0 / 456.3 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002525/0.4158, allocations: 1.006 MB / 457.3 MB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001762/0.4176, allocations: 181.4 kB / 457.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01601/0.4336, allocations: 8.227 MB / 465.7 MB, free: 5.082 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007451/0.4344, allocations: 1.024 MB / 466.7 MB, free: 4.031 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005695/0.435, allocations: 123.6 kB / 466.9 MB, free: 3.906 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005632/0.4355, allocations: 387.3 kB / 467.2 MB, free: 3.527 MB / 382.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4355, allocations: 0 / 467.2 MB, free: 3.527 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06389/0.4994, allocations: 20.75 MB / 488 MB, free: 15.06 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.5, allocations: 7.609 kB / 488 MB, free: 15.05 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)