Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008458/0.0008458, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000802/0.000802, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9059/0.9059, allocations: 173.3 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.293e-05/1.445e-05, allocations: 2.281 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.004824/0.004839, allocations: 5.61 MB / 324 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002576/0.007415, allocations: 1.772 MB / 325.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002885/0.007704, allocations: 19.94 kB / 325.8 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004247/0.008128, allocations: 210.1 kB / 326 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005763/0.008705, allocations: 428.5 kB / 326.5 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004523/0.009157, allocations: 383.4 kB / 326.8 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009229/0.01008, allocations: 1.522 MB / 328.3 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000359/0.01044, allocations: 337.7 kB / 328.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005909/0.01103, allocations: 0.8382 MB / 329.5 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003583/0.01139, allocations: 454.7 kB / 330 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001165/0.0115, allocations: 156 kB / 330.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.01162, allocations: 160 kB / 330.3 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.01176, allocations: 315 kB / 330.6 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002656/0.01202, allocations: 458.9 kB / 331 MB, free: 9.711 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001065/0.01309, allocations: 1.901 MB / 332.9 MB, free: 7.805 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.01309, allocations: 3.938 kB / 332.9 MB, free: 7.801 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.01309, allocations: 0 / 332.9 MB, free: 7.801 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.0131, allocations: 4 kB / 332.9 MB, free: 7.797 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: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.001622/0.01473, allocations: 1.385 MB / 334.3 MB, free: 6.375 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.01477, allocations: 12.92 kB / 334.3 MB, free: 6.363 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001248/0.01489, allocations: 152.3 kB / 334.5 MB, free: 6.207 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.01501, allocations: 124.2 kB / 334.6 MB, free: 6.086 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007391/0.01575, allocations: 0.6108 MB / 335.2 MB, free: 5.449 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.778e-05/0.0158, allocations: 74.38 kB / 335.3 MB, free: 5.375 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.0159, allocations: 100.3 kB / 335.4 MB, free: 5.277 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.01708, allocations: 1.056 MB / 336.4 MB, free: 4.199 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.556e-05/0.0171, allocations: 12.12 kB / 336.5 MB, free: 4.188 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-05/0.01716, allocations: 44.12 kB / 336.5 MB, free: 4.145 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/0.01717, allocations: 20 kB / 336.5 MB, free: 4.125 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001148/0.01832, allocations: 0.8678 MB / 337.4 MB, free: 3.254 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00298/0.0213, allocations: 2.837 MB / 340.2 MB, free: 328 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009001/0.0222, allocations: 0.776 MB / 341 MB, free: 15.53 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005231/0.02272, allocations: 435.7 kB / 341.4 MB, free: 15.1 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.533e-05/0.02276, allocations: 8.5 kB / 341.4 MB, free: 15.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.02278, allocations: 39.06 kB / 341.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=91): time 2.124e-06/0.02279, allocations: 4 kB / 341.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=115): time 0.005301/0.02809, allocations: 3.939 MB / 345.4 MB, free: 10.99 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.02813, allocations: 89.77 kB / 345.5 MB, free: 10.88 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004935/0.02862, allocations: 0.6161 MB / 346.1 MB, free: 10.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.527e-05/0.02867, allocations: 49.64 kB / 346.2 MB, free: 10.2 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001947/0.02886, allocations: 437.1 kB / 346.6 MB, free: 9.766 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.02905, allocations: 404.5 kB / 347 MB, free: 9.367 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.02923, allocations: 182.9 kB / 347.2 MB, free: 9.184 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.02935, allocations: 394.7 kB / 347.5 MB, free: 8.789 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005119/0.02986, allocations: 382.4 kB / 347.9 MB, free: 8.414 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005641/0.03042, allocations: 0.5043 MB / 348.4 MB, free: 7.879 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.03147, allocations: 0.8819 MB / 349.3 MB, free: 6.961 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.03148, allocations: 4 kB / 349.3 MB, free: 6.957 MB / 314.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001392/0.03287, allocations: 1.186 MB / 350.5 MB, free: 5.754 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.03289, allocations: 14.91 kB / 350.5 MB, free: 5.742 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.03289, allocations: 4 kB / 350.5 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002328/0.03313, allocations: 130.7 kB / 350.6 MB, free: 5.602 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005381/0.03366, allocations: 243.7 kB / 350.9 MB, free: 5.363 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002352/0.03602, allocations: 4.644 MB / 355.5 MB, free: 388 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000298/0.03631, allocations: 48.16 kB / 355.6 MB, free: 340 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-05/0.03636, allocations: 43.98 kB / 355.6 MB, free: 296 kB / 314.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 (128): * Single equations (assignments): 125 * 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.0002675/0.03663, allocations: 281.5 kB / 355.9 MB, free: 4 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.03674, allocations: 95.44 kB / 356 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009384/0.03768, allocations: 0.7644 MB / 356.7 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.03768, allocations: 15.94 kB / 356.8 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.03769, allocations: 4 kB / 356.8 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.0377, allocations: 3.984 kB / 356.8 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002501/0.0402, allocations: 2.335 MB / 359.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.0402, allocations: 0 / 359.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004793/0.04068, allocations: 203.7 kB / 359.3 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002598/0.04094, allocations: 155.4 kB / 359.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.495e-05/0.04099, allocations: 27.98 kB / 359.5 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002696/0.04368, allocations: 5.557 MB / 365 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.04368, allocations: 4.031 kB / 365 MB, free: 6.289 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001891/0.04558, allocations: 1.735 MB / 366.8 MB, free: 4.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.219e-05/0.04567, allocations: 95.41 kB / 366.9 MB, free: 4.426 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.721e-05/0.04573, allocations: 24 kB / 366.9 MB, free: 4.402 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002865/0.04602, allocations: 47.97 kB / 366.9 MB, free: 4.355 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.04613, allocations: 80.48 kB / 367 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.405e-05/0.04616, allocations: 35.94 kB / 367.1 MB, free: 4.242 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003609/0.04652, allocations: 439.1 kB / 367.5 MB, free: 3.816 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04652, allocations: 0 / 367.5 MB, free: 3.816 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005533/0.04708, allocations: 256 kB / 367.7 MB, free: 3.566 MB / 330.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 (104): * Single equations (assignments): 100 * 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.002136/0.04921, allocations: 2.324 MB / 370.1 MB, free: 1.195 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002047/0.05126, allocations: 1.284 MB / 371.3 MB, free: 15.87 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.05126, allocations: 4.062 kB / 371.3 MB, free: 15.87 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000825/0.05209, allocations: 0.9667 MB / 372.3 MB, free: 14.85 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006304/0.05272, allocations: 186.2 kB / 372.5 MB, free: 14.67 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008856/0.06157, allocations: 8.112 MB / 380.6 MB, free: 6.324 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.06191, allocations: 436.8 kB / 381 MB, free: 5.863 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003273/0.06224, allocations: 127.6 kB / 381.2 MB, free: 5.734 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003765/0.06262, allocations: 388.4 kB / 381.5 MB, free: 5.355 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/0.06262, allocations: 0 / 381.5 MB, free: 5.355 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03887/0.1015, allocations: 22.48 MB / 404 MB, free: 15.17 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.664/7.766, allocations: 8 kB / 404 MB, free: 15.16 MB / 378.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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 9.94036e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.61937188450247] 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.867983389645815 7.874617599 7.859754887 Calling exit ...