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.00131/0.00131, allocations: 108.2 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001165/0.001165, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 58.28 kB / 306.6 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.102, allocations: 50.53 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.008208/0.1103, allocations: 6.425 MB / 363.5 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004067/0.1144, allocations: 1.886 MB / 365.4 MB, free: 5.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00111/0.1155, allocations: 19.94 kB / 365.4 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009146/0.1165, allocations: 174.8 kB / 365.6 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001636/0.1181, allocations: 365.5 kB / 365.9 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.1193, allocations: 327.7 kB / 366.3 MB, free: 5.082 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002358/0.1217, allocations: 1.503 MB / 367.8 MB, free: 3.574 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009114/0.1226, allocations: 0.5094 MB / 368.3 MB, free: 3.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001296/0.1239, allocations: 0.5528 MB / 368.8 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006369/0.1246, allocations: 0.6107 MB / 369.4 MB, free: 1.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001843/0.1247, allocations: 160 kB / 369.6 MB, free: 1.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002507/0.125, allocations: 164 kB / 369.8 MB, free: 1.562 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002323/0.1252, allocations: 303.1 kB / 370.1 MB, free: 1.266 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006976/0.1259, allocations: 0.665 MB / 370.7 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2185/0.3445, allocations: 1.861 MB / 372.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.127e-06/0.3446, allocations: 8.031 kB / 372.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3446, allocations: 0 / 372.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.191e-05/0.3447, allocations: 0 / 372.6 MB, free: 12.55 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003351/0.348, allocations: 1.445 MB / 374 MB, free: 11.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.3481, allocations: 9.156 kB / 374 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001816/0.3483, allocations: 151.2 kB / 374.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005397/0.3488, allocations: 151.1 kB / 374.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.3499, allocations: 0.681 MB / 375 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001542/0.3501, allocations: 83.78 kB / 375.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001913/0.3503, allocations: 95.09 kB / 375.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002167/0.3525, allocations: 0.9747 MB / 376.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.422e-05/0.3525, allocations: 10.22 kB / 376.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.381e-05/0.3526, allocations: 42.75 kB / 376.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.653e-05/0.3527, allocations: 23.38 kB / 376.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001617/0.3543, allocations: 0.8012 MB / 377 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006644/0.3609, allocations: 3.338 MB / 380.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.3627, allocations: 0.8047 MB / 381.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008583/0.3635, allocations: 443.3 kB / 381.6 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.589e-05/0.3636, allocations: 15.73 kB / 381.6 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.3637, allocations: 45.22 kB / 381.7 MB, free: 9.477 MB / 302.1 MB Notification: Performance of pre-optimization done (n=95): time 3.497e-06/0.3637, allocations: 0.9375 kB / 381.7 MB, free: 9.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=119): time 0.01104/0.3747, allocations: 4.174 MB / 385.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.3748, allocations: 89.89 kB / 385.9 MB, free: 6.988 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/0.3759, allocations: 0.6431 MB / 386.6 MB, free: 6.688 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.463e-05/0.376, allocations: 45.55 kB / 386.6 MB, free: 6.641 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002759/0.3763, allocations: 438.3 kB / 387.1 MB, free: 6.301 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002983/0.3766, allocations: 409.2 kB / 387.5 MB, free: 5.984 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004028/0.377, allocations: 183.8 kB / 387.6 MB, free: 5.895 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.3772, allocations: 395.3 kB / 388 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008854/0.3781, allocations: 351 kB / 388.4 MB, free: 5.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009555/0.379, allocations: 486.9 kB / 388.8 MB, free: 5.148 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001845/0.3809, allocations: 0.8556 MB / 389.7 MB, free: 4.676 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.986e-05/0.3809, allocations: 2.094 kB / 389.7 MB, free: 4.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002701/0.3836, allocations: 1.154 MB / 390.8 MB, free: 4.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.3837, allocations: 6.875 kB / 390.9 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.3837, allocations: 1.75 kB / 390.9 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005236/0.3842, allocations: 129.6 kB / 391 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001364/0.3856, allocations: 240.4 kB / 391.2 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003976/0.3896, allocations: 4.988 MB / 396.2 MB, free: 15.33 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009961/0.3906, allocations: 32.78 kB / 396.2 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/0.3907, allocations: 42.83 kB / 396.3 MB, free: 15.3 MB / 318.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 (132): * Single equations (assignments): 129 * 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.0006648/0.3914, allocations: 289.8 kB / 396.6 MB, free: 15.08 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000298/0.3917, allocations: 92.19 kB / 396.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002015/0.3938, allocations: 0.7512 MB / 397.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.3938, allocations: 11 kB / 397.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.047e-05/0.3938, allocations: 4.125 kB / 397.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.805e-05/0.3938, allocations: 5.531 kB / 397.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005823/0.3997, allocations: 2.625 MB / 400.1 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.3997, allocations: 4.766 kB / 400.1 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.4009, allocations: 187.3 kB / 400.2 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006064/0.4015, allocations: 171.5 kB / 400.4 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001158/0.4016, allocations: 22.84 kB / 400.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004649/0.4063, allocations: 5.996 MB / 406.4 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.4063, allocations: 0 / 406.4 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002811/0.4091, allocations: 1.658 MB / 408.1 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006113/0.4098, allocations: 251.8 kB / 408.3 MB, free: 5.422 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002677/0.41, allocations: 22.75 kB / 408.3 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007188/0.4108, allocations: 37.94 kB / 408.4 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.411, allocations: 87.55 kB / 408.5 MB, free: 5.336 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.648e-05/0.411, allocations: 32.41 kB / 408.5 MB, free: 5.328 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006696/0.4117, allocations: 464.7 kB / 409 MB, free: 4.926 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4117, allocations: 0 / 409 MB, free: 4.926 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001145/0.4129, allocations: 260 kB / 409.2 MB, free: 4.672 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 (108): * Single equations (assignments): 104 * 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.003049/0.4159, allocations: 2.243 MB / 411.5 MB, free: 2.41 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002847/0.4188, allocations: 1.323 MB / 412.8 MB, free: 1.066 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.4188, allocations: 4 kB / 412.8 MB, free: 1.062 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00131/0.4201, allocations: 0.985 MB / 413.8 MB, free: 56 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001343/0.4215, allocations: 203 kB / 414 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01422/0.4357, allocations: 9.117 MB / 423.1 MB, free: 6.527 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006971/0.4364, allocations: 1.04 MB / 424.1 MB, free: 5.457 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005986/0.4371, allocations: 124 kB / 424.2 MB, free: 5.332 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006116/0.4377, allocations: 403.3 kB / 424.6 MB, free: 4.938 MB / 334.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4377, allocations: 0 / 424.6 MB, free: 4.938 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05715/0.4948, allocations: 20.88 MB / 445.5 MB, free: 412 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002976/0.4952, allocations: 257.3 kB / 445.8 MB, free: 144 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.541/4.036, allocations: 0 / 445.8 MB, free: 144 kB / 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/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)