Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001702/0.001702, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002362/0.002362, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.483/1.483, allocations: 230.6 MB / 258.3 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00209/0.00209, allocations: 60.77 kB / 378.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3011, allocations: 53.37 MB / 431.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.008818/0.31, allocations: 6.486 MB / 438.4 MB, free: 388 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004642/0.3146, allocations: 1.925 MB / 440.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009838/0.3156, allocations: 27.88 kB / 440.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008219/0.3164, allocations: 218 kB / 440.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001539/0.318, allocations: 424.7 kB / 441 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009129/0.3189, allocations: 379.5 kB / 441.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002044/0.3209, allocations: 1.503 MB / 442.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006132/0.3215, allocations: 353.6 kB / 443.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009379/0.3225, allocations: 0.5723 MB / 443.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009065/0.3234, allocations: 0.6107 MB / 444.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000222/0.3236, allocations: 160 kB / 444.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002778/0.3239, allocations: 172 kB / 444.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002663/0.3241, allocations: 303.1 kB / 445 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007132/0.3248, allocations: 0.6611 MB / 445.7 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002174/0.327, allocations: 1.893 MB / 447.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.327, allocations: 0 / 447.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.327, allocations: 0 / 447.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.035e-05/0.3271, allocations: 0 / 447.6 MB, free: 7.176 MB / 350.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.003088/0.3301, allocations: 1.396 MB / 449 MB, free: 5.746 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.3302, allocations: 8.031 kB / 449 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001886/0.3304, allocations: 152.4 kB / 449.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005451/0.3309, allocations: 156.1 kB / 449.3 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00127/0.3322, allocations: 0.6343 MB / 449.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.878e-05/0.3323, allocations: 82 kB / 450 MB, free: 4.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001821/0.3325, allocations: 100 kB / 450.1 MB, free: 4.586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001876/0.3343, allocations: 0.974 MB / 451.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.631e-05/0.3344, allocations: 3.953 kB / 451.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.725e-05/0.3345, allocations: 40 kB / 451.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.608e-05/0.3345, allocations: 24 kB / 451.1 MB, free: 3.531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.3361, allocations: 0.8016 MB / 451.9 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005532/0.3416, allocations: 3.244 MB / 455.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/0.3431, allocations: 0.7568 MB / 455.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007563/0.3438, allocations: 402.8 kB / 456.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.679e-05/0.3439, allocations: 20.47 kB / 456.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.421e-05/0.3439, allocations: 47.62 kB / 456.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=95): time 2.595e-06/0.3439, allocations: 0 / 456.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=119): time 0.008997/0.3529, allocations: 3.826 MB / 460.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/0.353, allocations: 89.77 kB / 460.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009407/0.3539, allocations: 0.6447 MB / 460.9 MB, free: 9.434 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.275e-05/0.354, allocations: 45.7 kB / 461 MB, free: 9.383 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003553/0.3544, allocations: 449.1 kB / 461.4 MB, free: 8.938 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003574/0.3547, allocations: 420.3 kB / 461.8 MB, free: 8.523 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003086/0.355, allocations: 186.9 kB / 462 MB, free: 8.336 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.3552, allocations: 394.7 kB / 462.4 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006937/0.3559, allocations: 346.5 kB / 462.7 MB, free: 7.602 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008509/0.3568, allocations: 488.7 kB / 463.2 MB, free: 7.086 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001688/0.3585, allocations: 0.8587 MB / 464.1 MB, free: 6.191 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.3585, allocations: 0 / 464.1 MB, free: 6.191 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002366/0.3609, allocations: 1.146 MB / 465.2 MB, free: 5.027 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.3609, allocations: 4 kB / 465.2 MB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.3609, allocations: 4 kB / 465.2 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004706/0.3614, allocations: 134.7 kB / 465.4 MB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.3624, allocations: 243.6 kB / 465.6 MB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005225/0.3676, allocations: 4.662 MB / 470.3 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008587/0.3685, allocations: 39.97 kB / 470.3 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.82e-05/0.3686, allocations: 44.05 kB / 470.3 MB, free: 15.55 MB / 382.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.0006479/0.3692, allocations: 281.8 kB / 470.6 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002054/0.3694, allocations: 99.33 kB / 470.7 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001614/0.371, allocations: 0.7375 MB / 471.5 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.67e-05/0.3711, allocations: 16 kB / 471.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/0.3711, allocations: 4 kB / 471.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.3711, allocations: 7.969 kB / 471.5 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004922/0.376, allocations: 2.583 MB / 474.1 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.376, allocations: 0 / 474.1 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009906/0.377, allocations: 191.8 kB / 474.3 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004883/0.3775, allocations: 159.3 kB / 474.4 MB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.886e-05/0.3776, allocations: 24 kB / 474.4 MB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005713/0.3833, allocations: 5.576 MB / 480 MB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3833, allocations: 0 / 480 MB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003156/0.3864, allocations: 1.669 MB / 481.7 MB, free: 3.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005102/0.3869, allocations: 183.3 kB / 481.9 MB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001292/0.3871, allocations: 28 kB / 481.9 MB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005425/0.3876, allocations: 31.92 kB / 481.9 MB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003161/0.3879, allocations: 84.48 kB / 482 MB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-05/0.388, allocations: 28 kB / 482 MB, free: 3.242 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006903/0.3887, allocations: 467.1 kB / 482.5 MB, free: 2.793 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3887, allocations: 3.938 kB / 482.5 MB, free: 2.789 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001019/0.3897, allocations: 260 kB / 482.7 MB, free: 2.535 MB / 382.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.003593/0.3933, allocations: 2.251 MB / 485 MB, free: 248 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002543/0.3958, allocations: 1.231 MB / 486.2 MB, free: 14.97 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.3958, allocations: 0 / 486.2 MB, free: 14.97 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001819/0.3977, allocations: 0.9353 MB / 487.2 MB, free: 13.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/0.3989, allocations: 212.8 kB / 487.4 MB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/0.4139, allocations: 8.206 MB / 495.6 MB, free: 5.348 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009121/0.4148, allocations: 1.033 MB / 496.6 MB, free: 4.289 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000625/0.4155, allocations: 124 kB / 496.7 MB, free: 4.164 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006316/0.4161, allocations: 399.3 kB / 497.1 MB, free: 3.773 MB / 398.1 MB Notification: Performance of SimCode: time 1.774e-06/0.4161, allocations: 0 / 497.1 MB, free: 3.773 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07226/0.4884, allocations: 22.43 MB / 0.5074 GB, free: 13.58 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.65, allocations: 15.28 kB / 0.5074 GB, free: 13.57 MB / 430.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=1e-05 --timeout=50 --tolerance=1e-07 Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.097576413769275] Failed to read output from testmodel.py, exit status != 0: ['time', 'cActuator.armature.stopper_xMax.v_rel', 'cActuator.l.i', 'cActuator.x', 'pmActuator.armature.stopper_xMax.v_rel', 'pmActuator.coil.Phi', 'pmActuator.coil.i', 'pmActuator.g_mLeak2.port_p.Phi', 'pmActuator.g_ma.port_p.Phi', 'pmActuator.x'] 12.751724888104945 12.777734177 12.445770426 Calling exit ...