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.001853/0.001853, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002263/0.002263, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.448/1.448, allocations: 230.6 MB / 258.3 MB, free: 8.043 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.001881/0.001881, allocations: 60.77 kB / 378.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3019, allocations: 53.37 MB / 431.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.009067/0.311, allocations: 6.5 MB / 438.4 MB, free: 380 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004151/0.3151, allocations: 1.921 MB / 440.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007297/0.3159, allocations: 27.88 kB / 440.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000676/0.3165, allocations: 218 kB / 440.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001047/0.3176, allocations: 424.8 kB / 441 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000788/0.3184, allocations: 379.5 kB / 441.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001751/0.3201, allocations: 1.499 MB / 442.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005815/0.3207, allocations: 351 kB / 443.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008322/0.3215, allocations: 0.5762 MB / 443.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008068/0.3223, allocations: 0.6107 MB / 444.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002112/0.3226, allocations: 160 kB / 444.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002482/0.3228, allocations: 168 kB / 444.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002736/0.3231, allocations: 299.1 kB / 445 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006868/0.3238, allocations: 0.6689 MB / 445.7 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002117/0.3259, allocations: 1.891 MB / 447.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3259, allocations: 0 / 447.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3259, allocations: 3.938 kB / 447.6 MB, free: 7.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.197e-05/0.3259, allocations: 0 / 447.6 MB, free: 7.172 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.002905/0.3288, allocations: 1.396 MB / 449 MB, free: 5.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.3289, allocations: 12.03 kB / 449 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002001/0.3291, allocations: 152.4 kB / 449.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005414/0.3296, allocations: 160.1 kB / 449.3 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/0.3308, allocations: 0.6304 MB / 449.9 MB, free: 4.754 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.663e-05/0.3309, allocations: 74 kB / 450 MB, free: 4.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001705/0.3311, allocations: 104 kB / 450.1 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001787/0.3329, allocations: 0.974 MB / 451.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.476e-05/0.3329, allocations: 7.953 kB / 451.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.945e-05/0.333, allocations: 43.94 kB / 451.1 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.333e-05/0.333, allocations: 24 kB / 451.1 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001628/0.3347, allocations: 0.7977 MB / 451.9 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005486/0.3402, allocations: 3.248 MB / 455.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.3415, allocations: 0.7512 MB / 455.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007497/0.3423, allocations: 402.8 kB / 456.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.841e-05/0.3424, allocations: 20.48 kB / 456.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.277e-05/0.3424, allocations: 43.69 kB / 456.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=95): time 2.514e-06/0.3424, allocations: 0 / 456.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=119): time 0.008953/0.3514, allocations: 3.814 MB / 460.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.298e-05/0.3514, allocations: 93.7 kB / 460.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009288/0.3524, allocations: 0.6369 MB / 460.9 MB, free: 9.445 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.015e-05/0.3524, allocations: 53.7 kB / 461 MB, free: 9.387 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003566/0.3528, allocations: 445.1 kB / 461.4 MB, free: 8.945 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003607/0.3531, allocations: 432.3 kB / 461.8 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003046/0.3534, allocations: 186.9 kB / 462 MB, free: 8.332 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002241/0.3537, allocations: 394.7 kB / 462.4 MB, free: 7.938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007047/0.3544, allocations: 346.5 kB / 462.7 MB, free: 7.598 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008127/0.3552, allocations: 488.7 kB / 463.2 MB, free: 7.082 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001528/0.3567, allocations: 0.8587 MB / 464.1 MB, free: 6.188 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3567, allocations: 0 / 464.1 MB, free: 6.188 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002141/0.3589, allocations: 1.142 MB / 465.2 MB, free: 5.027 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.3589, allocations: 8 kB / 465.2 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.3589, allocations: 7.984 kB / 465.2 MB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004273/0.3593, allocations: 134.6 kB / 465.4 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009902/0.3603, allocations: 239.6 kB / 465.6 MB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00443/0.3647, allocations: 4.659 MB / 470.3 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008522/0.3656, allocations: 40.02 kB / 470.3 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.091e-05/0.3657, 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.0005874/0.3663, allocations: 283.6 kB / 470.6 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/0.3665, allocations: 107.3 kB / 470.7 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001615/0.3681, allocations: 0.7375 MB / 471.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/0.3681, allocations: 12 kB / 471.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.546e-05/0.3681, allocations: 4 kB / 471.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/0.3682, allocations: 7.969 kB / 471.5 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00434/0.3725, allocations: 2.572 MB / 474.1 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.3725, allocations: 4 kB / 474.1 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008728/0.3734, allocations: 203.6 kB / 474.3 MB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004799/0.3739, allocations: 151.4 kB / 474.4 MB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.416e-05/0.3739, allocations: 24 kB / 474.4 MB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005111/0.379, allocations: 5.588 MB / 480 MB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.379, allocations: 4.031 kB / 480 MB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002998/0.382, allocations: 1.661 MB / 481.7 MB, free: 3.582 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004414/0.3825, allocations: 179.3 kB / 481.9 MB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001811/0.3827, allocations: 24 kB / 481.9 MB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005791/0.3832, allocations: 35.92 kB / 481.9 MB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000178/0.3834, allocations: 84.42 kB / 482 MB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.995e-05/0.3835, allocations: 32 kB / 482 MB, free: 3.234 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007022/0.3842, allocations: 467 kB / 482.5 MB, free: 2.785 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3842, allocations: 0 / 482.5 MB, free: 2.785 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009669/0.3851, allocations: 260 kB / 482.7 MB, free: 2.531 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.003267/0.3884, allocations: 2.242 MB / 485 MB, free: 248 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00252/0.3909, allocations: 1.223 MB / 486.2 MB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3909, allocations: 4 kB / 486.2 MB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001511/0.3924, allocations: 0.9353 MB / 487.1 MB, free: 13.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.3937, allocations: 206.7 kB / 487.3 MB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/0.4087, allocations: 8.21 MB / 495.6 MB, free: 5.352 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000963/0.4096, allocations: 1.033 MB / 496.6 MB, free: 4.293 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000618/0.4102, allocations: 124 kB / 496.7 MB, free: 4.168 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006946/0.4109, allocations: 403.3 kB / 497.1 MB, free: 3.773 MB / 398.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4109, allocations: 0 / 497.1 MB, free: 3.773 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07154/0.4825, allocations: 22.44 MB / 0.5074 GB, free: 13.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.52, allocations: 7.938 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 1e-05 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.08972904086113] 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.625036729034036 12.645739074 12.315314719 Calling exit ...