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.001665/0.001665, allocations: 118.6 kB / 18.5 MB, free: 4.566 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.002046/0.002046, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.472/1.472, allocations: 230.5 MB / 254.7 MB, free: 15.02 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.001914/0.001914, allocations: 75.81 kB / 373.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1133, allocations: 53.31 MB / 426.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.2209/0.3342, allocations: 6.57 MB / 433.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004458/0.3387, allocations: 2.385 MB / 435.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006724/0.3393, allocations: 20.12 kB / 435.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008158/0.3402, allocations: 368.9 kB / 436.2 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001147/0.3413, allocations: 0.5401 MB / 436.8 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009457/0.3422, allocations: 455.9 kB / 437.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001818/0.3441, allocations: 1.557 MB / 438.8 MB, free: 6.062 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005306/0.3446, allocations: 365.2 kB / 439.1 MB, free: 5.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009129/0.3455, allocations: 0.5985 MB / 439.7 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008261/0.3463, allocations: 0.6809 MB / 440.4 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002143/0.3466, allocations: 159.8 kB / 440.5 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003743/0.3469, allocations: 203 kB / 440.7 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002476/0.3472, allocations: 323 kB / 441.1 MB, free: 4.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005305/0.3477, allocations: 0.6886 MB / 441.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002399/0.3501, allocations: 1.976 MB / 443.7 MB, free: 3.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3501, allocations: 1.219 kB / 443.7 MB, free: 3.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3501, allocations: 0 / 443.7 MB, free: 3.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.612e-05/0.3502, allocations: 3.938 kB / 443.7 MB, free: 3.746 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.003312/0.3535, allocations: 1.58 MB / 445.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.3535, allocations: 8.812 kB / 445.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001779/0.3537, allocations: 147.9 kB / 445.5 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000571/0.3543, allocations: 165.6 kB / 445.6 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/0.3554, allocations: 0.7527 MB / 446.4 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.527e-05/0.3555, allocations: 73.59 kB / 446.5 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/0.3556, allocations: 95.84 kB / 446.5 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001721/0.3574, allocations: 0.9808 MB / 447.5 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.513e-05/0.3574, allocations: 6.375 kB / 447.5 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-05/0.3575, allocations: 40.28 kB / 447.6 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.774e-05/0.3575, allocations: 23.38 kB / 447.6 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001693/0.3592, allocations: 0.8142 MB / 448.4 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006135/0.3653, allocations: 3.661 MB / 452.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002014/0.3673, allocations: 0.5931 MB / 452.7 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006111/0.368, allocations: 290 kB / 452.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.988e-05/0.368, allocations: 11.33 kB / 453 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.947e-05/0.3681, allocations: 46.38 kB / 453 MB, free: 14.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.966e-06/0.3681, allocations: 0 / 453 MB, free: 14.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.004935/0.373, allocations: 1.678 MB / 454.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.026e-05/0.3731, allocations: 84.59 kB / 454.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001776/0.3748, allocations: 1.047 MB / 455.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.911e-05/0.3749, allocations: 37.02 kB / 455.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005224/0.3754, allocations: 0.5613 MB / 456.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000246/0.3757, allocations: 238 kB / 456.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003055/0.376, allocations: 166.4 kB / 456.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.3762, allocations: 341.9 kB / 457.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007469/0.3769, allocations: 308 kB / 457.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009592/0.3779, allocations: 495.6 kB / 457.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001765/0.3796, allocations: 0.7806 MB / 458.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/0.3796, allocations: 2 kB / 458.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002515/0.3822, allocations: 0.972 MB / 459.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/0.3822, allocations: 6.812 kB / 459.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.145e-05/0.3822, allocations: 6.156 kB / 459.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.934e-05/0.3822, allocations: 9.062 kB / 459.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/0.3835, allocations: 275.6 kB / 460 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.029e-05/0.3835, allocations: 13.03 kB / 460 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.3845, allocations: 56.11 kB / 460 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.702e-05/0.3846, allocations: 42.8 kB / 460.1 MB, free: 10.21 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.0006451/0.3853, allocations: 288.7 kB / 460.4 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002961/0.3856, allocations: 109.7 kB / 460.5 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009235/0.3865, allocations: 363 kB / 460.8 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.3865, allocations: 6.906 kB / 460.8 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.576e-05/0.3865, allocations: 3.984 kB / 460.8 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.926e-06/0.3865, allocations: 5.438 kB / 460.8 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004968/0.3915, allocations: 2.291 MB / 463.1 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/0.3915, allocations: 7.344 kB / 463.1 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000877/0.3924, allocations: 205.4 kB / 463.3 MB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-05/0.3924, allocations: 14.5 kB / 463.3 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.296e-05/0.3925, allocations: 23.56 kB / 463.4 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.202e-05/0.3925, allocations: 17.83 kB / 463.4 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.02e-05/0.3925, allocations: 11.25 kB / 463.4 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001998/0.3945, allocations: 1.024 MB / 464.4 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004147/0.3949, allocations: 199 kB / 464.6 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001962/0.3951, allocations: 22.95 kB / 464.6 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007406/0.3958, allocations: 50.73 kB / 464.7 MB, free: 6.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.396, allocations: 69.47 kB / 464.8 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.031e-05/0.396, allocations: 24.84 kB / 464.8 MB, free: 6.824 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001143/0.3972, allocations: 0.7208 MB / 465.5 MB, free: 6.422 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3972, allocations: 4 kB / 465.5 MB, free: 6.418 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009687/0.3981, allocations: 216.2 kB / 465.7 MB, free: 6.391 MB / 366.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.003297/0.4014, allocations: 1.856 MB / 467.6 MB, free: 4.996 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001743/0.4032, allocations: 0.6903 MB / 468.3 MB, free: 4.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.4032, allocations: 1.094 kB / 468.3 MB, free: 4.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007733/0.404, allocations: 353.1 kB / 468.6 MB, free: 4.512 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.4053, allocations: 227 kB / 468.8 MB, free: 4.395 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01546/0.4208, allocations: 8.456 MB / 477.3 MB, free: 13.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009614/0.4218, allocations: 1.034 MB / 478.3 MB, free: 12.42 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000672/0.4224, allocations: 127.1 kB / 478.4 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006245/0.4231, allocations: 403.3 kB / 478.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of SimCode: time 1.453e-06/0.4231, allocations: 4 kB / 478.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05908/0.4821, allocations: 20.93 MB / 499.8 MB, free: 7.254 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.61, allocations: 11.8 kB / 499.8 MB, free: 7.242 MB / 398.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.137961654923856] 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.748704249039292 10.768808998 10.414804886 Calling exit ...