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.001171/0.001171, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001222/0.001222, allocations: 206.4 kB / 18.58 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 59.94 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1049, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007885/0.1128, allocations: 6.426 MB / 364 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003758/0.1166, allocations: 1.909 MB / 365.9 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001093/0.1177, allocations: 19.94 kB / 365.9 MB, free: 5.613 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009067/0.1187, allocations: 222 kB / 366.2 MB, free: 5.395 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001581/0.1203, allocations: 404.8 kB / 366.6 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.1214, allocations: 383.5 kB / 366.9 MB, free: 4.621 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002248/0.1237, allocations: 1.495 MB / 368.4 MB, free: 3.121 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000899/0.1246, allocations: 0.5133 MB / 368.9 MB, free: 2.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009997/0.1256, allocations: 0.5528 MB / 369.5 MB, free: 2.031 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000963/0.1266, allocations: 0.6029 MB / 370.1 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004051/0.127, allocations: 164 kB / 370.2 MB, free: 1.266 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004913/0.1275, allocations: 167.9 kB / 370.4 MB, free: 1.102 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003276/0.1278, allocations: 303.1 kB / 370.7 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009394/0.1288, allocations: 0.665 MB / 371.4 MB, free: 140 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1941/0.3229, allocations: 1.864 MB / 373.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.3229, allocations: 0 / 373.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3229, allocations: 0 / 373.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.071e-05/0.323, allocations: 0 / 373.2 MB, free: 11.8 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.003375/0.3264, allocations: 1.442 MB / 374.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.3265, allocations: 9 kB / 374.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001765/0.3267, allocations: 153 kB / 374.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000551/0.3272, allocations: 150.3 kB / 375 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/0.3282, allocations: 0.6806 MB / 375.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001254/0.3284, allocations: 83.45 kB / 375.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.3285, allocations: 100.3 kB / 375.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/0.3302, allocations: 0.9713 MB / 376.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.365e-05/0.3303, allocations: 9.156 kB / 376.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.342e-05/0.3304, allocations: 39.06 kB / 376.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.883e-05/0.3304, allocations: 25.41 kB / 376.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001426/0.3318, allocations: 0.8006 MB / 377.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004721/0.3365, allocations: 3.341 MB / 381 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.3378, allocations: 0.8094 MB / 381.8 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006607/0.3385, allocations: 435 kB / 382.3 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.45e-05/0.3385, allocations: 19.64 kB / 382.3 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.3386, allocations: 46.67 kB / 382.3 MB, free: 8.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=95): time 2.595e-06/0.3386, allocations: 0 / 382.3 MB, free: 8.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=119): time 0.008055/0.3466, allocations: 4.183 MB / 386.5 MB, free: 5.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.3467, allocations: 93.64 kB / 386.6 MB, free: 5.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008134/0.3475, allocations: 0.6367 MB / 387.2 MB, free: 5.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.814e-05/0.3476, allocations: 45.89 kB / 387.3 MB, free: 5.559 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000204/0.3478, allocations: 437.9 kB / 387.7 MB, free: 5.215 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.348, allocations: 410.9 kB / 388.1 MB, free: 4.898 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002602/0.3483, allocations: 182.9 kB / 388.3 MB, free: 4.809 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.867e-05/0.3484, allocations: 400.5 kB / 388.7 MB, free: 4.457 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006149/0.349, allocations: 343.5 kB / 389 MB, free: 4.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007333/0.3497, allocations: 490.3 kB / 389.5 MB, free: 4.059 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001363/0.3511, allocations: 0.8517 MB / 390.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.3511, allocations: 0.9062 kB / 390.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002098/0.3532, allocations: 1.152 MB / 391.5 MB, free: 3.094 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.3533, allocations: 5.438 kB / 391.5 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.3533, allocations: 6.953 kB / 391.5 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004778/0.3538, allocations: 136.4 kB / 391.6 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009856/0.3548, allocations: 236.6 kB / 391.9 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003195/0.358, allocations: 4.984 MB / 396.9 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007869/0.3588, allocations: 39.36 kB / 396.9 MB, free: 14.22 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.75e-05/0.3589, allocations: 38.44 kB / 396.9 MB, free: 14.21 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.0005373/0.3594, allocations: 291.6 kB / 397.2 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001838/0.3596, allocations: 93.22 kB / 397.3 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001489/0.3611, allocations: 0.7467 MB / 398.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.3611, allocations: 11 kB / 398.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/0.3611, allocations: 4.125 kB / 398.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.3612, allocations: 3.984 kB / 398.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004297/0.3655, allocations: 2.631 MB / 400.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.3655, allocations: 0 / 400.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007877/0.3663, allocations: 195.6 kB / 400.9 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004279/0.3667, allocations: 165.8 kB / 401.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.092e-05/0.3668, allocations: 22.59 kB / 401.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004306/0.3711, allocations: 5.984 MB / 407.1 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.3711, allocations: 6.438 kB / 407.1 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002826/0.374, allocations: 1.668 MB / 408.7 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000534/0.3745, allocations: 249.2 kB / 409 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001351/0.3747, allocations: 22.88 kB / 409 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005464/0.3752, allocations: 37.69 kB / 409 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/0.3754, allocations: 87.48 kB / 409.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.108e-05/0.3755, allocations: 34.41 kB / 409.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006797/0.3762, allocations: 465 kB / 409.6 MB, free: 3.875 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3762, allocations: 0 / 409.6 MB, free: 3.875 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001154/0.3773, allocations: 259.2 kB / 409.9 MB, free: 3.84 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.002899/0.3802, allocations: 2.244 MB / 412.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002646/0.3829, allocations: 1.328 MB / 413.4 MB, free: 264 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3829, allocations: 0 / 413.4 MB, free: 264 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001335/0.3843, allocations: 0.9737 MB / 414.4 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/0.3856, allocations: 207.5 kB / 414.6 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01252/0.3981, allocations: 8.699 MB / 423.3 MB, free: 6.141 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000572/0.3987, allocations: 1.037 MB / 424.4 MB, free: 5.074 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005959/0.3993, allocations: 124 kB / 424.5 MB, free: 4.949 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004916/0.3998, allocations: 399.3 kB / 424.9 MB, free: 4.559 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3998, allocations: 0 / 424.9 MB, free: 4.559 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.419/0.8188, allocations: 21.1 MB / 446 MB, free: 15.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.78/14.59, allocations: 10.03 kB / 446 MB, free: 15.75 MB / 366.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)