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.001514/0.001514, allocations: 109.5 kB / 16.51 MB, free: 6.707 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.001653/0.001653, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.404/1.404, allocations: 222.9 MB / 241.1 MB, free: 13.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001085/0.001085, allocations: 42.56 kB / 300.1 MB, free: 5.973 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09603/0.09713, allocations: 49.45 MB / 349.5 MB, free: 4.516 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007615/0.1048, allocations: 6.29 MB / 355.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003912/0.1087, allocations: 1.811 MB / 357.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009704/0.1097, allocations: 16 kB / 357.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009203/0.1107, allocations: 174.8 kB / 357.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00144/0.1122, allocations: 345.5 kB / 358.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.1132, allocations: 331.7 kB / 358.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001948/0.1152, allocations: 1.374 MB / 359.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000807/0.116, allocations: 459.2 kB / 360.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007589/0.1168, allocations: 462.1 kB / 360.7 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008988/0.1177, allocations: 0.5521 MB / 361.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002669/0.118, allocations: 76 kB / 361.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000348/0.1183, allocations: 76 kB / 361.4 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002388/0.1186, allocations: 219.1 kB / 361.7 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006268/0.1192, allocations: 0.5635 MB / 362.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001452/0.1207, allocations: 1.756 MB / 364 MB, free: 5.973 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1207, allocations: 8 kB / 364 MB, free: 5.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.1207, allocations: 0 / 364 MB, free: 5.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.1207, allocations: 4 kB / 364 MB, free: 5.961 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.002816/0.1235, allocations: 1.445 MB / 365.4 MB, free: 4.461 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.1236, allocations: 8.031 kB / 365.4 MB, free: 4.453 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001659/0.1238, allocations: 148.3 kB / 365.6 MB, free: 4.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001845/0.124, allocations: 123.5 kB / 365.7 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.125, allocations: 0.665 MB / 366.4 MB, free: 3.473 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/0.1251, allocations: 82.55 kB / 366.4 MB, free: 3.391 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.1253, allocations: 92.38 kB / 366.5 MB, free: 3.301 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0018/0.1271, allocations: 1.009 MB / 367.5 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.11e-05/0.1271, allocations: 3.906 kB / 367.6 MB, free: 2.273 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.173e-05/0.1272, allocations: 44 kB / 367.6 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.726e-05/0.1272, allocations: 24 kB / 367.6 MB, free: 2.207 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/0.129, allocations: 0.8678 MB / 368.5 MB, free: 1.344 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.152/0.281, allocations: 3.329 MB / 371.8 MB, free: 23.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.2826, allocations: 0.8092 MB / 372.6 MB, free: 23.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009495/0.2836, allocations: 476.3 kB / 373.1 MB, free: 23.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.567e-05/0.2837, allocations: 14.17 kB / 373.1 MB, free: 23.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.2837, allocations: 43.97 kB / 373.1 MB, free: 23.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 3.216e-06/0.2837, allocations: 3.812 kB / 373.2 MB, free: 23.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.009773/0.2935, allocations: 4.299 MB / 377.5 MB, free: 20.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.76e-05/0.2936, allocations: 93.8 kB / 377.5 MB, free: 20.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009237/0.2945, allocations: 0.5925 MB / 378.1 MB, free: 20.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.765e-05/0.2946, allocations: 46.3 kB / 378.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003/0.2949, allocations: 437.1 kB / 378.6 MB, free: 20 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002728/0.2952, allocations: 393.5 kB / 379 MB, free: 19.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002883/0.2955, allocations: 181.9 kB / 379.2 MB, free: 19.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.2956, allocations: 396.2 kB / 379.6 MB, free: 19.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008484/0.2965, allocations: 382.8 kB / 379.9 MB, free: 19.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009148/0.2974, allocations: 0.5154 MB / 380.4 MB, free: 18.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001546/0.2989, allocations: 0.8795 MB / 381.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.299, allocations: 1.188 kB / 381.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002377/0.3013, allocations: 1.185 MB / 382.5 MB, free: 17.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.3014, allocations: 9.312 kB / 382.5 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.3014, allocations: 7.438 kB / 382.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003937/0.3018, allocations: 129.6 kB / 382.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.3029, allocations: 250.8 kB / 382.9 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002749/0.3056, allocations: 4.521 MB / 387.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007856/0.3064, allocations: 60.86 kB / 387.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.62e-05/0.3065, allocations: 42.53 kB / 387.5 MB, free: 13.41 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_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.0004618/0.307, allocations: 270.5 kB / 387.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.3071, allocations: 92.23 kB / 387.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001528/0.3087, allocations: 0.7776 MB / 388.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.3087, allocations: 15.7 kB / 388.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/0.3087, allocations: 2.812 kB / 388.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.3087, allocations: 10.34 kB / 388.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004249/0.313, allocations: 2.646 MB / 391.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.313, allocations: 1.156 kB / 391.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009504/0.314, allocations: 207 kB / 391.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004698/0.3145, allocations: 160.1 kB / 391.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.96e-05/0.3145, allocations: 31.48 kB / 391.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002949/0.3175, allocations: 5.57 MB / 397.3 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3175, allocations: 0 / 397.3 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002946/0.3205, allocations: 1.743 MB / 399 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/0.3207, allocations: 160.6 kB / 399.2 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.3208, allocations: 24.67 kB / 399.2 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005873/0.3214, allocations: 51.2 kB / 399.3 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.3216, allocations: 88.56 kB / 399.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.999e-05/0.3217, allocations: 33.39 kB / 399.4 MB, free: 4.613 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005599/0.3222, allocations: 438.1 kB / 399.8 MB, free: 4.359 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3223, allocations: 2.406 kB / 399.8 MB, free: 4.359 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001026/0.3233, allocations: 260.4 kB / 400.1 MB, free: 4.32 MB / 302.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.002946/0.3262, allocations: 2.334 MB / 402.4 MB, free: 2.734 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002246/0.3285, allocations: 1.338 MB / 403.7 MB, free: 1.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3285, allocations: 0 / 403.7 MB, free: 1.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.3297, allocations: 0.9968 MB / 404.7 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009998/0.3307, allocations: 172.8 kB / 404.9 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/0.3451, allocations: 9.066 MB / 414 MB, free: 7.473 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006242/0.3458, allocations: 1.027 MB / 415 MB, free: 6.418 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006262/0.3464, allocations: 123.6 kB / 415.1 MB, free: 6.293 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005312/0.3469, allocations: 387.3 kB / 415.5 MB, free: 5.914 MB / 318.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3469, allocations: 0 / 415.5 MB, free: 5.914 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03972/0.3867, allocations: 19.6 MB / 435.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002498/0.3869, allocations: 247.3 kB / 435.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.895/3.282, allocations: 0 / 435.3 MB, free: 2.352 MB / 334.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)