Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008434/0.0008434, allocations: 83.69 kB / 20.67 MB, free: 3.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008685/0.0008685, allocations: 170.3 kB / 23.95 MB, free: 0.6016 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8972/0.8972, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_1_0_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_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.469e-05/2.682e-05, allocations: 4.531 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007371/0.007398, allocations: 5.725 MB / 330.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0041/0.0115, allocations: 1.847 MB / 332.1 MB, free: 8.332 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009472/0.01245, allocations: 23.88 kB / 332.2 MB, free: 8.309 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005711/0.01302, allocations: 214 kB / 332.4 MB, free: 8.098 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00107/0.01409, allocations: 440.5 kB / 332.8 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008172/0.0149, allocations: 379.4 kB / 333.2 MB, free: 7.293 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00152/0.01642, allocations: 1.561 MB / 334.7 MB, free: 5.727 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00054/0.01696, allocations: 317.9 kB / 335 MB, free: 5.395 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001182/0.01815, allocations: 0.8693 MB / 335.9 MB, free: 4.523 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005605/0.01871, allocations: 462.6 kB / 336.4 MB, free: 4.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001907/0.0189, allocations: 160 kB / 336.5 MB, free: 3.914 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002089/0.01911, allocations: 175.9 kB / 336.7 MB, free: 3.742 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001546/0.01926, allocations: 303 kB / 337 MB, free: 3.445 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003987/0.01966, allocations: 470.9 kB / 337.4 MB, free: 2.984 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00145/0.02111, allocations: 1.936 MB / 339.4 MB, free: 1.039 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.02111, allocations: 3.984 kB / 339.4 MB, free: 1.035 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.02112, allocations: 0 / 339.4 MB, free: 1.035 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.336e-05/0.02116, allocations: 0 / 339.4 MB, free: 1.035 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.002165/0.02332, allocations: 1.388 MB / 340.8 MB, free: 15.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.02337, allocations: 8.031 kB / 340.8 MB, free: 15.6 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000132/0.0235, allocations: 148.4 kB / 340.9 MB, free: 15.45 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003389/0.02384, allocations: 160.1 kB / 341.1 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008874/0.02473, allocations: 0.634 MB / 341.7 MB, free: 14.63 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.948e-05/0.02479, allocations: 78.12 kB / 341.8 MB, free: 14.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.02489, allocations: 104 kB / 341.9 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.02611, allocations: 1.02 MB / 342.9 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.63e-05/0.02614, allocations: 3.953 kB / 342.9 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.776e-05/0.0262, allocations: 40 kB / 343 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.02621, allocations: 27.94 kB / 343 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/0.02736, allocations: 0.7938 MB / 343.8 MB, free: 12.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003346/0.03071, allocations: 2.845 MB / 346.6 MB, free: 9.613 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009031/0.03161, allocations: 0.7679 MB / 347.4 MB, free: 8.828 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004682/0.03208, allocations: 407 kB / 347.8 MB, free: 8.426 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.071e-05/0.03212, allocations: 8.5 kB / 347.8 MB, free: 8.418 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.502e-05/0.03216, allocations: 55.05 kB / 347.8 MB, free: 8.355 MB / 314.7 MB Notification: Performance of pre-optimization done (n=95): time 3.446e-06/0.03216, allocations: 0 / 347.8 MB, free: 8.355 MB / 314.7 MB Notification: Performance of matching and sorting (n=119): time 0.005433/0.03759, allocations: 3.824 MB / 351.7 MB, free: 4.418 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.626e-05/0.03764, allocations: 89.77 kB / 351.8 MB, free: 4.312 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000606/0.03824, allocations: 0.6447 MB / 352.4 MB, free: 3.656 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.395e-05/0.03829, allocations: 41.7 kB / 352.4 MB, free: 3.609 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002065/0.03849, allocations: 445.1 kB / 352.9 MB, free: 3.168 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/0.03872, allocations: 420.3 kB / 353.3 MB, free: 2.754 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001871/0.0389, allocations: 190.9 kB / 353.5 MB, free: 2.562 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.03904, allocations: 394.7 kB / 353.9 MB, free: 2.168 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000445/0.03949, allocations: 346.5 kB / 354.2 MB, free: 1.832 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005056/0.03999, allocations: 492.7 kB / 354.7 MB, free: 1.312 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009234/0.04092, allocations: 0.852 MB / 355.5 MB, free: 432 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.04092, allocations: 0 / 355.5 MB, free: 432 kB / 314.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001371/0.04229, allocations: 1.151 MB / 356.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.04231, allocations: 11.94 kB / 356.7 MB, free: 15.24 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.04232, allocations: 4 kB / 356.7 MB, free: 15.24 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002694/0.04259, allocations: 130.8 kB / 356.8 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005348/0.04312, allocations: 239.6 kB / 357.1 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002587/0.04571, allocations: 4.631 MB / 361.7 MB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004107/0.04612, allocations: 40.02 kB / 361.7 MB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.39e-05/0.04617, allocations: 40.17 kB / 361.8 MB, free: 9.816 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.0003398/0.04651, allocations: 284.7 kB / 362.1 MB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.04662, allocations: 95.44 kB / 362.1 MB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009018/0.04752, allocations: 0.7529 MB / 362.9 MB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.04753, allocations: 12 kB / 362.9 MB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.04753, allocations: 4 kB / 362.9 MB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.04754, allocations: 7.922 kB / 362.9 MB, free: 8.641 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002493/0.05003, allocations: 2.277 MB / 365.2 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-06/0.05004, allocations: 4 kB / 365.2 MB, free: 6.289 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004421/0.05048, allocations: 191.8 kB / 365.4 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002729/0.05075, allocations: 155.3 kB / 365.5 MB, free: 5.938 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.215e-05/0.05081, allocations: 31.92 kB / 365.6 MB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002617/0.05342, allocations: 5.546 MB / 371.1 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.05342, allocations: 0 / 371.1 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/0.05518, allocations: 1.669 MB / 372.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002981/0.05548, allocations: 187.4 kB / 373 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.301e-05/0.05556, allocations: 20 kB / 373 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002721/0.05583, allocations: 31.98 kB / 373 MB, free: 13.97 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.05597, allocations: 92.31 kB / 373.1 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.613e-05/0.05601, allocations: 31.98 kB / 373.1 MB, free: 13.85 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004176/0.05642, allocations: 463.1 kB / 373.6 MB, free: 13.4 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.05642, allocations: 0 / 373.6 MB, free: 13.4 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007746/0.0572, allocations: 260 kB / 373.8 MB, free: 13.14 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.002038/0.05924, allocations: 2.249 MB / 376.1 MB, free: 10.85 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001482/0.06072, allocations: 1.219 MB / 377.3 MB, free: 9.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.06072, allocations: 0.625 kB / 377.3 MB, free: 9.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008043/0.06153, allocations: 0.9393 MB / 378.3 MB, free: 8.602 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007192/0.06225, allocations: 206.6 kB / 378.5 MB, free: 8.406 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009094/0.07134, allocations: 8.1 MB / 386.6 MB, free: 84 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003378/0.07168, allocations: 450.6 kB / 387 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004307/0.07211, allocations: 124 kB / 387.1 MB, free: 15.49 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003954/0.0725, allocations: 404.4 kB / 387.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of SimCode: time 9.72e-07/0.0725, allocations: 0 / 387.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04413/0.1166, allocations: 23.35 MB / 410.9 MB, free: 8.023 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.627/7.744, allocations: 7.094 kB / 410.9 MB, free: 8.02 MB / 378.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.624678525142372] 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.840973054990172 7.853773843 7.829623391 Calling exit ...