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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001142/0.001142, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.001443/0.001443, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9324/0.9324, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.47e-05/2.658e-05, allocations: 5.094 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.005463/0.005489, allocations: 5.721 MB / 330.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003027/0.008517, allocations: 1.843 MB / 332.1 MB, free: 8.297 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005848/0.009101, allocations: 23.88 kB / 332.1 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005132/0.009615, allocations: 214 kB / 332.3 MB, free: 8.062 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008546/0.01047, allocations: 448.4 kB / 332.7 MB, free: 7.621 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.01149, allocations: 379.4 kB / 333.1 MB, free: 7.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001364/0.01285, allocations: 1.549 MB / 334.7 MB, free: 5.695 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004359/0.01329, allocations: 325.9 kB / 335 MB, free: 5.359 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009883/0.01428, allocations: 0.8655 MB / 335.8 MB, free: 4.492 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004361/0.01471, allocations: 466.6 kB / 336.3 MB, free: 4.035 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001233/0.01484, allocations: 160 kB / 336.5 MB, free: 3.879 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000168/0.01501, allocations: 171.9 kB / 336.6 MB, free: 3.711 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.01515, allocations: 307 kB / 336.9 MB, free: 3.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003127/0.01546, allocations: 474.9 kB / 337.4 MB, free: 2.945 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001344/0.01681, allocations: 1.932 MB / 339.3 MB, free: 1.004 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.01681, allocations: 0 / 339.3 MB, free: 1.004 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.01681, allocations: 0 / 339.3 MB, free: 1.004 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.072e-05/0.01683, allocations: 3.938 kB / 339.3 MB, free: 1 MB / 298.7 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.002003/0.01884, allocations: 1.381 MB / 340.7 MB, free: 15.58 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.01888, allocations: 15.98 kB / 340.7 MB, free: 15.57 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001322/0.01901, allocations: 152.4 kB / 340.9 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003339/0.01935, allocations: 152.1 kB / 341 MB, free: 15.26 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008568/0.0202, allocations: 0.6342 MB / 341.7 MB, free: 14.6 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.654e-05/0.02026, allocations: 82.06 kB / 341.7 MB, free: 14.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.02036, allocations: 100 kB / 341.8 MB, free: 14.42 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.02151, allocations: 1.02 MB / 342.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.866e-05/0.02154, allocations: 7.953 kB / 342.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.148e-05/0.0216, allocations: 40 kB / 342.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.046e-05/0.02162, allocations: 24 kB / 342.9 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.02269, allocations: 0.7899 MB / 343.7 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003418/0.0261, allocations: 2.856 MB / 346.6 MB, free: 9.57 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009183/0.02702, allocations: 0.7621 MB / 347.3 MB, free: 8.793 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006625/0.02768, allocations: 395.1 kB / 347.7 MB, free: 8.402 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.14e-05/0.02773, allocations: 24.44 kB / 347.7 MB, free: 8.379 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/0.02776, allocations: 39.06 kB / 347.8 MB, free: 8.332 MB / 314.7 MB Notification: Performance of pre-optimization done (n=95): time 3.447e-06/0.02776, allocations: 3.984 kB / 347.8 MB, free: 8.328 MB / 314.7 MB Notification: Performance of matching and sorting (n=119): time 0.005469/0.03323, allocations: 3.828 MB / 351.6 MB, free: 4.391 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.528e-05/0.03328, allocations: 93.7 kB / 351.7 MB, free: 4.281 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006159/0.0339, allocations: 0.6447 MB / 352.3 MB, free: 3.625 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.312e-05/0.03394, allocations: 45.7 kB / 352.4 MB, free: 3.574 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002067/0.03415, allocations: 445.1 kB / 352.8 MB, free: 3.133 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002091/0.03436, allocations: 424.2 kB / 353.2 MB, free: 2.715 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001913/0.03455, allocations: 190.9 kB / 353.4 MB, free: 2.523 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.03468, allocations: 394.7 kB / 353.8 MB, free: 2.129 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004352/0.03511, allocations: 350.5 kB / 354.2 MB, free: 1.789 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007157/0.03583, allocations: 480.8 kB / 354.6 MB, free: 1.281 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009442/0.03677, allocations: 0.8598 MB / 355.5 MB, free: 384 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.03678, allocations: 0 / 355.5 MB, free: 384 kB / 314.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001333/0.03811, allocations: 1.152 MB / 356.6 MB, free: 15.21 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.03813, allocations: 8 kB / 356.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.03814, allocations: 0 / 356.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002814/0.03842, allocations: 134.6 kB / 356.8 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005466/0.03897, allocations: 239.7 kB / 357 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002861/0.04183, allocations: 4.631 MB / 361.6 MB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004302/0.04226, allocations: 31.98 kB / 361.7 MB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.138e-05/0.04231, allocations: 39.98 kB / 361.7 MB, free: 9.785 MB / 330.7 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.0003596/0.04267, allocations: 285.7 kB / 362 MB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.04278, allocations: 91.44 kB / 362.1 MB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009842/0.04377, allocations: 0.7491 MB / 362.8 MB, free: 8.637 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.04377, allocations: 16 kB / 362.8 MB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.04378, allocations: 4 kB / 362.8 MB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.04379, allocations: 7.969 kB / 362.9 MB, free: 8.609 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002573/0.04637, allocations: 2.288 MB / 365.1 MB, free: 6.254 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.04637, allocations: 0 / 365.1 MB, free: 6.254 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004615/0.04683, allocations: 199.6 kB / 365.3 MB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002733/0.04711, allocations: 155.4 kB / 365.5 MB, free: 5.895 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.551e-05/0.04715, allocations: 27.94 kB / 365.5 MB, free: 5.867 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002906/0.05006, allocations: 5.546 MB / 371.1 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.05006, allocations: 256 / 371.1 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001781/0.05184, allocations: 1.662 MB / 372.7 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003074/0.05215, allocations: 179.3 kB / 372.9 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.195e-05/0.05222, allocations: 24 kB / 372.9 MB, free: 13.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002811/0.0525, allocations: 39.98 kB / 373 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.05263, allocations: 92.36 kB / 373.1 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.399e-05/0.05266, allocations: 28 kB / 373.1 MB, free: 13.81 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004099/0.05307, allocations: 463 kB / 373.5 MB, free: 13.36 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05307, allocations: 0 / 373.5 MB, free: 13.36 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006579/0.05373, allocations: 264 kB / 373.8 MB, free: 13.11 MB / 346.7 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.002284/0.05601, allocations: 2.245 MB / 376 MB, free: 10.81 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001818/0.05783, allocations: 1.223 MB / 377.3 MB, free: 9.547 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/0.05784, allocations: 4 kB / 377.3 MB, free: 9.543 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008976/0.05874, allocations: 0.94 MB / 378.2 MB, free: 8.555 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008507/0.05959, allocations: 200.9 kB / 378.4 MB, free: 8.367 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01008/0.06967, allocations: 8.104 MB / 386.5 MB, free: 40 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005324/0.0702, allocations: 450.6 kB / 386.9 MB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006149/0.07082, allocations: 124 kB / 387.1 MB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005835/0.0714, allocations: 404.4 kB / 387.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of SimCode: time 2.315e-06/0.0714, allocations: 0 / 387.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04888/0.1203, allocations: 23.33 MB / 410.8 MB, free: 7.957 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.731/7.851, allocations: 4.062 kB / 410.8 MB, free: 7.953 MB / 378.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.767729189246893] 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'] 7.951407004147768 7.963739907 7.945127125 Calling exit ...