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.ForceCurrentBehaviour.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.001316/0.001316, allocations: 110.5 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.002142/0.002142, 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.528/1.528, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",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.001965/0.001965, allocations: 64.77 kB / 378.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2734, allocations: 53.37 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.009192/0.2826, allocations: 6.609 MB / 438.5 MB, free: 248 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0055/0.2881, allocations: 2.416 MB / 440.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001104/0.2892, allocations: 19.94 kB / 441 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.2903, allocations: 357.7 kB / 441.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001712/0.292, allocations: 0.5469 MB / 441.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001156/0.2932, allocations: 462.4 kB / 442.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0023/0.2955, allocations: 1.561 MB / 443.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006629/0.2961, allocations: 358 kB / 444.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001068/0.2972, allocations: 0.6035 MB / 444.8 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009868/0.2982, allocations: 0.6887 MB / 445.5 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002313/0.2984, allocations: 160 kB / 445.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003798/0.2988, allocations: 203.9 kB / 445.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003142/0.2991, allocations: 331 kB / 446.2 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007328/0.2998, allocations: 0.6843 MB / 446.9 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002496/0.3023, allocations: 1.974 MB / 448.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.3023, allocations: 0 / 448.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3023, allocations: 0 / 448.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.294e-05/0.3024, allocations: 0 / 448.8 MB, free: 5.871 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003461/0.3058, allocations: 1.505 MB / 450.4 MB, free: 4.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.3059, allocations: 16.03 kB / 450.4 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002036/0.3061, allocations: 148.3 kB / 450.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006121/0.3067, allocations: 160.1 kB / 450.7 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001437/0.3082, allocations: 0.685 MB / 451.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.122e-05/0.3082, allocations: 74 kB / 451.4 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001803/0.3084, allocations: 92 kB / 451.5 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001982/0.3104, allocations: 0.9857 MB / 452.5 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.369e-05/0.3104, allocations: 4 kB / 452.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.99e-05/0.3105, allocations: 40 kB / 452.5 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.719e-05/0.3106, allocations: 28 kB / 452.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001813/0.3124, allocations: 0.8133 MB / 453.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006179/0.3186, allocations: 3.565 MB / 456.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002007/0.3206, allocations: 0.5868 MB / 457.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006486/0.3212, allocations: 293.5 kB / 457.8 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.375e-05/0.3213, allocations: 12.36 kB / 457.8 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001173/0.3214, allocations: 47.09 kB / 457.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.715e-06/0.3214, allocations: 0 / 457.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.004554/0.3259, allocations: 1.69 MB / 459.6 MB, free: 10.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.358e-05/0.326, allocations: 85.11 kB / 459.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001674/0.3277, allocations: 1.038 MB / 460.7 MB, free: 9.688 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.593e-05/0.3277, allocations: 37.7 kB / 460.7 MB, free: 9.645 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000567/0.3283, allocations: 0.5623 MB / 461.3 MB, free: 9.074 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002281/0.3285, allocations: 249.9 kB / 461.5 MB, free: 8.828 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003387/0.3289, allocations: 158.6 kB / 461.7 MB, free: 8.668 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002367/0.3291, allocations: 341.9 kB / 462 MB, free: 8.328 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007735/0.3299, allocations: 309.8 kB / 462.3 MB, free: 8.023 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009218/0.3308, allocations: 0.4913 MB / 462.8 MB, free: 7.461 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001584/0.3324, allocations: 0.7747 MB / 463.6 MB, free: 6.613 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/0.3324, allocations: 4 kB / 463.6 MB, free: 6.609 MB / 366.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002159/0.3346, allocations: 0.9633 MB / 464.6 MB, free: 5.641 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.3346, allocations: 12.03 kB / 464.6 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.3346, allocations: 7.938 kB / 464.6 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.312e-05/0.3346, allocations: 15.98 kB / 464.6 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.3358, allocations: 267.6 kB / 464.9 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.531e-05/0.3358, allocations: 15.92 kB / 464.9 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008975/0.3367, allocations: 59.89 kB / 464.9 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.637e-05/0.3368, allocations: 36 kB / 465 MB, free: 5.234 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (112): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006116/0.3374, allocations: 285.6 kB / 465.2 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000191/0.3376, allocations: 115.3 kB / 465.4 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008707/0.3385, allocations: 358.4 kB / 465.7 MB, free: 4.477 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.3385, allocations: 8 kB / 465.7 MB, free: 4.469 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.3385, allocations: 0 / 465.7 MB, free: 4.469 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.3385, allocations: 7.922 kB / 465.7 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004277/0.3428, allocations: 2.246 MB / 468 MB, free: 2.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/0.3428, allocations: 12.19 kB / 468 MB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008687/0.3437, allocations: 199.7 kB / 468.2 MB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.495e-05/0.3437, allocations: 15.94 kB / 468.2 MB, free: 1.859 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.144e-05/0.3438, allocations: 27.97 kB / 468.2 MB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.456e-05/0.3438, allocations: 15.94 kB / 468.2 MB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/0.3438, allocations: 11.94 kB / 468.2 MB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001866/0.3456, allocations: 1.037 MB / 469.3 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002659/0.3459, allocations: 119.3 kB / 469.4 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001196/0.346, allocations: 20 kB / 469.4 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006175/0.3466, allocations: 47.95 kB / 469.5 MB, free: 492 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.3468, allocations: 75.66 kB / 469.5 MB, free: 416 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.392e-05/0.3468, allocations: 27.94 kB / 469.6 MB, free: 388 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0011/0.3479, allocations: 0.719 MB / 470.3 MB, free: 15.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3479, allocations: 0 / 470.3 MB, free: 15.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000912/0.3488, allocations: 212 kB / 470.5 MB, free: 15.44 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00331/0.3522, allocations: 1.851 MB / 472.3 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.354, allocations: 0.7025 MB / 473 MB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/0.354, allocations: 0 / 473 MB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007787/0.3547, allocations: 345.8 kB / 473.4 MB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001345/0.3561, allocations: 221.8 kB / 473.6 MB, free: 12.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.014/0.3701, allocations: 8.464 MB / 482.1 MB, free: 3.473 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007207/0.3708, allocations: 1.03 MB / 483.1 MB, free: 2.414 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005672/0.3714, allocations: 127.6 kB / 483.2 MB, free: 2.285 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005704/0.3719, allocations: 415.2 kB / 483.6 MB, free: 1.879 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3719, allocations: 0 / 483.6 MB, free: 1.879 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06493/0.4369, allocations: 21.49 MB / 0.4933 GB, free: 12.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.3/10.74, allocations: 2.922 kB / 0.4933 GB, free: 12.57 MB / 414.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --stepSize=0.0001 --timeout=50 --tolerance=1e-07 Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.323769018985331] Failed to read output from testmodel.py, exit status != 0: ['time', 'cActuator.flange.f', 'pmActuator.flange.f', 'pmActuator.coil.Phi', 'pmActuator.coil.L_stat'] 10.890907953027636 10.90936069 10.603881353 Calling exit ...