Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002344/0.002344, allocations: 183.5 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.175/2.175, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 97.98 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004105/0.0004105, allocations: 8 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3449, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.008252/0.3532, allocations: 5.022 MB / 379.7 MB, free: 41.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004388/0.3576, allocations: 1.837 MB / 381.5 MB, free: 40.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001033/0.3587, allocations: 23.31 kB / 381.5 MB, free: 40.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000558/0.3593, allocations: 154.9 kB / 381.7 MB, free: 39.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00158/0.3609, allocations: 418.7 kB / 382.1 MB, free: 39.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008775/0.3618, allocations: 218.4 kB / 382.3 MB, free: 39.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002131/0.364, allocations: 0.9042 MB / 383.2 MB, free: 38.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007522/0.3648, allocations: 366.5 kB / 383.5 MB, free: 38.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009147/0.3657, allocations: 424.9 kB / 384 MB, free: 38.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007635/0.3665, allocations: 0.4972 MB / 384.5 MB, free: 38.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001877/0.3667, allocations: 60.53 kB / 384.5 MB, free: 38.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002581/0.367, allocations: 61.44 kB / 384.6 MB, free: 38.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001919/0.3672, allocations: 193.5 kB / 384.8 MB, free: 37.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002944/0.3675, allocations: 246.5 kB / 385 MB, free: 37.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001622/0.3691, allocations: 1.452 MB / 386.5 MB, free: 36.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3691, allocations: 0 / 386.5 MB, free: 36.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.975e-06/0.3691, allocations: 1.094 kB / 386.5 MB, free: 36.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.757e-05/0.3692, allocations: 0 / 386.5 MB, free: 36.55 MB / 298.7 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.004409/0.3736, allocations: 1.294 MB / 387.8 MB, free: 35.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/0.3737, allocations: 9.344 kB / 387.8 MB, free: 35.62 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002843/0.374, allocations: 157.2 kB / 387.9 MB, free: 35.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002793/0.3742, allocations: 122.6 kB / 388 MB, free: 35.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001558/0.3758, allocations: 0.6446 MB / 388.7 MB, free: 34.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.376, allocations: 77.98 kB / 388.8 MB, free: 34.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002125/0.3762, allocations: 96 kB / 388.9 MB, free: 34.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002817/0.3791, allocations: 1.013 MB / 389.9 MB, free: 33.47 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.049e-05/0.3792, allocations: 11.91 kB / 389.9 MB, free: 33.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001311/0.3793, allocations: 40 kB / 389.9 MB, free: 33.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-05/0.3794, allocations: 20 kB / 389.9 MB, free: 33.4 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003169/0.3825, allocations: 0.907 MB / 390.8 MB, free: 32.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007252/0.3898, allocations: 3.361 MB / 394.2 MB, free: 29.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002169/0.3921, allocations: 0.8337 MB / 395 MB, free: 28.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.199e-05/0.3922, allocations: 8.562 kB / 395 MB, free: 28.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.3922, allocations: 51.12 kB / 395.1 MB, free: 28.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=91): time 3.857e-06/0.3922, allocations: 0 / 395.1 MB, free: 28.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=115): time 0.01499/0.4072, allocations: 4.432 MB / 399.5 MB, free: 23.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.4073, allocations: 93.7 kB / 399.6 MB, free: 23.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/0.4084, allocations: 0.5968 MB / 400.2 MB, free: 22.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001368/0.4086, allocations: 45.7 kB / 400.3 MB, free: 22.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000255/0.4088, allocations: 454.6 kB / 400.7 MB, free: 22.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003351/0.4092, allocations: 402.2 kB / 401.1 MB, free: 21.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.316e-05/0.4093, allocations: 20 kB / 401.1 MB, free: 21.83 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.48e-05/0.4094, allocations: 350.8 kB / 401.5 MB, free: 21.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001543/0.4109, allocations: 402.4 kB / 401.9 MB, free: 21.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/0.4125, allocations: 0.5237 MB / 402.4 MB, free: 20.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001543/0.414, allocations: 447.9 kB / 402.8 MB, free: 20.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.4141, allocations: 3.938 kB / 402.8 MB, free: 20.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003885/0.418, allocations: 1.185 MB / 404 MB, free: 18.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.418, allocations: 4 kB / 404 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.4181, allocations: 4 kB / 404 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005905/0.4187, allocations: 134.4 kB / 404.1 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002059/0.4207, allocations: 255.7 kB / 404.4 MB, free: 18.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004196/0.425, allocations: 4.56 MB / 409 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/0.4265, allocations: 67.95 kB / 409 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.4266, allocations: 40.38 kB / 409.1 MB, free: 13.42 MB / 298.7 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.0006338/0.4273, allocations: 282 kB / 409.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002912/0.4276, allocations: 94.92 kB / 409.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00246/0.4301, allocations: 0.7801 MB / 410.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/0.4301, allocations: 12 kB / 410.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.461e-05/0.4301, allocations: 4 kB / 410.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.332e-05/0.4302, allocations: 7.984 kB / 410.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00693/0.4371, allocations: 2.694 MB / 412.9 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/0.4372, allocations: 0 / 412.9 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001809/0.439, allocations: 227.7 kB / 413.1 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000798/0.4398, allocations: 155.3 kB / 413.3 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002018/0.4401, allocations: 24 kB / 413.3 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004611/0.4447, allocations: 5.616 MB / 418.9 MB, free: 2.867 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.4448, allocations: 0 / 418.9 MB, free: 2.867 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00542/0.4502, allocations: 1.827 MB / 420.8 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004189/0.4507, allocations: 160.1 kB / 420.9 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002336/0.4509, allocations: 24 kB / 420.9 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/0.4521, allocations: 63.95 kB / 421 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002791/0.4524, allocations: 76.39 kB / 421.1 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.4525, allocations: 35.98 kB / 421.1 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008483/0.4534, allocations: 431.1 kB / 421.5 MB, free: 196 kB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4534, allocations: 4 kB / 421.5 MB, free: 192 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.00175/0.4552, allocations: 256 kB / 421.8 MB, free: 15.93 MB / 314.7 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.007024/0.4623, allocations: 2.622 MB / 424.4 MB, free: 13.26 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004638/0.4669, allocations: 1.369 MB / 425.8 MB, free: 11.85 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.136e-06/0.467, allocations: 0 / 425.8 MB, free: 11.85 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002883/0.4699, allocations: 1.026 MB / 426.8 MB, free: 10.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001631/0.4716, allocations: 162.4 kB / 427 MB, free: 10.61 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01958/0.4912, allocations: 7.772 MB / 434.7 MB, free: 2.625 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009352/0.4922, allocations: 1.044 MB / 435.8 MB, free: 1.551 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001167/0.4934, allocations: 395.3 kB / 436.2 MB, free: 1.164 MB / 314.7 MB Notification: Performance of SimCode: time 1.493e-06/0.4934, allocations: 0 / 436.2 MB, free: 1.164 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.165/3.659, allocations: 32.05 MB / 468.2 MB, free: 1.059 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)